/* ===================================
   NEW NAVIGATION COMPONENT
   =================================== */

.navbar {
    position: fixed;
    top: 2rem;
    left: 50%;
    transform: translateX(-50%);
    width: calc(100% - 4rem);
    max-width: 1400px;
    height: 85px;
    padding: 0 3rem;
    background: var(--surface-glass);
    backdrop-filter: var(--glass-blur);
    border: 1px solid var(--border-glass);
    border-radius: var(--radius-xl);
    z-index: 1000;
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: all 0.6s var(--ease-out-expo);
}

.nav-center {
    display: flex;
    align-items: center;
    gap: 2rem;
}

.nav-item {
    position: relative;
    height: 100%;
    display: flex;
    align-items: center;
}

.nav-link {
    text-decoration: none;
    color: var(--text-muted);
    font-size: 0.8rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    transition: color 0.3s;
    padding: 0;
    height: 100%;
    display: flex;
    align-items: center;
    background: none;
    border: none;
    cursor: pointer;
}

.nav-link svg {
    width: 10px;
    height: 10px;
    fill: currentColor;
    opacity: 0.7;
    transition: transform 0.3s;
}

.nav-item:hover .nav-link svg {
    transform: rotate(180deg);
}

.nav-link:hover,
.nav-item:hover .nav-link {
    color: #fff;
}

/* Active Line */
.nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0%;
    height: 2px;
    background: var(--primary-1);
    transition: width 0.3s var(--ease-out-expo);
}

.nav-item:hover .nav-link::after,
.nav-link.active::after {
    width: 100%;
}

.nav-link.active {
    color: #fff !important;
}

.light-theme .nav-link.active {
    color: var(--primary-1) !important;
}

/* Logo Styling */
.nav-logo {
    font-family: var(--font-display);
    font-size: 1.6rem;
    font-weight: 700;
    color: #fff !important;
    text-decoration: none !important;
    display: flex;
    align-items: center;
    letter-spacing: -0.02em;
    height: 100%;
    margin: 0;
    padding: 0;
    z-index: 10;
}

.nav-logo .dot {
    color: var(--primary-1);
}

/* Light Theme overrides */
.light-theme .nav-logo {
    color: #0f172a !important;
}

.light-theme .nav-link {
    color: var(--text-main);
}

.light-theme .nav-link:hover,
.light-theme .nav-item:hover .nav-link {
    color: var(--primary-1);
}

/* Dropdown Menu */
.dropdown-menu {
    position: absolute;
    top: 100%;
    left: 50%;
    transform: translateX(-50%) translateY(10px);
    background: var(--surface-glass);
    backdrop-filter: blur(40px);
    border: 1px solid var(--border-glass);
    border-radius: 0;
    padding: 1.5rem 0;
    min-width: 300px;
    opacity: 0;
    visibility: hidden;
    transition: all 0.5s var(--ease-out-expo);
    box-shadow: 0 40px 100px rgba(0, 0, 0, 0.9);
    z-index: 1100;
}

.nav-item:hover .dropdown-menu {
    opacity: 1;
    visibility: visible;
    transform: translateX(-50%) translateY(0);
}

.dropdown-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.2rem 2.5rem;
    color: var(--text-muted);
    text-decoration: none;
    font-size: 0.7rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.2em;
    transition: all 0.4s var(--ease-out-expo);
    border-bottom: 1px solid var(--border-glass);
}

.dropdown-item::after {
    content: '→';
    opacity: 0;
    transform: translateX(-15px);
    transition: all 0.4s var(--ease-out-expo);
    color: var(--primary-1);
}

.dropdown-item:hover {
    color: #fff;
    background: var(--surface-light);
    padding-left: 3rem;
}

.dropdown-item:hover::after {
    opacity: 1;
    transform: translateX(0);
}

/* Light Theme Dropdown */
.light-theme .dropdown-menu {
    background: #fff;
    border-color: rgba(0, 0, 0, 0.18);
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.1);
}

.light-theme .dropdown-item {
    color: var(--text-secondary);
}

.light-theme .dropdown-item:hover {
    color: var(--primary-1);
    background: rgba(0, 0, 0, 0.03);
}

/* ===================================
   SUSPENDED CONSOLE WINGS
   =================================== */

.nav-wings {
    position: absolute;
    top: 50%;
    left: 0;
    width: 100%;
    transform: translateY(-50%);
    pointer-events: none;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 1.5rem;
}

.nav-wing-left,
.nav-wing-right {
    display: flex;
    flex-direction: column;
    justify-content: center;
    height: 40px;
    border-left: 1px solid var(--border-glass);
    padding: 0 1.5rem;
    pointer-events: auto;
}

.nav-wing-left {
    margin-left: 14rem;
    /* Clears the Logo */
}

.nav-wing-right {
    text-align: right;
    align-items: flex-end;
    margin-right: 20rem;
    /* Clears the Action Buttons */
    border-left: none;
    border-right: 1px solid var(--border-glass);
}

.wing-label {
    font-size: 0.55rem;
    text-transform: uppercase;
    letter-spacing: 0.25em;
    color: var(--primary-1);
    font-weight: 800;
    margin-bottom: 2px;
}

.wing-value {
    font-size: 0.75rem;
    font-family: var(--font-display);
    color: #fff;
    font-weight: 600;
}

.light-theme .wing-value {
    color: var(--text-main);
}

.status-indicator {
    display: flex;
    align-items: center;
    gap: 8px;
}

.status-dot {
    width: 6px;
    height: 6px;
    background: #4ade80;
    border-radius: 50%;
    box-shadow: 0 0 12px rgba(74, 222, 128, 0.5);
}

@media (max-width: 1400px) {
    .nav-wings {
        display: none;
    }
}

.dashboard-nav .nav-wing-left {
    margin-left: 0;
    padding-left: 280px;
}

/* Nav Actions (Right Side) */
.nav-actions {
    display: flex;
    align-items: center;
    gap: 1.5rem;
}

.nav-icon-btn {
    width: 45px;
    height: 45px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 4px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid transparent;
    color: #fff;
    cursor: pointer;
    transition: all 0.3s;
}

.nav-icon-btn svg {
    width: 20px;
    height: 20px;
    fill: currentColor;
}

.nav-icon-btn:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: rgba(255, 255, 255, 0.3);
}

.light-theme .nav-icon-btn {
    background: #f1f5f9;
    color: var(--text-main);
    border-color: rgba(0, 0, 0, 0.1);
}

.light-theme .nav-icon-btn:hover {
    background: #e2e8f0;
    color: #000;
}

/* Executive Login Button */
.btn-login {
    padding: 0 2rem;
    font-size: 0.7rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.25em;
    color: #fff !important;
    border: 1px solid #0f172a;
    border-radius: 4px;
    text-decoration: none;
    transition: all 0.4s var(--ease-out-expo);
    background: #0f172a;
    display: flex;
    align-items: center;
    justify-content: center;
    height: 50px;
}

.btn-login:hover {
    background: var(--primary-1);
    color: #fff !important;
    border-color: var(--primary-1);
}



.light-theme .btn-login {
    color: #fff !important;
    border-color: var(--primary-1);
    background: var(--primary-1);
}

.light-theme .btn-login:hover {
    background: #0f172a;
    color: #fff !important;
    border-color: #0f172a;
}


/* ===================================
   MOBILE NAVIGATION
   =================================== */
.mobile-toggle {
    display: none;
    background: none;
    border: none;
    color: var(--text-main);
    cursor: pointer;
    font-size: 1.8rem;
    z-index: 1200;
    transition: all 0.3s ease;
    width: 45px;
    height: 45px;
    align-items: center;
    justify-content: center;
}

.mobile-toggle:hover {
    transform: scale(1.1);
    color: var(--primary-1);
}

body.menu-open {
    overflow: hidden;
}

.mobile-menu {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    background: var(--bg-1);
    /* Solid background to prevent see-through */
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    z-index: 1100;
    padding: 2rem;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 1.5rem;
    transform: translateY(-100%);
    opacity: 0;
    visibility: hidden;
    transition: all 0.5s cubic-bezier(0.19, 1, 0.22, 1);
    overflow-y: auto;
}

.mobile-menu.active {
    transform: translateY(0);
    opacity: 1;
    visibility: visible;
}

.mobile-nav-link {
    font-size: clamp(1.5rem, 8vw, 2.5rem);
    font-family: var(--font-body);
    font-weight: 700;
    color: #fff;
    text-decoration: none;
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.6s cubic-bezier(0.19, 1, 0.22, 1);
    text-align: center;
    width: 100%;
}


.mobile-menu.active .mobile-nav-link {
    opacity: 1;
    transform: translateY(0);
}

.mobile-nav-link:hover,
.mobile-nav-link.active {
    color: var(--primary-1);
}

/* Mobile Dropdown Styling */
.mobile-dropdown {
    width: 100%;
}

.mobile-dropdown-header {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    cursor: pointer;
    width: 100%;
}

.mobile-dropdown-header.active {
    color: var(--primary-1);
}

.mobile-dropdown-header svg {
    width: 14px;
    height: 14px;
    fill: currentColor;
    transition: transform 0.3s;
}

.mobile-dropdown.active .mobile-dropdown-header svg {
    transform: rotate(180deg);
}

.mobile-dropdown-content {
    max-height: 0;
    overflow: hidden;
    transition: all 0.4s var(--ease-out-expo);
    display: flex;
    flex-direction: column;
    gap: 1rem;
    padding-top: 0;
    opacity: 0;
}

.mobile-dropdown.active .mobile-dropdown-content {
    max-height: 300px;
    padding-top: 1.5rem;
    padding-bottom: 0.5rem;
    opacity: 1;
}

.mobile-sub-link {
    font-size: 1.2rem;
    color: var(--text-muted);
    text-decoration: none;
    transition: color 0.3s;
    text-align: center;
}

.mobile-sub-link:hover,
.mobile-sub-link.active {
    color: var(--primary-1);
}

.light-theme .mobile-sub-link {
    color: var(--text-secondary);
}

/* Light Theme Mobile */
.light-theme .mobile-menu {
    background: rgba(255, 255, 255, 0.98);
}

.light-theme .mobile-nav-link {
    color: var(--text-main);
}

@media (max-width: 1024px) {
    .nav-center {
        display: none;
    }

    .nav-logo {
        font-size: 1.25rem !important;
        white-space: nowrap !important;
        flex-shrink: 1 !important;
        margin-right: 1rem !important;
    }

    .mobile-toggle {
        display: flex;
        order: 3;
        margin-left: 0.5rem;
    }

    .nav-actions {
        order: 2;
        margin-left: auto;
        gap: 0.5rem !important;
    }

    .nav-actions .nav-icon-btn {
        display: none;
    }

    .nav-actions .btn-login {
        display: flex;
        height: 40px !important;
        padding: 0 1rem !important;
        font-size: 0.6rem !important;
    }

    .navbar,
    .navbar.scrolled {
        justify-content: flex-start !important;
        padding: 0.75rem 1rem !important;
        width: 100% !important;
        left: 0 !important;
        top: 0 !important;
        transform: none !important;
        max-width: none !important;
        border-radius: 0 !important;
        border-left: none !important;
        border-right: none !important;
        border-top: none !important;
        margin-top: 0 !important;
        height: 70px !important;
    }
}