/* ============================================================================
   NAVBAR.CSS - Navigation and Header Styles
   ============================================================================
   Import this stylesheet for all pages with navigation
   ========================================================================== */

/* ============================================================================
   TOP BAR
   ========================================================================== */

.top-bar {
    background: linear-gradient(180deg, #f5f6f7 0%, #d8dadd 60%, #c8c9c7 100%);
    border-bottom: 2px solid #9ba0a3;
    padding: 1.5rem 0;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.15),
                inset 0 1px 0 rgba(255, 255, 255, 0.7),
                inset 0 -1px 0 rgba(0, 0, 0, 0.1);
    position: sticky;
    top: 0;
    z-index: 1001;
}

.brand-wrapper {
    flex: 1;
    text-align: center;
}

.brand-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 1rem;
}

.top-actions {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.navbar-brand {
    color: var(--primary-color);
    text-decoration: none;
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 1rem;
    justify-content: flex-start;
    width: 100%;
}

.brand-logo {
    max-height: 80px;
    width: auto;
    order: 1;
    border-radius: 4px;
    flex-shrink: 0;
}

.brand-text {
    display: flex;
    flex-direction: column;
    gap: 0.2rem;
    order: 2;
}

.brand-name {
    font-size: 2.1rem;
    font-weight: 800;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    line-height: 1;
}

.brand-subtitle {
    font-size: 1rem;
    font-weight: 600;
    color: var(--primary-color);
    letter-spacing: 3px;
    text-transform: uppercase;
    line-height: 1;
}

.navbar-brand:hover {
    color: var(--secondary-color);
    text-decoration: none;
}

/* Dark Mode Top Bar */
body.dark-mode .top-bar {
    background: linear-gradient(180deg, #16243d 0%, #0f1a30 60%, #0a1324 100%);
    border-bottom: 2px solid #1f2e4a;
    box-shadow: 0 6px 12px rgba(0, 0, 0, 0.35),
                inset 0 1px 0 rgba(255, 255, 255, 0.15),
                inset 0 -1px 0 rgba(0, 0, 0, 0.4);
}

body.dark-mode .navbar-brand {
    color: #e8edf7;
}

body.dark-mode .brand-name {
    color: #e8edf7;
}

body.dark-mode .brand-subtitle {
    color: #9ec5ff;
}

/* ============================================================================
   SOCIAL MEDIA LINKS
   ========================================================================== */

.social-media {
    display: flex;
    justify-content: flex-end;
    align-items: center;
    gap: 0.5rem;
}

.social-link {
    width: 42px;
    height: 42px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-light);
    text-decoration: none;
    transition: all 0.25s ease;
    font-size: 1rem;
    border-radius: 7px;
    background: linear-gradient(180deg, #2a7dd4 0%, #1e6bb8 50%, #0f3d6e 100%);
    border: 1px solid #0a2d52;
    box-shadow: 0 6px 12px rgba(0, 0, 0, 0.45),
                0 0 0 1px rgba(255, 255, 255, 0.08),
                inset 0 1px 0 rgba(255, 255, 255, 0.5),
                inset 0 -1px 0 rgba(0, 0, 0, 0.4),
                inset 1px 0 0 rgba(255, 255, 255, 0.3),
                inset -1px 0 0 rgba(0, 0, 0, 0.3);
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.55);
}

.social-link:hover {
    background: linear-gradient(180deg, #3a8be3 0%, #2a7dd4 50%, #15508c 100%);
    color: var(--text-light);
    transform: translateY(-1px);
    box-shadow: 0 8px 14px rgba(0, 0, 0, 0.5),
                0 0 0 1px rgba(255, 255, 255, 0.12),
                inset 0 1px 0 rgba(255, 255, 255, 0.6),
                inset 0 -1px 0 rgba(0, 0, 0, 0.35),
                inset 1px 0 0 rgba(255, 255, 255, 0.35),
                inset -1px 0 0 rgba(0, 0, 0, 0.3);
}

.social-link:active {
    transform: translateY(0);
    background: linear-gradient(180deg, #1e6bb8 0%, #15508c 60%, #0a2d52 100%);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.45),
                0 0 0 1px rgba(255, 255, 255, 0.08),
                inset 0 1px 0 rgba(255, 255, 255, 0.4),
                inset 0 -1px 0 rgba(0, 0, 0, 0.45),
                inset 1px 0 0 rgba(255, 255, 255, 0.3),
                inset -1px 0 0 rgba(0, 0, 0, 0.3);
}

.social-link i {
    font-size: 1.1rem;
    text-shadow: 0 1px 3px rgba(0, 0, 0, 0.6),
                 0 -1px 1px rgba(255, 255, 255, 0.4);
}

/* ============================================================================
   USER BADGE
   ========================================================================== */

.user-badge {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    height: 42px;
    padding: 0 1rem;
    background: linear-gradient(180deg, #2a7dd4 0%, #1e6bb8 50%, #0f3d6e 100%);
    color: var(--text-light);
    border: 1px solid #0a2d52;
    border-radius: 6px;
    font-weight: 600;
    font-size: 0.9rem;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.35),
                inset 0 1px 0 rgba(255, 255, 255, 0.4),
                inset 0 -1px 0 rgba(0, 0, 0, 0.3);
    box-sizing: border-box;
    transition: all 0.25s ease;
}

.user-badge:hover {
    background: linear-gradient(180deg, #3a8be3 0%, #2a7dd4 50%, #15508c 100%);
    box-shadow: 0 6px 14px rgba(0, 0, 0, 0.5),
                inset 0 1px 0 rgba(255, 255, 255, 0.5),
                inset 0 -1px 0 rgba(0, 0, 0, 0.4);
    transform: translateY(-2px);
}

.user-badge i {
    font-size: 1.2rem;
}

.user-badge .profile-pic {
    width: 28px !important;
    height: 28px !important;
    max-width: 28px !important;
    max-height: 28px !important;
    min-width: 28px;
    min-height: 28px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid rgba(255, 255, 255, 0.6);
    display: block !important;
    flex-shrink: 0;
}

.user-badge .username {
    white-space: nowrap;
}

/* Dark Mode User Badge */
body.dark-mode .user-badge {
    background: linear-gradient(180deg, #1f3b6a 0%, #112746 60%, #0a1a33 100%);
    border: 1px solid #0a2d52;
    color: #e8edf7;
}

body.dark-mode .user-badge:hover {
    background: linear-gradient(180deg, #2a4a7a 0%, #1a3556 60%, #0f2040 100%);
}

/* ============================================================================
   THEME TOGGLE BUTTON
   ========================================================================== */

.theme-toggle-btn {
    width: auto;
    height: 42px;
    padding: 0 1rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    background: linear-gradient(180deg, #2a7dd4 0%, #1e6bb8 50%, #0f3d6e 100%);
    color: var(--text-light);
    border: 1px solid #0a2d52;
    border-radius: 6px;
    cursor: pointer;
    font-weight: 700;
    letter-spacing: 0.5px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.35),
                inset 0 1px 0 rgba(255, 255, 255, 0.4),
                inset 0 -1px 0 rgba(0, 0, 0, 0.3);
    transition: all 0.2s ease;
    text-decoration: none;
}

.theme-toggle-btn:hover {
    transform: translateY(-1px);
    box-shadow: 0 6px 12px rgba(0, 0, 0, 0.45),
                inset 0 1px 0 rgba(255, 255, 255, 0.45),
                inset 0 -1px 0 rgba(0, 0, 0, 0.3);
}

.theme-toggle-btn:active {
    transform: translateY(0);
    box-shadow: 0 3px 6px rgba(0, 0, 0, 0.35);
}

.theme-toggle-btn i {
    font-size: 1.1rem;
}

.theme-label {
    font-size: 0.85rem;
    white-space: nowrap;
}

/* Dark Mode Theme Toggle */
body.dark-mode .theme-toggle-btn {
    background: linear-gradient(180deg, #2a4d8c 0%, #1f3b6a 50%, #112746 100%);
    border-color: #0a2d52;
}

/* ============================================================================
   MAIN NAVIGATION
   ========================================================================== */

.navbar {
    background: linear-gradient(180deg, #1e6bb8 0%, #0f3d6e 100%);
    padding: 0.35rem 0;
    position: sticky;
    top: 0;
    z-index: 1000;
    border-bottom: 2px solid #0a2d52;
    box-shadow: 0 6px 12px rgba(0, 0, 0, 0.25),
                inset 0 1px 0 rgba(255, 255, 255, 0.35),
                inset 0 -1px 0 rgba(0, 0, 0, 0.25);
}

.navbar-toggler {
    background: linear-gradient(180deg, #c8c9c7 0%, #9ba0a3 100%);
    border: 1px solid #5d6369;
    color: #0f3d6e;
    padding: 0.6rem 1.1rem;
    cursor: pointer;
    font-size: 1rem;
    display: none;
    border-radius: 4px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.25),
                inset 0 1px 0 rgba(255, 255, 255, 0.5),
                inset 0 -1px 0 rgba(0, 0, 0, 0.2);
}

.navbar-collapse {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
}

.navbar-nav {
    display: flex;
    list-style: none;
    margin: 0;
    padding: 0;
    gap: 0.35rem;
    flex-wrap: nowrap;
    justify-content: center;
}

.nav-item {
    position: relative;
    flex: 0 0 auto;
}

.nav-link {
    color: var(--text-light);
    text-decoration: none;
    padding: 0.65rem 0.6rem;
    display: block;
    font-size: clamp(0.62rem, 0.75vw, 0.8rem);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.4px;
    transition: all 0.25s ease;
    border-radius: 6px;
    width: 9.25rem;
    min-height: 2.7rem;
    text-align: center;
    white-space: normal;
    line-height: 1.1;
    word-break: break-word;
    background: linear-gradient(180deg, #2a7dd4 0%, #1e6bb8 50%, #0f3d6e 100%);
    border: 1px solid #0a2d52;
    box-shadow: 0 3px 6px rgba(0, 0, 0, 0.4),
                inset 0 1px 0 rgba(255, 255, 255, 0.4),
                inset 0 -1px 0 rgba(0, 0, 0, 0.35),
                inset 1px 0 0 rgba(255, 255, 255, 0.25),
                inset -1px 0 0 rgba(0, 0, 0, 0.25);
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.45);
}

.nav-link:hover,
.nav-item.active .nav-link {
    background: linear-gradient(180deg, #3a8be3 0%, #2a7dd4 50%, #15508c 100%);
    color: var(--text-light);
    transform: translateY(-1px);
    box-shadow: 0 5px 10px rgba(0, 0, 0, 0.5),
                inset 0 1px 0 rgba(255, 255, 255, 0.5),
                inset 0 -1px 0 rgba(0, 0, 0, 0.3),
                inset 1px 0 0 rgba(255, 255, 255, 0.3),
                inset -1px 0 0 rgba(0, 0, 0, 0.25);
}

/* Dark Mode Navbar */
body.dark-mode .navbar {
    background: linear-gradient(180deg, #0f1f3a 0%, #0a1324 100%);
    border-bottom: 2px solid #0a2d52;
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.45),
                inset 0 1px 0 rgba(255, 255, 255, 0.15),
                inset 0 -1px 0 rgba(0, 0, 0, 0.35);
}

body.dark-mode .nav-link {
    background: linear-gradient(180deg, #1f3b6a 0%, #112746 100%);
    border: 1px solid #0a2d52;
    color: #e8edf7;
    box-shadow: 0 3px 6px rgba(0, 0, 0, 0.45),
                inset 0 1px 0 rgba(255, 255, 255, 0.25),
                inset 0 -1px 0 rgba(0, 0, 0, 0.35);
}

body.dark-mode .nav-link:hover,
body.dark-mode .nav-item.active .nav-link {
    background: linear-gradient(180deg, #2a4d8c 0%, #1f3b6a 60%, #112746 100%);
    color: #ffffff;
}

/* ============================================================================
   NAVBAR CART ICON
   ========================================================================== */

.navbar-cart {
    margin-left: 0;
    padding-left: 0;
    display: flex;
    align-items: center;
}

.navbar-cart .cart-link {
    color: var(--text-light);
    text-decoration: none;
    padding: 0.65rem 0.6rem;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.3rem;
    min-height: 2.7rem;
    width: 3rem;
    background: linear-gradient(180deg, #2a7dd4 0%, #1e6bb8 50%, #0f3d6e 100%);
    border-radius: 6px;
    border: 1px solid #0a2d52;
    position: relative;
    transition: all 0.25s ease;
    box-shadow: 0 3px 6px rgba(0, 0, 0, 0.4),
                inset 0 1px 0 rgba(255, 255, 255, 0.4),
                inset 0 -1px 0 rgba(0, 0, 0, 0.35),
                inset 1px 0 0 rgba(255, 255, 255, 0.25),
                inset -1px 0 0 rgba(0, 0, 0, 0.25);
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.45);
}

.navbar-cart .cart-link:hover {
    color: #ffffff;
    background: linear-gradient(180deg, #3a8be3 0%, #2a7dd4 50%, #15508c 100%);
    transform: translateY(-1px);
    box-shadow: 0 5px 10px rgba(0, 0, 0, 0.5),
                inset 0 1px 0 rgba(255, 255, 255, 0.5),
                inset 0 -1px 0 rgba(0, 0, 0, 0.3),
                inset 1px 0 0 rgba(255, 255, 255, 0.3),
                inset -1px 0 0 rgba(0, 0, 0, 0.25);
}

.cart-badge {
    position: absolute;
    top: -6px;
    right: -6px;
    background: linear-gradient(180deg, #dc3545 0%, #a71d2a 100%);
    color: white;
    font-size: 0.7rem;
    font-weight: 700;
    min-width: 18px;
    height: 18px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0 4px;
    border: 2px solid #fff;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
    animation: badge-pulse 2s infinite;
}

@keyframes badge-pulse {
    0%, 100% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.1);
    }
}

/* Dark Mode Cart */
body.dark-mode .navbar-cart .cart-link {
    background: linear-gradient(180deg, #1f3b6a 0%, #112746 100%);
    border: 1px solid #0a2d52;
    color: #e8edf7;
    box-shadow: 0 3px 6px rgba(0, 0, 0, 0.45),
                inset 0 1px 0 rgba(255, 255, 255, 0.25),
                inset 0 -1px 0 rgba(0, 0, 0, 0.35);
}

body.dark-mode .navbar-cart .cart-link:hover {
    background: linear-gradient(180deg, #2a4d8c 0%, #1f3b6a 60%, #112746 100%);
    color: #ffffff;
}

body.dark-mode .cart-badge {
    border-color: #1f3b6a;
}

/* ============================================================================
   DROPDOWN MENU STYLES
   ========================================================================== */

.nav-item.dropdown {
    position: relative;
}

.dropdown-toggle {
    cursor: pointer;
    position: relative;
}

.dropdown-toggle::after {
    content: '';
    display: inline-block;
    margin-left: 0.3rem;
    vertical-align: middle;
    border-top: 0.3em solid;
    border-right: 0.3em solid transparent;
    border-left: 0.3em solid transparent;
}

.dropdown-menu {
    display: none;
    position: absolute;
    top: 100%;
    left: 50%;
    transform: translateX(-50%);
    background: linear-gradient(180deg, #e8edf7 0%, #d8dde8 100%);
    border: 3px solid #164f90;
    border-radius: 10px;
    padding: 1rem;
    margin-top: 0.5rem;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.4),
                0 0 0 1px rgba(255, 255, 255, 0.5),
                inset 0 1px 0 rgba(255, 255, 255, 0.8);
    z-index: 1100;
    min-width: max-content;
    max-width: 800px;
    flex-direction: row;
    flex-wrap: wrap;
    gap: 0.65rem;
    list-style: none;
}

.dropdown-menu.show {
    display: flex;
}

.dropdown-item {
    color: #ffffff;
    text-decoration: none;
    padding: 0.6rem 1rem;
    display: flex;
    align-items: center;
    gap: 0.6rem;
    font-size: 0.8rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.4px;
    transition: all 0.2s ease;
    border-radius: 7px;
    background: linear-gradient(180deg, #2a7dd4 0%, #1e6bb8 50%, #0f3d6e 100%);
    border: 1px solid #0a2d52;
    box-shadow: 0 3px 6px rgba(0, 0, 0, 0.35),
                0 0 0 1px rgba(255, 255, 255, 0.1),
                inset 0 1px 0 rgba(255, 255, 255, 0.4),
                inset 0 -1px 0 rgba(0, 0, 0, 0.3);
    text-shadow: 0 1px 3px rgba(0, 0, 0, 0.5);
    white-space: nowrap;
}

.dropdown-item:hover {
    background: linear-gradient(180deg, #3a8be3 0%, #2a7dd4 50%, #15508c 100%);
    color: #ffffff;
    transform: translateY(-2px);
    box-shadow: 0 5px 12px rgba(0, 0, 0, 0.45),
                0 0 0 1px rgba(255, 255, 255, 0.15),
                inset 0 1px 0 rgba(255, 255, 255, 0.5),
                inset 0 -1px 0 rgba(0, 0, 0, 0.3);
}

.dropdown-item i {
    font-size: 1rem;
    filter: drop-shadow(0 1px 2px rgba(0, 0, 0, 0.3));
}

.dropdown-divider {
    height: 3px;
    margin: 0.5rem 0;
    background: linear-gradient(90deg, transparent 0%, #164f90 50%, transparent 100%);
    border: 0;
    width: 100%;
    flex-basis: 100%;
    border-radius: 2px;
}

.dropdown-header {
    padding: 0.5rem 0.75rem;
    margin: 0;
    font-size: 0.85rem;
    color: #0f3d6e;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.8px;
    width: 100%;
    flex-basis: 100%;
    text-shadow: 0 1px 2px rgba(255, 255, 255, 0.8);
}

/* Dark Mode Dropdown */
body.dark-mode .dropdown-menu {
    background: linear-gradient(180deg, #16243d 0%, #0f1a30 100%);
    border-color: #1f2e4a;
}

body.dark-mode .dropdown-item {
    background: linear-gradient(180deg, #1f3b6a 0%, #112746 100%);
    color: #e8edf7;
    border-color: #0a2d52;
}

body.dark-mode .dropdown-item:hover {
    background: linear-gradient(180deg, #2a4d8c 0%, #1f3b6a 60%, #112746 100%);
    color: #ffffff;
}

body.dark-mode .dropdown-header {
    color: #9ec5ff;
}

body.dark-mode .dropdown-divider {
    background-color: #2a3a5a;
}

/* ============================================================================
   PORTAL NAVBAR - HORIZONTAL NAVIGATION UNDER MAIN NAV
   ========================================================================== */

.portal-navbar {
    background: linear-gradient(180deg, #1e6bb8 0%, #0f3d6e 100%);
    padding: 0.35rem 0;
    border-bottom: 2px solid #0a2d52;
    box-shadow: 0 6px 12px rgba(0, 0, 0, 0.25),
                inset 0 1px 0 rgba(255, 255, 255, 0.35),
                inset 0 -1px 0 rgba(0, 0, 0, 0.25);
}

.portal-navbar .container {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.portal-navbar-header {
    display: flex;
    align-items: center;
    gap: 0.3rem;
    padding: 0.4rem 0.5rem;
    height: 40px;
    background: linear-gradient(180deg, #2a7dd4 0%, #1e6bb8 50%, #0f3d6e 100%);
    border: 1px solid #0a2d52;
    border-radius: 6px;
    box-shadow: 0 3px 6px rgba(0, 0, 0, 0.4),
                inset 0 1px 0 rgba(255, 255, 255, 0.4),
                inset 0 -1px 0 rgba(0, 0, 0, 0.35),
                inset 1px 0 0 rgba(255, 255, 255, 0.25),
                inset -1px 0 0 rgba(0, 0, 0, 0.25);
    color: var(--text-light);
    font-weight: 700;
    font-size: 0.55rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.45);
    white-space: nowrap;
}

.portal-navbar-header i {
    font-size: 0.8rem;
}

.portal-nav {
    display: flex;
    gap: 0.25rem;
    flex-wrap: nowrap;
    flex: 1;
    justify-content: center;
}

.portal-nav-link {
    color: var(--text-light);
    text-decoration: none;
    padding: 0.1rem 0.2rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 0.1rem;
    font-size: 0.4rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0px;
    transition: all 0.25s ease;
    border-radius: 6px;
    flex: 1;
    min-width: 48px;
    max-width: 65px;
    height: 40px;
    text-align: center;
    white-space: normal;
    word-break: break-word;
    hyphens: auto;
    line-height: 1.1;
    overflow: hidden;
    background: linear-gradient(180deg, #2a7dd4 0%, #1e6bb8 50%, #0f3d6e 100%);
    border: 1px solid #0a2d52;
    box-shadow: 0 3px 6px rgba(0, 0, 0, 0.4),
                inset 0 1px 0 rgba(255, 255, 255, 0.4),
                inset 0 -1px 0 rgba(0, 0, 0, 0.35),
                inset 1px 0 0 rgba(255, 255, 255, 0.25),
                inset -1px 0 0 rgba(0, 0, 0, 0.25);
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.45);
}

.portal-nav-link i {
    font-size: 0.55rem;
    flex-shrink: 0;
}

.portal-nav-link span {
    word-wrap: break-word;
    overflow-wrap: break-word;
    word-break: break-word;
    hyphens: auto;
    line-height: 1.05;
    font-size: 0.38rem;
    max-height: 1.8em;
    max-width: 100%;
}

.portal-nav-link:hover,
.portal-nav-link.active {
    background: linear-gradient(180deg, #3a8be3 0%, #2a7dd4 50%, #15508c 100%);
    color: var(--text-light);
    transform: translateY(-1px);
    box-shadow: 0 5px 10px rgba(0, 0, 0, 0.5),
                inset 0 1px 0 rgba(255, 255, 255, 0.5),
                inset 0 -1px 0 rgba(0, 0, 0, 0.3),
                inset 1px 0 0 rgba(255, 255, 255, 0.3),
                inset -1px 0 0 rgba(0, 0, 0, 0.25);
}

.portal-nav-link.admin-link {
    background: linear-gradient(180deg, #e89c31 0%, #d68a1f 50%, #b87316 100%);
    border-color: #8a5a11;
}

.portal-nav-link.admin-link:hover,
.portal-nav-link.admin-link.active {
    background: linear-gradient(180deg, #f5b34a 0%, #e89c31 50%, #c77d1b 100%);
}

/* Dark Mode Portal Navbar */
body.dark-mode .portal-navbar {
    background: linear-gradient(180deg, #0f1f3a 0%, #0a1324 100%);
    border-bottom: 2px solid #0a2d52;
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.45),
                inset 0 1px 0 rgba(255, 255, 255, 0.15),
                inset 0 -1px 0 rgba(0, 0, 0, 0.35);
}

body.dark-mode .portal-navbar-header {
    background: linear-gradient(180deg, #1f3b6a 0%, #112746 100%);
    color: #e8edf7;
    border: 1px solid #0a2d52;
}

body.dark-mode .portal-nav-link {
    background: linear-gradient(180deg, #1f3b6a 0%, #112746 100%);
    border: 1px solid #0a2d52;
    color: #e8edf7;
    box-shadow: 0 3px 6px rgba(0, 0, 0, 0.45),
                inset 0 1px 0 rgba(255, 255, 255, 0.25),
                inset 0 -1px 0 rgba(0, 0, 0, 0.35);
}

body.dark-mode .portal-nav-link:hover,
body.dark-mode .portal-nav-link.active {
    background: linear-gradient(180deg, #2a4d8c 0%, #1f3b6a 60%, #112746 100%);
    color: #ffffff;
}

body.dark-mode .portal-nav-link.admin-link {
    background: linear-gradient(180deg, #b87316 0%, #9a5f12 100%);
    border-color: #6d4510;
}

body.dark-mode .portal-nav-link.admin-link:hover,
body.dark-mode .portal-nav-link.admin-link.active {
    background: linear-gradient(180deg, #d68a1f 0%, #b87316 60%, #9a5f12 100%);
}

/* ============================================================================
   RESPONSIVE NAVBAR
   ========================================================================== */

@media (max-width: 768px) {
    .navbar .container {
        flex-wrap: wrap;
        position: relative;
    }

    .navbar-toggler {
        display: flex;
        align-items: center;
        justify-content: center;
        width: 48px;
        height: 48px;
        font-size: 1.4rem;
        margin: 0.5rem auto;
    }

    .navbar-collapse {
        display: none;
        flex-direction: column;
        width: 100%;
        order: 2;
    }

    .navbar-collapse.show {
        display: flex;
    }

    .navbar-nav {
        flex-direction: column;
        width: 100%;
        gap: 0;
    }

    .nav-link {
        text-align: center;
        border-bottom: 1px solid rgba(255, 255, 255, 0.1);
        border-radius: 0;
        width: 100%;
        font-size: 0.9rem;
        letter-spacing: 0.4px;
    }

    .navbar-cart {
        margin: 0;
        padding: 0;
        width: 100%;
        display: flex;
        justify-content: center;
    }

    .navbar-cart .cart-link {
        width: 100%;
        justify-content: center;
        border-radius: 0;
        font-size: 1.1rem;
        padding: 0.75rem 1rem;
    }

    .navbar-cart .cart-link::before {
        content: "Cart ";
        font-size: 0.9rem;
        margin-right: 0.5rem;
    }

    .brand-row {
        flex-direction: column;
        gap: 0.75rem;
    }

    .top-actions {
        order: -1;
        width: 100%;
        justify-content: space-between;
    }

    .brand-wrapper {
        order: 2;
    }

    /* Portal Navbar Mobile */
    .portal-navbar .container {
        flex-direction: column;
        align-items: stretch;
    }

    .portal-navbar-header {
        justify-content: center;
    }

    .portal-nav {
        flex-direction: column;
        gap: 0.25rem;
    }

    .portal-nav-link {
        width: 100%;
        min-width: auto;
    }
}

@media (max-width: 480px) {
    .brand-name {
        font-size: 1.5rem;
        letter-spacing: 1px;
    }

    .brand-subtitle {
        font-size: 0.7rem;
        letter-spacing: 2px;
    }

    .nav-link {
        padding: 0.75rem 1rem;
        font-size: 0.82rem;
        letter-spacing: 0.3px;
    }

    .social-link {
        width: 36px;
        height: 36px;
        font-size: 0.9rem;
    }
}
