/* style.css - TEU Portal Global Styles */
:root {
    --teu-brown: #5F3427;
    --teu-brown-dark: #42241B;
    --teu-orange: #F29527;
    --teu-orange-text: #B45309;
    /* accessible orange for text/links on light */
    --teu-yellow: #EECF39;
    --teu-cream: #FBF6EE;

    --primary: #5F3427;
    --primary-dark: #42241B;
    --primary-blue: #5F3427;
    /* legacy alias */
    --primary-orange: #F29527;
    /* legacy alias */
    --secondary: #F29527;
    --accent-gold: #EECF39;
    --tertiary: #EECF39;

    --text-main: #3B2A24;
    --text-muted: #7A6A63;
    --text-on-dark-muted: rgba(251, 246, 238, .72);
    --shadow-sm: 0 4px 12px rgba(95, 52, 39, .08);
    --border-radius: 12px;
    --card-shadow: 0 10px 30px rgba(95, 52, 39, .08);
    --teu-border: #E7DCD2;

    --glass-white: rgba(255, 255, 255, .05);
    --transition: all .4s cubic-bezier(.165, .84, .44, 1);
}

/* Bootstrap theme overrides */
:root {
    --bs-primary: #5F3427;
    --bs-primary-rgb: 95, 52, 39;
    --bs-link-color: #B45309;
    --bs-link-hover-color: #5F3427;
    --bs-body-color: #3B2A24;
    --bs-border-color: #E7DCD2;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Inter', sans-serif;
}

body {
    color: var(--text-main);
    background-color: #ffffff;
    overflow-x: hidden;
}

a {
    color: var(--teu-orange-text);
}

a:hover {
    color: var(--teu-brown);
}

.text-primary {
    color: var(--teu-brown) !important;
}

.text-muted {
    color: var(--text-muted) !important;
}

/* Focus rings: brown on light, orange/gold on dark/brown surfaces */
:focus-visible {
    outline: 2px solid var(--teu-brown);
    outline-offset: 2px;
}

.form-control:focus,
.form-select:focus,
.form-check-input:focus {
    border-color: var(--teu-brown);
    box-shadow: 0 0 0 .25rem rgba(95, 52, 39, .15);
}

.form-check-input:checked {
    background-color: var(--teu-brown);
    border-color: var(--teu-brown);
}

.page-link {
    color: var(--teu-orange-text);
}

.page-link:hover {
    color: var(--teu-brown);
    background-color: var(--teu-cream);
}

.page-item.active .page-link {
    background-color: var(--teu-brown);
    border-color: var(--teu-brown);
    color: #fff;
}

.dropdown-item.active,
.dropdown-item:active {
    background-color: var(--teu-brown);
    color: #fff;
}

/* Buttons */
.btn-primary,
.btn-primary:focus,
.btn-primary:focus-visible,
.btn-primary:active,
.btn-primary.active,
.btn-primary:disabled,
.btn-primary.disabled,
.btn-check:checked+.btn-primary,
.btn-check:active+.btn-primary,
.show>.btn-primary.dropdown-toggle {
    background-color: var(--teu-brown);
    border-color: var(--teu-brown);
    color: #fff;
    padding: 12px 30px;
    border-radius: 12px;
    font-weight: 600;
    box-shadow: none;
}

.btn-primary:hover {
    background-color: var(--teu-orange);
    border-color: var(--teu-orange);
    color: var(--teu-brown-dark);
}

.btn-secondary,
.btn-secondary:focus,
.btn-secondary:focus-visible,
.btn-secondary:active,
.btn-secondary.active,
.btn-secondary:disabled,
.btn-secondary.disabled,
.show>.btn-secondary.dropdown-toggle,
.btn-orange,
.btn-orange:focus,
.btn-orange:focus-visible,
.btn-orange:active,
.btn-orange.active {
    background-color: var(--teu-orange);
    border-color: var(--teu-orange);
    color: var(--teu-brown-dark);
    font-weight: 600;
    border-radius: 12px;
}

.btn-secondary:hover,
.btn-orange:hover {
    background-color: var(--teu-brown);
    border-color: var(--teu-brown);
    color: #fff;
}

.btn-outline-primary,
.btn-outline-primary:focus,
.btn-outline-primary:focus-visible,
.btn-outline-primary:disabled,
.btn-outline-primary.disabled {
    color: var(--teu-brown);
    border-color: var(--teu-brown);
    background-color: transparent;
}

.btn-outline-primary:hover,
.btn-outline-primary:active,
.btn-outline-primary.active,
.btn-check:checked+.btn-outline-primary,
.btn-check:active+.btn-outline-primary,
.show>.btn-outline-primary.dropdown-toggle {
    background-color: var(--teu-brown);
    border-color: var(--teu-brown);
    color: #fff;
}

.btn-outline-secondary {
    color: var(--teu-brown);
    border-color: var(--teu-border);
}

.btn-outline-secondary:hover {
    background-color: var(--teu-cream);
    border-color: var(--teu-brown);
    color: var(--teu-brown);
}

.btn-link {
    color: var(--teu-orange-text);
}

.btn-link:hover {
    color: var(--teu-brown);
}

.btn-outline-light {
    border-radius: 12px;
    padding: 12px 30px;
    border-width: 2px;
}

/* Focus rings on brown/dark surfaces */
.sidebar :focus-visible,
.hero-section :focus-visible,
.footer :focus-visible,
.cta-section :focus-visible {
    outline-color: var(--teu-yellow);
}

/* HOME PAGE STYLES */
/* Header */
.main-header {
    box-shadow: 0 2px 10px rgba(95, 52, 39, .05);
}

.navbar-brand {
    color: var(--teu-brown);
}

.navbar-brand:hover {
    color: var(--teu-orange-text);
}

/* Hero */
.hero-section {
    background: radial-gradient(circle at top right, #5F3427, #42241B);
    padding: 140px 0;
    position: relative;
    overflow: hidden;
}

/* Subtle background glow effect */
.hero-section::before {
    content: '';
    position: absolute;
    top: -10%;
    right: -10%;
    width: 400px;
    height: 400px;
    background: var(--teu-orange);
    filter: blur(150px);
    opacity: .2;
}

.hero-section h1 {
    font-family: 'Space Grotesk', sans-serif;
    font-size: 3.5rem;
    font-weight: 800;
    line-height: 1.2;
    background: linear-gradient(to right, #FBF6EE, #EECF39);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero-section h1 {
    font-weight: 700;
    font-size: 48px;
}

.hero-img {
    filter: drop-shadow(0 30px 60px rgba(66, 36, 27, .5));
    animation: float 6s ease-in-out infinite;
}

@keyframes float {

    0%,
    100% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(-20px);
    }
}

h2,
h5 {
    font-family: 'Space Grotesk', sans-serif;
}

/* Sections */
.section-padding {
    padding: 80px 0;
}

.section-title {
    font-weight: 700;
    color: var(--primary);
}

/* Cards */
/* 2. Modernized Feature Cards */
.feature-card {
    background: #ffffff;
    border: 1px solid var(--teu-border);
    padding: 40px 30px;
    border-radius: 20px;
    transition: var(--transition);
    height: 100%;
    text-align: left;
}

.feature-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(95, 52, 39, .10);
    border-color: var(--teu-brown);
}

.feature-card h5,
.feature-card h6 {
    font-weight: 700;
    margin-bottom: 15px;
    color: var(--primary-dark);
}

/* Footer */
.footer {
    background: var(--teu-brown);
    color: var(--teu-cream);
    padding: 60px 0;
}

.footer .text-muted,
.footer p {
    color: var(--text-on-dark-muted) !important;
}

/* SIDEBAR */
.sidebar {
    width: 260px;
    background: var(--teu-brown);
    box-shadow: 2px 0 12px rgba(66, 36, 27, .12);
    transition: all 0.3s ease;
    position: fixed;
    height: 100vh;
    z-index: 1000;
    display: flex;
    flex-direction: column;
    border-right: 1px solid rgba(255, 255, 255, .12);
}

.sidebar-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.5rem 1.2rem;
    border-bottom: 1px solid rgba(255, 255, 255, .12);
}

.logo-area i {
    font-size: 1.8rem;
    color: var(--teu-yellow);
}

.logo-text {
    font-weight: 700;
    font-size: 1.2rem;
    margin-left: 8px;
    color: var(--teu-cream);
}

.close-sidebar-btn {
    background: transparent;
    border: none;
    font-size: 1.2rem;
    color: var(--text-on-dark-muted);
    cursor: pointer;
}

.sidebar-nav {
    list-style: none;
    padding: 1rem 0;
    flex: 1;
}

.sidebar-nav .nav-item {
    margin: 0.2rem 0;
}

.sidebar-nav .nav-item a {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 0.75rem 1.5rem;
    color: var(--teu-cream);
    text-decoration: none;
    font-weight: 500;
    transition: all 0.2s;
    border-radius: 12px;
    margin: 0 8px;
}

.sidebar-nav .nav-item a:hover {
    background: rgba(255, 255, 255, .08);
    color: #fff;
}

.sidebar-nav .nav-item.active a {
    background: var(--teu-orange);
    color: var(--teu-brown-dark);
    font-weight: 600;
}

.sidebar-nav .nav-item a i {
    width: 22px;
}

.sidebar-nav .collapse a {
    padding-left: 2.75rem;
    font-size: .9rem;
}

.sidebar-footer {
    padding: 1rem;
    font-size: 0.7rem;
    text-align: center;
    color: var(--text-on-dark-muted);
    border-top: 1px solid rgba(255, 255, 255, .12);
}

/* MAIN CONTENT */
.main-content {
    flex: 1;
    margin-left: 260px;
    transition: margin-left 0.3s;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

.login-content {
    flex: 1;
    transition: margin-left 0.3s;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

.top-navbar {
    background: white;
    padding: 0.8rem 1.8rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    box-shadow: 0 1px 4px rgba(95, 52, 39, .03);
    border-bottom: 1px solid var(--teu-border);
    position: sticky;
    top: 0;
    z-index: 99;
}

.nav-left {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.toggle-btn {
    background: none;
    border: none;
    font-size: 1.3rem;
    cursor: pointer;
    color: var(--text-main);
}

.breadcrumb-custom {
    font-size: 0.85rem;
    color: var(--text-muted);
}

.nav-right {
    position: relative;
    display: flex;
    align-items: center;
    gap: 1.2rem;
}

.notification-icon {
    position: relative;
    font-size: 1.2rem;
    cursor: pointer;
}

.badge-notify {
    position: absolute;
    top: -8px;
    right: -12px;
    background: var(--teu-orange);
    color: var(--teu-brown-dark);
    font-weight: 700;
    font-size: 0.6rem;
    padding: 2px 6px;
    border-radius: 30px;
}

.avatar-sm {
    width: 34px;
    height: 34px;
    border-radius: 50%;
    margin-right: 6px;
}

.dashboard-content {
    padding: 1.5rem;
    flex: 1;
}

.stat-card {
    background: white;
    border-radius: 16px;
    padding: 1.2rem;
    display: flex;
    align-items: center;
    gap: 1rem;
    box-shadow: var(--shadow-sm);
    transition: transform 0.2s;
}

.stat-card:hover {
    transform: translateY(-2px);
}

.stat-icon {
    background: rgba(242, 149, 39, .14);
    width: 52px;
    height: 52px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    font-size: 1.6rem;
    color: var(--teu-orange-text);
}

.stat-info h3 {
    font-size: 1.8rem;
    font-weight: 700;
    margin: 0;
}

.stat-info p {
    margin: 0;
    color: var(--text-muted);
}

.card {
    border-radius: var(--border-radius) !important;
    border: none;
    box-shadow: var(--shadow-sm);
}

.table-hover tbody tr:hover {
    background-color: var(--teu-cream);
}

.btn-orange {
    background: var(--teu-orange);
    border: none;
    color: var(--teu-brown-dark);
    border-radius: 30px;
    padding: 6px 18px;
}

.footer-minimal {
    background: var(--teu-cream);
    text-align: center;
    padding: 1rem;
    font-size: 0.75rem;
    color: var(--text-muted);
    border-top: 1px solid var(--teu-border);
    margin-top: 1rem;
}

/* Pricing */
.pricing-card {
    border: 1px solid var(--teu-border);
    border-radius: 24px;
    padding: 45px 35px;
    background: #fff;
}

.pricing-card:hover {
    transform: translateY(-8px);
}

.pricing-card ul {
    list-style: none;
    padding: 0;
    margin: 20px 0;
}

.pricing-card ul li {
    padding: 8px 0;
    border-bottom: 1px solid var(--teu-border);
}

.pricing-card.popular {
    border: 2px solid var(--teu-brown);
    transform: scale(1.05);
    z-index: 2;
    box-shadow: 0 25px 50px -12px rgba(95, 52, 39, .20);
}

.price {
    color: var(--teu-brown);
    font-weight: 700;
    margin: 15px 0;
}

.price span {
    font-size: 14px;
    color: var(--text-muted);
}

.popular {
    border: 2px solid var(--teu-orange);
}

.badge-popular {
    position: absolute;
    top: -12px;
    left: 50%;
    transform: translateX(-50%);
    background: var(--teu-yellow);
    color: var(--teu-brown-dark);
    text-transform: uppercase;
    letter-spacing: 1px;
    padding: 5px 15px;
    font-size: 12px;
    font-weight: 700;
    border-radius: 20px;
}

.currency-switch {
    font-size: 14px;
}

/* TEU auth surface helpers */
.teu-auth-bg {
    background: var(--teu-cream);
    min-height: 100vh;
}

.teu-auth-divider {
    border: 0;
    border-top: 1px solid var(--teu-yellow);
    opacity: 1;
    margin: 1.5rem 0;
}

.teu-auth-logo {
    width: 108px;
    height: auto;
}

.teu-auth-wrap {
    min-height: calc(100vh - 60px);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding: 2.5rem 1rem;
    background: var(--teu-cream);
}

.teu-auth-card {
    width: 100%;
    max-width: 460px;
    background: #ffffff;
    border: 1px solid var(--teu-border);
    border-radius: 20px;
    box-shadow: 0 18px 45px rgba(95, 52, 39, .12);
    padding: 2.5rem 2.25rem;
}

.teu-auth-card--wide {
    max-width: 560px;
}

.teu-auth-card .teu-auth-logo {
    width: 96px;
}

.teu-auth-contact {
    max-width: 620px;
    margin-top: 1.75rem;
    text-align: center;
    font-size: .8rem;
    color: var(--text-muted);
    line-height: 1.7;
}

.teu-auth-contact a {
    color: var(--teu-orange-text);
    text-decoration: none;
}

/* responsive */
@media (max-width: 768px) {
    .sidebar {
        margin-left: -260px;
    }

    .main-content {
        margin-left: 0;
    }

    .sidebar.active {
        margin-left: 0;
    }

    .dashboard-content {
        padding: 1rem;
    }

    .stat-card {
        padding: 1rem;
    }

    .teu-auth-logo {
        width: 88px;
    }
}

@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
        scroll-behavior: auto !important;
    }
}

.pro-locked > a,
a[data-pro-locked] {
    opacity: .72;
}

.pro-lock-icon {
    margin-left: auto;
    font-size: .7rem;
    opacity: .75;
}
