/* ============================================
   TOPBAR & NAVBAR - REFINED & MODERNIZED
   ============================================ */

/* ===== TOPBAR STYLING ===== */

.topbar {
    background: linear-gradient(135deg, #008bc2 0%, #0066a1 100%);
    padding: 16px 0;
    font-size: 0.9rem;
    color: #ffffff;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: 0 2px 10px rgba(0, 139, 194, 0.15);
    animation: slideDown 0.6s ease-out;
    width: 100%;
    z-index: 998;
}

@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateY(-20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Main Topbar Container */
.topbar-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 40px;
    width: 100%;
    box-sizing: border-box;
    gap: 20px;
}

/* Left Section - Email */
.topbar-left {
    display: flex;
    gap: 0;
    align-items: center;
    flex: 0 1 auto;
    justify-content: flex-start;
}

/* Center Section - Phone (TRUE CENTER) */
.topbar-center {
    display: flex;
    gap: 0;
    align-items: center;
    flex: 1;
    justify-content: center;
    min-width: 250px;
}

/* Right Section - Auth Buttons */
.topbar-right {
    display: flex;
    gap: 12px;
    align-items: center;
    flex: 0 0 auto;
    justify-content: flex-end;
}

/* Individual Info Items */
.topbar-info {
    display: flex;
    align-items: center;
    gap: 10px;
    color: #ffffff;
    transition: all 0.3s ease;
    opacity: 0.95;
    animation: fadeInLeft 0.8s ease-out;
    white-space: nowrap;
}

.topbar-info:hover {
    opacity: 1;
    transform: translateY(-2px);
}

.topbar-info a {
    color: #ffffff;
    text-decoration: none;
    transition: all 0.3s ease;
    font-weight: 500;
    font-size: 0.9rem;
}

.topbar-info a:hover {
    color: #0fa5e9;
    text-shadow: 0 0 10px rgba(15, 165, 233, 0.4);
}

.topbar-info i {
    font-size: 1rem;
    margin-right: 6px;
    animation: iconBounce 2s ease-in-out infinite;
    transition: all 0.3s ease;
}

.topbar-info:nth-child(1) i {
    animation-delay: 0s;
}

.topbar-info:nth-child(2) i {
    animation-delay: 0.2s;
}

@keyframes iconBounce {
    0%,
    100% {
        transform: translateY(0);
    }
    50% {
        transform: translateY(-3px);
    }
}

@keyframes fadeInLeft {
    from {
        opacity: 0;
        transform: translateX(-20px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

/* Auth Section */
.topbar-auth {
    display: flex;
    gap: 12px;
    align-items: center;
    justify-content: flex-end;
}

/* Auth Buttons */
.topbar-auth .btn {
    padding: 10px 20px;
    font-size: 0.85rem;
    border-radius: 20px;
    font-weight: 600;
    transition: all 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
    border: 2px solid #ffffff;
    cursor: pointer;
    white-space: nowrap;
    display: flex;
    align-items: center;
    gap: 6px;
}

.topbar-auth .btn i {
    font-size: 0.9rem;
    animation: none !important;
    margin-right: 0;
}

.topbar-auth .btn-outline-primary {
    background: transparent;
    color: #ffffff;
    animation: fadeInUp 0.8s ease-out 0.1s both;
}

.topbar-auth .btn-outline-primary:hover {
    background: #0fa5e9;
    color: #ffffff;
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(15, 165, 233, 0.4);
}

.topbar-auth .btn-primary {
    background: #78b52f;
    border-color: #008bc2;
    color: #ffffff;
    animation: fadeInUp 0.8s ease-out 0.2s both;
}

.topbar-auth .btn-primary:hover {
    background: #0fa5e9;
    border-color: #0fa5e9;
    color: #ffffff;
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(15, 165, 233, 0.4);
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* User Profile Display */
.user-profile {
    display: flex;
    align-items: center;
    gap: 10px;
    color: #ffffff;
}

.user-avatar-mini {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid #ffffff;
    transition: all 0.3s ease;
}

.user-profile:hover .user-avatar-mini {
    border-color: #ffd700;
    box-shadow: 0 0 10px rgba(255, 215, 0, 0.3);
    transform: scale(1.05);
}

/* ===== NAVBAR STYLING ===== */

.page-head {
    background: transparent;
    box-shadow: none;
    border-bottom: none;
    transition: all 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
    animation: slideDown 0.6s ease-out 0.2s both;
    position: sticky;
    top: 0;
    z-index: 999;
    width: 100%;
}

.page-head:hover {
    box-shadow: none;
}

/* Navbar Scrolled State - Fixed Position */
.page-head.scrolled {
    background: linear-gradient(135deg, #008bc2 0%, #0066a1 100%);
    box-shadow: 0 4px 20px rgba(0, 139, 194, 0.25);
    border-bottom: 2px solid rgba(255, 255, 255, 0.1);
}

/* Navbar Links Color on Scroll */
.page-head.scrolled .nav-link {
    color: #ffffff;
    transition: all 0.3s ease;
}

.page-head.scrolled .nav-link:hover {
    color: #ffffff;
    background: rgba(255, 255, 255, 0.15);
    border-radius: 8px;
}

/* Navbar Brand Logo */
.page-head.scrolled .navbar-brand-logo {
    transition: all 0.3s ease;
}

/* User Menu on Scroll */
.page-head.scrolled .user-menu .user-profile-trigger {
    color: #ffffff;
}

.page-head.scrolled .user-profile-trigger span,
.page-head.scrolled .user-profile-trigger i {
    color: #ffffff;
}

/* Buttons on Scroll */
.page-head.scrolled .navbar-auth .btn {
    color: #ffffff;
    border-color: #ffffff;
    background: transparent;
    transition: all 0.3s ease;
}

.page-head.scrolled .navbar-auth .btn:hover {
    background: rgba(255, 255, 255, 0.2);
    color: #ffffff;
    border-color: #ffffff;
}

.page-head.scrolled .navbar-auth .btn-primary {
    background: rgba(120, 181, 47, 0.9);
    border-color: rgba(120, 181, 47, 0.9);
    color: #ffffff;
}

.page-head.scrolled .navbar-auth .btn-primary:hover {
    background: rgba(255, 255, 255, 0.25);
    border-color: #ffffff;
    color: #ffffff;
}

/* Active Menu Item - Normal State */
.nav-link.active {
    color: #008bc2 !important;
    font-weight: 700 !important;
    border-bottom: 2px solid #008bc2;
    padding-bottom: 2px;
    transition: all 0.3s ease;
}

.nav-link.active:hover {
    background: rgba(0, 139, 194, 0.1);
    border-radius: 8px;
}

/* Active Menu Item on Scrolled Navbar */
.page-head.scrolled .nav-link.active {
    background: #78b52f !important;
    color: #ffffff !important;
    border-bottom: none;
    border-radius: 8px;
    padding: 8px 16px !important;
    padding-bottom: 8px !important;
    font-weight: 700 !important;
    box-shadow: 0 4px 12px rgba(120, 181, 47, 0.3);
}

.page-head.scrolled .nav-link.active:hover {
    background: #6a9d28 !important;
    box-shadow: 0 6px 16px rgba(120, 181, 47, 0.4);
}

/* Navbar Wrapper */
.navbar-wrapper {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 40px;
    width: 100%;
    box-sizing: border-box;
}

/* Navbar Container */
.navbar-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 0;
    gap: 40px;
    animation: slideDown 0.6s ease-out 0.3s both;
}

/* Brand Logo */
.navbar-brand {
    flex-shrink: 0;
}

.brand-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    transition: all 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
    width: 80px;
    height: 80px;
    background: linear-gradient(135deg, #ffffff 0%, #f8f9fa 100%);
    border-radius: 50%;
    box-shadow: 0 15px 50px rgba(120, 181, 47, 0.2), 
                0 8px 24px rgba(0, 0, 0, 0.08),
                inset 0 1px 2px rgba(255, 255, 255, 0.8);
    border: 2px solid rgba(120, 181, 47, 0.1);
    position: relative;
    overflow: hidden;
}

.brand-link::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -50%;
    width: 180px;
    height: 180px;
    background: radial-gradient(circle, rgba(120, 181, 47, 0.08) 0%, transparent 70%);
    border-radius: 50%;
    pointer-events: none;
    transition: all 0.4s ease;
}

.brand-link:hover {
    transform: translateY(-6px) scale(1.07);
    box-shadow: 0 25px 70px rgba(120, 181, 47, 0.3), 
                0 12px 35px rgba(0, 0, 0, 0.12),
                inset 0 1px 2px rgba(255, 255, 255, 0.9);
}

.brand-link:hover::before {
    transform: scale(1.2);
}

.navbar-brand-logo {
    height: 50px;
    width: auto;
    transition: all 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
    filter: none;
    position: relative;
    z-index: 2;
}

.navbar-brand-logo:hover {
    transform: scale(1.08);
    filter: none;
}

/* Menu Wrapper */
.nav-menu-wrapper {
    flex: 1;
}

/* Navigation Menu */
.nav-menu {
    display: flex;
    list-style: none;
    gap: 5px;
    margin: 0;
    padding: 0;
}

/* Navigation Items */
.nav-item {
    position: relative;
    animation: menuItemFadeIn 0.6s ease-out;
}

.nav-item:nth-child(1) {
    animation-delay: 0s;
}
.nav-item:nth-child(2) {
    animation-delay: 0.1s;
}
.nav-item:nth-child(3) {
    animation-delay: 0.2s;
}
.nav-item:nth-child(4) {
    animation-delay: 0.3s;
}
.nav-item:nth-child(5) {
    animation-delay: 0.4s;
}
.nav-item:nth-child(6) {
    animation-delay: 0.5s;
}
.nav-item:nth-child(7) {
    animation-delay: 0.6s;
}

@keyframes menuItemFadeIn {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Navigation Links */
.nav-link {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 10px 18px;
    color: #1a1a1a;
    text-decoration: none;
    font-weight: 700;
    font-size: 0.95rem;
    border-radius: 8px;
    transition: all 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
    position: relative;
    overflow: hidden;
    letter-spacing: 0.3px;
}

.nav-link::before {
    content: "";
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(0, 139, 194, 0.1), transparent);
    transition: left 0.5s ease;
}

.nav-link:hover::before {
    left: 100%;
}

.nav-link:hover {
    background: rgba(15, 165, 233, 0.12);
    color: #0fa5e9;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(15, 165, 233, 0.2);
}

.nav-link::after {
    content: "";
    position: absolute;
    bottom: -2px;
    left: 50%;
    width: 0;
    height: 2px;
    background: linear-gradient(90deg, #008bc2, #0fa5e9);
    transition: all 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
    transform: translateX(-50%);
}

.nav-link:hover::after {
    width: 80%;
}

/* Dropdown Menu */
.dropdown-menu {
    position: absolute;
    top: calc(100% - 8px);
    left: 0;
    background: #ffffff;
    border-radius: 12px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.15);
    min-width: 250px;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-20px);
    transition: all 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
    z-index: 1000;
    padding-top: 8px;
    border: 1px solid rgba(0, 139, 194, 0.1);
    overflow: visible;
}

.dropdown-menu::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 8px;
    background: transparent;
}

.dropdown-parent:hover .dropdown-menu,
.dropdown-parent.dropdown-open .dropdown-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

/* Dropdown Items */
.dropdown-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 18px;
    color: #1a1a1a;
    text-decoration: none;
    transition: all 0.3s ease;
    border-left: 3px solid transparent;
    font-size: 0.9rem;
    position: relative;
    font-weight: 600;
}

.dropdown-item:hover {
    background: linear-gradient(90deg, rgba(15, 165, 233, 0.12), transparent);
    color: #0fa5e9;
    border-left-color: #0fa5e9;
    padding-left: 22px;
}

.dropdown-item i {
    font-size: 1rem;
    transition: all 0.3s ease;
    color: #0fa5e9;
}

.dropdown-item:hover i {
    transform: scale(1.2) rotate(10deg);
}

/* ══════════════════════════════════════
   NESTED SUBMENU — flyout on hover
   ══════════════════════════════════════ */
.submenu-parent {
    position: relative;
}

.prestations-dropdown .prestations-menu {
    min-width: 280px;
}

.prestations-dropdown .prestations-group {
    position: relative;
}

.prestations-dropdown .prestations-group-toggle {
    cursor: default;
}

.prestations-dropdown .prestations-panel {
    position: absolute;
    top: 0;
    left: calc(100% + 2px);
    min-width: 320px;
    background: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-radius: 12px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.15);
    border: 1px solid rgba(0, 139, 194, 0.08);
    padding: 8px;
    display: none !important;
    opacity: 0 !important;
    visibility: hidden !important;
    pointer-events: none;
    transform: translateX(10px);
    transition: transform 0.3s ease, opacity 0.3s ease;
    z-index: 1001;
}

.prestations-dropdown .prestations-panel::before {
    content: '';
    position: absolute;
    top: 0;
    left: -14px;
    width: 14px;
    height: 100%;
    background: transparent;
}

.prestations-dropdown .prestations-group:hover > .prestations-panel,
.prestations-dropdown .prestations-group.submenu-open > .prestations-panel {
    display: block !important;
    opacity: 1 !important;
    visibility: visible !important;
    pointer-events: auto;
    transform: translateX(0);
}

.submenu-toggle {
    display: flex !important;
    justify-content: space-between;
    align-items: center;
    font-weight: 700 !important;
    color: #008BC2 !important;
    cursor: default;
}

.submenu-toggle:hover {
    color: #0fa5e9 !important;
    background: linear-gradient(90deg, rgba(15, 165, 233, 0.12), transparent);
}

.submenu-arrow {
    font-size: 0.6rem !important;
    margin-left: auto !important;
    padding-left: 12px;
    transition: transform 0.3s ease;
    color: #94a3b8 !important;
}

.submenu-parent:hover > .submenu-toggle .submenu-arrow,
.submenu-parent.submenu-open > .submenu-toggle .submenu-arrow {
    transform: translateX(3px);
    color: #0fa5e9 !important;
}

/* Submenu content — HIDDEN by default, appears to the RIGHT on hover */
.submenu {
    position: absolute;
    top: 0;
    left: 100%;
    min-width: 320px;
    background: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-radius: 12px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.15);
    border: 1px solid rgba(0, 139, 194, 0.08);
    padding: 8px;
    opacity: 0;
    visibility: hidden;
    transform: translateX(10px);
    transition: all 0.3s ease;
    z-index: 1001;
    display: block;
}

.submenu::before {
    content: '';
    position: absolute;
    top: 0;
    left: -14px;
    width: 14px;
    height: 100%;
    background: transparent;
}

/* Show submenu ONLY when hovering its parent */
.submenu-parent:hover > .submenu,
.submenu-parent.submenu-open > .submenu {
    opacity: 1;
    visibility: visible;
    transform: translateX(0);
}

/* Responsive: stack below on mobile */
@media (max-width: 768px) {
    .prestations-dropdown.mobile-open > .dropdown-menu {
        display: block;
        opacity: 1;
        visibility: visible;
        transform: none;
    }

    .prestations-dropdown .prestations-group-toggle {
        cursor: pointer;
    }

    .prestations-dropdown .prestations-panel {
        position: static;
        min-width: unset;
        margin-left: 18px;
        padding: 4px 0;
        box-shadow: none;
        border: none;
        border-left: 3px solid rgba(0, 139, 194, 0.15);
        border-radius: 0;
        backdrop-filter: none;
        -webkit-backdrop-filter: none;
        transform: none;
        display: none !important;
        opacity: 0 !important;
        visibility: hidden !important;
        pointer-events: none;
    }

    .prestations-dropdown .prestations-group.open > .prestations-panel {
        display: block !important;
        opacity: 1 !important;
        visibility: visible !important;
        pointer-events: auto;
    }

    .submenu {
        position: static;
        box-shadow: none;
        border: none;
        border-left: 3px solid rgba(0, 139, 194, 0.15);
        border-radius: 0;
        margin-left: 18px;
        padding: 4px 0;
        opacity: 0;
        visibility: hidden;
        transform: none;
        min-width: unset;
        display: none;
        backdrop-filter: none;
    }

    .submenu-parent.open > .submenu {
        display: block;
        opacity: 1;
        visibility: visible;
    }

    .submenu-arrow {
        transition: transform 0.3s ease;
    }

    .submenu-parent.open > .submenu-toggle .submenu-arrow {
        transform: rotate(90deg) !important;
    }

    .submenu-toggle {
        cursor: pointer;
    }
}

/* Dropdown Toggle Chevron */
.dropdown-toggle i:last-child {
    transition: transform 0.3s ease;
    margin-left: auto;
}

.dropdown-parent:hover .dropdown-toggle i:last-child,
.dropdown-parent.dropdown-open .dropdown-toggle i:last-child {
    transform: rotate(180deg);
    color: #0fa5e9;
}

/* Hide Navbar Auth */
.navbar-auth {
    display: none !important;
    visibility: hidden !important;
    position: absolute !important;
    width: 0 !important;
    height: 0 !important;
    overflow: hidden !important;
}

/* ===== MOBILE TOGGLE ===== */

.mobile-toggle {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    flex-direction: column;
    gap: 5px;
    padding: 8px;
    z-index: 2000;
}

.mobile-toggle span {
    width: 25px;
    height: 3px;
    background: linear-gradient(90deg, #008bc2, #0fa5e9);
    border-radius: 2px;
    transition: all 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
    transform-origin: center;
}

.mobile-toggle:hover span {
    box-shadow: 0 2px 8px rgba(0, 139, 194, 0.3);
}

.mobile-toggle.active span:nth-child(1) {
    transform: rotate(45deg) translateY(12px);
}

.mobile-toggle.active span:nth-child(2) {
    opacity: 0;
}

.mobile-toggle.active span:nth-child(3) {
    transform: rotate(-45deg) translateY(-12px);
}

/* ===== RESPONSIVE DESIGN ===== */

/* Desktop Large (1400px+) */
@media (max-width: 1400px) {
    .topbar-content,
    .navbar-wrapper {
        padding: 0 30px;
    }
}

/* Desktop (1200px - 1400px) */
@media (max-width: 1200px) {
    .topbar-content,
    .navbar-wrapper {
        padding: 0 25px;
    }

    .topbar {
        padding: 14px 0;
    }

    .nav-link {
        padding: 9px 14px;
        font-size: 0.9rem;
    }

    .topbar-info a {
        font-size: 0.85rem;
    }

    .topbar-auth .btn {
        padding: 8px 16px;
        font-size: 0.8rem;
    }
}

/* Tablet (768px - 1200px) */
@media (max-width: 992px) {
    .topbar {
        padding: 12px 0;
    }

    .topbar-content {
        flex-wrap: wrap;
        justify-content: center;
        gap: 15px;
        padding: 0 20px;
    }

    .topbar-left {
        width: 100%;
        justify-content: center;
        flex: none;
    }

    .topbar-center {
        width: 100%;
        justify-content: center;
        flex: none;
        margin: 8px 0;
    }

    .topbar-right {
        width: 100%;
        justify-content: center;
        flex: none;
    }

    .nav-link {
        padding: 8px 12px;
        font-size: 0.85rem;
    }

    .navbar-container {
        gap: 20px;
    }

    .topbar-info a {
        font-size: 0.8rem;
    }

    .topbar-auth .btn {
        padding: 7px 14px;
        font-size: 0.75rem;
    }

    .dropdown-menu {
        min-width: 200px;
    }
}

/* Small Tablet (768px) */
@media (max-width: 768px) {
    .navbar-wrapper {
        padding: 0 15px;
    }

    .navbar-container {
        gap: 15px;
        padding: 10px 0;
    }

    .brand-link {
        width: 70px;
        height: 70px;
    }

    .brand-link::before {
        width: 150px;
        height: 150px;
    }

    .nav-menu-wrapper {
        display: none;
    }

    .mobile-toggle {
        display: flex;
    }

    .nav-link {
        padding: 7px 10px;
        font-size: 0.8rem;
    }

    .navbar-brand-logo {
        height: 42px;
    }
}

/* Mobile (576px - 768px) */
@media (max-width: 576px) {
    .topbar-content {
        flex-direction: column;
        gap: 12px;
        padding: 0 15px;
    }

    .topbar-left,
    .topbar-center,
    .topbar-right {
        width: 100%;
        justify-content: center;
        flex: none !important;
    }

    .topbar-auth .btn {
        padding: 6px 12px;
        font-size: 0.7rem;
        flex: 1;
        max-width: 150px;
    }

    .topbar-info a {
        font-size: 0.75rem;
    }

    .topbar-info i {
        font-size: 0.9rem;
        margin-right: 4px;
    }

    .navbar-wrapper {
        padding: 0 12px;
    }

    .brand-link {
        width: 65px;
        height: 65px;
    }

    .brand-link::before {
        width: 130px;
        height: 130px;
    }

    .navbar-brand-logo {
        height: 38px;
    }

    .navbar-container {
        gap: 10px;
        padding: 8px 0;
    }

    .nav-link {
        padding: 6px 8px;
        font-size: 0.75rem;
    }
}

/* Very Small Mobile (< 480px) */
@media (max-width: 480px) {
    .topbar-content {
        padding: 0 10px;
        gap: 10px;
    }

    .topbar-info {
        font-size: 0.8rem;
    }

    .topbar-info a {
        font-size: 0.7rem;
    }

    .topbar-auth .btn {
        padding: 5px 10px;
        font-size: 0.65rem;
    }

    .navbar-wrapper {
        padding: 0 10px;
    }

    .brand-link {
        width: 60px;
        height: 60px;
    }

    .brand-link::before {
        width: 120px;
        height: 120px;
    }

    .navbar-brand-logo {
        height: 35px;
    }
}

/* ===== ACCESSIBILITY ===== */

.nav-link:focus,
.dropdown-item:focus,
.topbar-auth .btn:focus {
    outline: 2px solid #008bc2;
    outline-offset: 2px;
}

/* High Contrast Mode */
@media (prefers-contrast: more) {
    .nav-link {
        font-weight: 700;
    }

    .topbar,
    .page-head {
        border-width: 2px;
    }

    .dropdown-item:hover {
        border-left-width: 4px;
    }
}

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

/* Dark Mode */
@media (prefers-color-scheme: dark) {
    .page-head {
        background: #1a1a16;
        border-bottom-color: #2a2a24;
    }

    .nav-link {
        color: #e5e3df;
    }

    .nav-link:hover {
        color: #0fa5e9;
        background: rgba(15, 165, 233, 0.15);
    }

    .dropdown-menu {
        background: #1a1a16;
        color: #e5e3df;
        border-color: #2a2a24;
    }

    .dropdown-item {
        color: #e5e3df;
    }

    .dropdown-item:hover {
        color: #0fa5e9;
        background: rgba(15, 165, 233, 0.15);
        border-left-color: #0fa5e9;
    }
}

/* Print */
@media print {
    .topbar,
    .page-head,
    .mobile-toggle {
        display: none !important;
    }
}
