/* ==========================================================
   DARK THEME NAVBAR - COMPACT & OPTIMIZED
   Desktop + Mobile Ready with Single-line Layout
   ========================================================== */

/* Root Body */
body {
    background-color: #0f0f0f;
    color: #e0e0e0;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    margin: 0;
    padding: 0;
    overflow-x: hidden;
    /* Content Protection */
    user-select: none;
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
}

img {
    -webkit-user-drag: none;
    -khtml-user-drag: none;
    -moz-user-drag: none;
    -o-user-drag: none;
    user-drag: none;
}

/* ==========================================================
   STIKY FEEDBACK BANNER - ULTRA-PREMIUM (DARK)
   ========================================================== */
.early-access-banner {
    display: flex !important;
    justify-content: center;
    align-items: center;
    gap: 8px;
    background: linear-gradient(135deg,
            rgba(30, 58, 138, 0.9) 0%,
            rgba(37, 99, 235, 0.85) 40%,
            rgba(30, 64, 175, 0.9) 100%);
    background-size: 200% auto;
    animation: shimmerBanner 6s linear infinite;
    color: #ffffff !important;
    padding: 4px 20px;
    text-align: center;
    font-size: clamp(0.85rem, 0.9vw, 1rem);
    font-weight: 500;
    position: sticky;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 9999;
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.3);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    letter-spacing: 0.3px;
    box-sizing: border-box;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.banner-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    color: #ffd700;
    filter: drop-shadow(0 0 8px rgba(255, 215, 0, 0.4));
    animation: bannerIconPulse 2s ease-in-out infinite;
}

.banner-text {
    opacity: 0.95;
}

.early-access-banner a.banner-cta {
    background: rgba(255, 215, 0, 0.15);
    color: #ffd700 !important;
    text-decoration: none !important;
    margin-left: 10px;
    font-weight: 700;
    padding: 3px 12px;
    border-radius: 50px;
    border: 1px solid rgba(255, 215, 0, 0.3);
    transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    display: inline-block;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.early-access-banner a.banner-cta:hover {
    background: #ffd700;
    color: #000000 !important;
    transform: scale(1.05) translateY(-1px);
    box-shadow: 0 4px 15px rgba(255, 215, 0, 0.4);
}

.banner-close {
    background: none;
    border: none;
    color: rgba(255, 255, 255, 0.8);
    cursor: pointer;
    padding: 6px;
    margin-left: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    border-radius: 50%;
    position: absolute;
    right: 10px;
}

.banner-close:hover {
    background: rgba(255, 255, 255, 0.2);
    color: #ffffff;
    transform: scale(1.1) rotate(90deg);
}

.banner-hidden {
    display: none !important;
}

/* --- Animations --- */
@keyframes shimmerBanner {
    0% {
        background-position: 0% 50%;
    }

    50% {
        background-position: 100% 50%;
    }

    100% {
        background-position: 0% 50%;
    }
}

@keyframes bannerIconPulse {

    0%,
    100% {
        transform: scale(1);
        opacity: 1;
    }

    50% {
        transform: scale(1.15);
        opacity: 0.8;
    }
}

/* ==========================================================
   NAVBAR BASE STRUCTURE - COMPACT
   ========================================================== */
.navbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    /* Minimum gap between left/center/right sections so the
       transform: scale(1.3)'d logo never visually overlaps the
       first nav link. Tuned down from 24/40 to 14/28 — the larger
       value pushed the right-side cluster (username + clock + theme
       toggle) past the navbar's right edge on mid-width viewports.
       14px is still enough breathing room around the scaled logo. */
    gap: clamp(14px, 1.4vw, 28px);
    position: relative;
    background-color: #181818;
    width: min(96%, 1400px);
    margin: clamp(10px, 1.5vw, 20px) auto;
    padding: clamp(10px, 1.2vw, 16px) clamp(24px, 2.5vw, 40px);
    border-radius: clamp(8px, 0.8vw, 12px);
    border: 1px solid #2a2a2a;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.35);
    backdrop-filter: blur(8px);
    box-sizing: border-box;
    transition: all 0.3s ease;
    min-height: 50px;
    height: auto;
    z-index: 3000;
}

.navbar:hover {
    box-shadow: 0 6px 25px rgba(0, 0, 0, 0.45);
}

/* Equal-gap layout: each section sizes to its own content, and the navbar's
   `justify-content: space-between` splits the leftover space equally between
   the two gaps (logo → links, links → right cluster). That gives equal
   breathing room on either side of the centered nav links regardless of
   how much wider the right cluster is than the logo. */
.navbar-section {
    flex: 0 0 auto;
    display: flex;
    align-items: center;
    min-width: 0;
}

.navbar-left {
    justify-content: flex-start;
    /* Logo never shrinks — its scaled visual size is fixed. */
    flex-shrink: 0;
}

.navbar-center {
    justify-content: center;
    /* Nav links are the one section that may shrink. They flow with
       gap and individual padding clamps and read clearly even at a
       smaller font, whereas the right cluster (clock / username /
       theme toggle) is interactive and shouldn't be clipped. */
    flex-shrink: 1;
    min-width: 0;
}

.navbar-right {
    justify-content: flex-end;
    gap: clamp(10px, 0.8vw, 16px);
    /* Right cluster stays full-size — losing the theme toggle off
       the right edge of the navbar (LJ report) was the bug this
       fixes. */
    flex-shrink: 0;
}

/* ==========================================================
   LOGO - COMPACT
   ========================================================== */
.navbar-logo .logo {
    height: clamp(48px, 4vw, 64px);
    display: block;
    filter: brightness(0.9);
    transform: scale(1.3) translateX(-8px) translateY(-1px);
    /* Slight left shift and vertical refinement */
    transform-origin: left center;
    transition: transform 0.3s ease, filter 0.3s ease;
}

.navbar-logo:hover .logo {
    transform: scale(1.36) translateX(-8px) translateY(-1px);
    filter: brightness(1.1);
}

/* ==========================================================
   NAVIGATION LINKS - SINGLE LINE OPTIMIZED
   ========================================================== */
.navbar-center {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: clamp(8px, 1vw, 16px);
    flex-wrap: nowrap;
    overflow: hidden;
}

.navbar-center a {
    color: #b0b0b0;
    /* Default color for inactive links */
    text-decoration: none;
    font-weight: 600;
    font-size: clamp(0.85rem, 0.9vw, 1.05rem);
    padding: clamp(4px, 0.45vw, 8px) clamp(8px, 1.2vw, 16px);
    border-radius: 6px;
    /* Invisible 1px border keeps every link the same total width as the
       active one (which gets a real 1px border) so the gaps stay uniform. */
    border: 1px solid transparent;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
    letter-spacing: 0.15px;
    white-space: nowrap;
}

.navbar-center a::before {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    width: 0;
    height: 2px;
    background: linear-gradient(90deg, #F90618, #2E3192);
    transform: translateX(-50%);
    transition: all 0.3s ease;
}

.navbar-center a::after {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(46, 49, 146, 0.15), transparent);
    transition: left 0.6s ease;
}

.navbar-center a:hover {
    color: #ffffff;
    background-color: rgba(46, 49, 146, 0.12);
    transform: translateY(-1px);
}

.navbar-center a:hover::before {
    width: 70%;
}

.navbar-center a:hover::after {
    left: 100%;
}

/* Active Page Link Styling - Highlight for current page */
.navbar-center a.active {
    color: #ffffff;
    background: linear-gradient(135deg, rgba(46, 49, 146, 0.25), rgba(249, 6, 24, 0.15));
    border: 1px solid rgba(249, 6, 24, 0.3);
    box-shadow: 0 3px 8px rgba(249, 6, 24, 0.2);
}

.navbar-center a.active::before {
    width: 70%;
    background: linear-gradient(90deg, #F90618, #2E3192);
}

/* ==========================================================
   RIGHT SECTION: TIME + THEME - COMPACT
   ========================================================== */
.navbar-time {
    display: inline-flex;
    justify-content: center;
    align-items: center;
    min-width: 115px;
    font-family: monospace;
    text-align: center;
    background-color: rgba(46, 49, 146, 0.1);
    color: #b0b0b0;
    font-weight: 600;
    font-size: clamp(0.85rem, 0.8vw, 1rem);
    padding: clamp(6px, 0.6vw, 8px) clamp(10px, 0.8vw, 14px);
    border-radius: 6px;
    border: 1px solid #333333;
    white-space: nowrap;
    transition: background-color 0.3s ease, color 0.3s ease;
}

.navbar-time:hover {
    color: #ffffff;
    background-color: rgba(46, 49, 146, 0.2);
    border-color: #2E3192;
}

/* Add space before AM/PM */
#ampm {
    margin-left: 4px;
}

.theme-toggle {
    background: rgba(249, 6, 24, 0.08);
    border: 1px solid #333333;
    border-radius: 6px;
    color: #b0b0b0;
    font-size: clamp(1.1rem, 0.9vw, 1.3rem);
    cursor: pointer;
    padding: clamp(6px, 0.6vw, 8px) clamp(10px, 0.8vw, 14px);
    transition: all 0.3s ease;
    overflow: hidden;
    position: relative;
    flex-shrink: 0;
}

.theme-toggle::before {
    content: '';
    position: absolute;
    left: -100%;
    top: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(249, 6, 24, 0.25), transparent);
    transition: left 0.6s ease;
}

.theme-toggle:hover {
    color: #ffffff;
    border-color: #F90618;
    background-color: rgba(249, 6, 24, 0.15);
    box-shadow: 0 3px 10px rgba(249, 6, 24, 0.25);
    transform: translateY(-1px);
}

.theme-toggle:hover::before {
    left: 100%;
}

/* Ensure moon icon is White/Gray in dark mode */
#moon-icon,
#mobile-moon-icon,
.theme-toggle svg,
.mobile-theme-toggle svg {
    fill: #FFFFFF !important;
    stroke: #E0E0E0 !important;
}



/* ==========================================================
   HAMBURGER MENU (Hidden on Desktop)
   ========================================================== */
.menu-toggle {
    display: none;
    position: absolute;
    right: 20px;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    color: #e0e0e0;
    border: none;
    font-size: 1.6rem;
    cursor: pointer;
    z-index: 1000;
    transition: color 0.3s ease;
    padding: 8px;
}

.menu-toggle:hover {
    color: #F90618;
}

/* ==========================================================
   MOBILE DROPDOWN MENU (Hidden by Default)
   ========================================================== */
.mobile-menu {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    width: 100%;
    background-color: #1a1a1a;
    flex-direction: column;
    border: 1px solid #2a2a2a;
    border-top: none;
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.35);
    border-radius: 0 0 10px 10px;
    overflow: hidden;
    max-height: 0;
    opacity: 0;
    transform: translateY(-8px);
    pointer-events: none;
    z-index: 3200;
    transition: max-height 0.3s ease, opacity 0.25s ease, transform 0.25s ease;
}

.mobile-menu.open {
    display: flex !important;
    max-height: 500px;
    opacity: 1;
    transform: translateY(0);
    pointer-events: auto;
}

.mobile-menu a {
    padding: 12px 20px;
    color: #b0b0b0;
    font-weight: 600;
    text-decoration: none;
    border-bottom: 1px solid #222222;
    background-color: #141414;
    transition: background-color 0.3s ease, color 0.3s ease;
    text-align: center;
}

.mobile-menu a:hover {
    background-color: #222222;
    color: #ffffff;
}

/* Mobile Active Page Link Styling */
.mobile-menu a.active {
    color: #ffffff;
    background: linear-gradient(135deg, rgba(46, 49, 146, 0.25), rgba(249, 6, 24, 0.15));
    border-left: 4px solid #F90618;
    font-weight: 700;
}

.mobile-menu .mobile-bottom {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 20px;
    background-color: #181818;
    border-top: 1px solid #2a2a2a;
}

/* Mobile Time + Theme */
.mobile-time {
    color: #b0b0b0;
    font-weight: 500;
    font-size: 0.9rem;
    background-color: rgba(46, 49, 146, 0.1);
    padding: 6px 10px;
    border-radius: 5px;
    border: 1px solid #333333;
}

.mobile-theme-toggle {
    background: rgba(249, 6, 24, 0.08);
    color: #e0e0e0;
    border: 1px solid #333333;
    border-radius: 5px;
    font-size: 1.1rem;
    cursor: pointer;
    padding: 6px 10px;
    transition: all 0.3s ease;
}

.mobile-theme-toggle:hover {
    color: #ffffff;
    background-color: rgba(249, 6, 24, 0.15);
    border-color: #F90618;
}

/* ==========================================================
   RESPONSIVE BEHAVIOR
   ========================================================== */
@media (max-width: 1024px) {
    .navbar {
        padding: 10px 20px;
    }

    .navbar-center {
        gap: clamp(6px, 0.8vw, 12px);
    }

    .navbar-center a {
        font-size: clamp(0.85rem, 0.9vw, 1rem);
        padding: clamp(5px, 0.5vw, 8px) clamp(10px, 1vw, 16px);
    }
}

/* Mobile/compact hamburger breakpoint — laptops keep the desktop
   nav. We catch the moon-icon-clipping issue separately via the
   compact-mode media query (navbar.html), which hides the clock
   seconds and shrinks the username pill on widths up to 1500 px
   so the right cluster fits on all laptop sizes. */
@media (max-width: 1200px) {
    .navbar {
        justify-content: space-between;
        padding: 10px 16px;
        min-height: 45px;
    }

    .navbar-left {
        display: flex !important;
        flex: 0 1 auto;
    }

    .navbar-right,
    .navbar-center {
        display: none;
    }

    .menu-toggle {
        display: block;
        position: static;
        transform: none;
    }

    .mobile-menu.open {
        display: flex;
        max-height: 500px;
        opacity: 1;
        transform: translateY(0);
        animation: dropdownFade 0.3s ease forwards;
    }

    /* Adjust logo size for mobile */
    .navbar-logo .logo {
        height: 32px;
    }
}

@media (max-width: 768px) {
    .navbar-center {
        gap: 4px;
    }

    .navbar-center a {
        font-size: 0.8rem;
        padding: 5px 8px;
    }
}

@media (max-width: 480px) {
    .navbar {
        padding: 8px 12px;
        min-height: 42px;
    }

    .menu-toggle {
        font-size: 1.4rem;
        padding: 6px;
    }

    .navbar-logo .logo {
        height: 28px;
    }

    .mobile-menu a {
        padding: 10px 16px;
        font-size: 0.9rem;
    }

    .mobile-bottom {
        padding: 10px 16px;
    }
}

@keyframes dropdownFade {
    from {
        opacity: 0;
        transform: translateY(-8px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ==========================================================
   ACCESSIBILITY & POLISH
   ========================================================== */
.navbar-center a:focus,
.theme-toggle:focus,
.navbar-time:focus,
.menu-toggle:focus {
    outline: 2px solid #2E3192;
    outline-offset: 3px;
}

.navbar,
.navbar-center a,
.theme-toggle,
.navbar-time {
    transition: all 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

/* ==========================================================
   ULTRA-WIDE + RETINA OPTIMIZATION
   ========================================================== */
@media (min-width: 1920px) {
    .navbar {
        max-width: 1600px;
        padding: 14px 50px;
        border-radius: 12px;
    }

    .navbar-center a {
        font-size: 1.05rem;
    }

    .theme-toggle,
    .navbar-time {
        font-size: 1rem;
    }
}

@media (min-width: 2560px) {
    .navbar {
        max-width: 2000px;
        padding: 16px 60px;
        border-radius: 14px;
    }

    .navbar-center a {
        font-size: 1.15rem;
    }

    .theme-toggle,
    .navbar-time {
        font-size: 1.1rem;
    }
}

/* ==========================================================
   LINK OVERFLOW PROTECTION
   ========================================================== */
.navbar-center {
    /* Prevent links from wrapping or overlapping */
    flex-wrap: nowrap;
    overflow: hidden;
}

.navbar-center a {
    /* Ensure links maintain proper spacing */
    margin: 0 1px;
}

/* ==========================================================
   COMPACT NAVBAR HEIGHT FIX
   ========================================================== */
.navbar {
    height: auto;
    min-height: 50px;
    align-items: center;
}

.navbar>* {
    flex-shrink: 0;
}

/* Ensure single line layout */
.navbar-center a {
    line-height: 1.2;
    display: inline-block;
    vertical-align: middle;
}

/* ==========================================================
   DARK THEME SPECIFIC ENHANCEMENTS
   ========================================================== */
.navbar-logo .logo {
    filter: brightness(0.9);
}

.navbar-logo:hover .logo {
    filter: brightness(1.1);
}

/* Ensure text remains readable in dark theme */
.navbar-center a,
.navbar-time,
.theme-toggle,
.mobile-menu a {
    color: #b0b0b0;
}

.navbar-center a:hover,
.navbar-time:hover,
.mobile-menu a:hover {
    color: #ffffff;
}

/* Mobile menu active state */
.mobile-menu a.active {
    color: #ffffff;
    background-color: rgba(46, 49, 146, 0.25);
}

/* Mobile bottom section enhancements */
.mobile-bottom {
    background-color: #181818;
    border-top: 1px solid #2a2a2a;
}

.mobile-time {
    background-color: rgba(46, 49, 146, 0.1);
    border: 1px solid #333333;
}

.mobile-time:hover {
    background-color: rgba(46, 49, 146, 0.2);
    border-color: #2E3192;
}

.mobile-theme-toggle {
    background-color: rgba(249, 6, 24, 0.08);
    border: 1px solid #333333;
}

.mobile-theme-toggle:hover {
    background-color: rgba(249, 6, 24, 0.15);
    border-color: #F90618;
}



/* ==========================================================
   FOOTER BASE & CONTENT
   ========================================================== */
.footer {
    background: #111111;
    color: #e0e0e0;
    padding: 2rem 0 0.8rem;
    margin-top: auto;
    border-top: 1px solid #2d2d2d;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    position: relative;
    overflow: hidden;
    line-height: 1.6;
}

.footer p {
    margin: 0;
    padding: 0;
}

.footer::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, #f90618, #2e3192);
}

.footer-content {
    max-width: 1400px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1.4fr 1fr 1fr;
    align-items: flex-start;
    gap: 2rem;
    padding: 0 3rem;
}

/* Tablet landscape / small laptop (769-1023px): same 3-column layout, tighter spacing */
@media (min-width: 769px) and (max-width: 1023px) {
    .footer-content {
        grid-template-columns: 1.4fr 1fr 1fr;
        padding: 0 1.5rem;
        gap: 1.25rem;
    }
}

.footer-section {
    flex: 1;
    min-width: 200px;
}

.footer-branding-section {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

.footer-section h3 {
    color: #ffffff;
    margin-top: 0;
    margin-bottom: 1rem;
    font-size: 1.1rem;
    position: relative;
    padding-bottom: 0.5rem;
    text-align: center;
}

.footer-section h3::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 40px;
    height: 2px;
    background: #f90618;
}

.footer-branding {
    display: flex;
    align-items: center;
    margin-bottom: 1rem;
    padding-bottom: 0.5rem;
    position: relative;
    width: 100%;
}

.footer-branding::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 85%;
    max-width: 340px;
    height: 2px;
    background: #f90618;
}

.footer-logo {
    width: 100%;
    max-width: 280px;
    height: auto;
    display: block;
    margin: 0 auto;
}

/* ==========================================================
   STANDARD FOOTER LINKS (Arrow Removed on Click)
   ========================================================== */
.footer-section a {
    color: #b0b0b0;
    text-decoration: none;
    display: block;
    margin-bottom: 0.55rem;
    padding: 0.15rem 0;
    font-size: 0.95rem;
    transition: all 0.3s ease;
    position: relative;
    text-align: center;
    outline: none !important;
    -webkit-tap-highlight-color: transparent;
}

.footer-section a:hover {
    color: #f90618;
    transform: translateX(3px);
}

/* Removal of any border when active or focused */
.footer-section a:focus,
.footer-section a:active {
    outline: none !important;
    border: none !important;
    box-shadow: none !important;
}



/* ==========================================================
   SPONSOR LINK (Pill Button Styling)
   ========================================================== */
.sponsor-text {
    font-style: italic;
    color: #888888;
    font-size: 0.85rem;
    margin: 45px auto 25px;
    max-width: 220px;
    border-top: 1px solid #2a2a2a;
    padding-top: 2.2rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1.3rem;
}

.sponsor-link {
    color: #F90618 !important;
    /* Branding Red */
    font-weight: bold;
    display: inline-block !important;
    border: 1px solid #F90618 !important;
    padding: 0.35rem 1.6rem !important;
    border-radius: 20px;
    text-decoration: none !important;
    transition: all 0.3s ease !important;
}

.sponsor-text a:hover {
    color: #ffffff !important;
    background-color: #F90618 !important;
    text-decoration: none !important;
    transform: translateY(-2px) !important;
    box-shadow: 0 4px 12px rgba(249, 6, 24, 0.4) !important;
}

/* Click safety for sponsor link */
.sponsor-text a:focus,
.sponsor-text a:active {
    outline: none !important;
    box-shadow: none !important;
    transform: translateY(0) !important;
}

/* ==========================================================
   FOOTER BOTTOM
   ========================================================== */
.footer-bottom {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 1rem;
    max-width: 1400px;
    margin: 1.5rem auto 0;
    padding: 1rem 3rem 0;
    border-top: 1px solid #2a2a2a;
    color: #888;
    font-size: 0.85rem;
}

.footer-bottom p {
    margin: 0;
}

.footer-bottom-links {
    display: flex;
    gap: 1.25rem;
}

.footer-bottom-links a {
    color: inherit;
    text-decoration: none;
    transition: color 0.2s ease;
}

.footer-bottom-links a:hover {
    color: #ddd;
}

/* Animation for page load */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.footer-section {
    animation: fadeInUp 0.6s ease forwards;
}

.footer-section:nth-child(1) {
    animation-delay: 0.1s;
}

.footer-section:nth-child(2) {
    animation-delay: 0.2s;
}

.footer-section:nth-child(3) {
    animation-delay: 0.3s;
}

/* Hover effects for the entire footer */
.footer:hover {
    border-top-color: #f90618;
}

/* Focus states for accessibility */
.footer-section a:focus {
    outline: 2px solid #2e3192;
    outline-offset: 2px;
    border-radius: 2px;
}

/* Print styles */
@media print {
    .footer {
        background: #ffffff !important;
        color: #000000 !important;
        border-top: 1px solid #000000 !important;
    }

    .footer-section a {
        color: #000000 !important;
    }
}

/* Theme Icon Styling Override */
#moon-icon,
#mobile-moon-icon {
    fill: #FFFFFF !important;
    stroke: #E0E0E0 !important;
}

/* ==========================================================
   SESSION RECOVERY MODAL - PREMIUM DARK
   ========================================================== */
.session-modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.85);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10000;
    opacity: 0;
    visibility: hidden;
    transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
}

.session-modal-overlay.show {
    opacity: 1;
    visibility: visible;
}

.session-modal-content {
    background: #1a1a1a;
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 20px;
    padding: 2.5rem;
    max-width: 450px;
    width: 90%;
    text-align: center;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.5);
    transform: scale(0.9) translateY(20px);
    transition: all 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.session-modal-overlay.show .session-modal-content {
    transform: scale(1) translateY(0);
}

.session-modal-header {
    margin-bottom: 1.5rem;
}

.session-modal-icon {
    font-size: 3rem;
    color: #16a34a;
    margin-bottom: 1rem;
    filter: drop-shadow(0 0 15px rgba(34, 197, 94, 0.3));
}

.session-modal-title {
    font-size: 1.8rem;
    font-weight: 700;
    color: #ffffff;
    margin: 0;
}

.session-modal-body p {
    color: #a0a0a0;
    font-size: 1.1rem;
    line-height: 1.6;
    margin-bottom: 2rem;
}

.session-modal-footer {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.session-btn {
    padding: 1rem 1.5rem;
    border-radius: 12px;
    border: none;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
}

.btn-continue {
    background: linear-gradient(135deg, #16a34a, #15803d);
    color: white;
    box-shadow: 0 4px 15px rgba(22, 163, 74, 0.3);
}

.btn-continue:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(34, 197, 94, 0.4);
    filter: brightness(1.1);
}

.btn-new {
    background: rgba(255, 255, 255, 0.05);
    color: #e0e0e0;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.btn-new:hover {
    background: rgba(239, 68, 68, 0.1);
    color: #ef4444;
    border-color: rgba(239, 68, 68, 0.3);
    transform: translateY(-2px);
}

/* ==========================================================
   VITAL VISIBILITY & STATUS INDICATORS
   ========================================================== */
/* Card #333 — visible "ON" state renders no dot; only the OFF / hidden
   state surfaces a red pulsing dot. Default is hidden; the selectors
   below opt back in when the vital (or a sub-vital) is non-visible. */
.status-dot-indicator {
    position: absolute;
    top: 10px;
    right: 10px;
    width: 10px;
    height: 10px;
    background-color: #ef4444;
    border-radius: 50%;
    box-shadow: 0 0 10px rgba(239, 68, 68, 0.6);
    z-index: 100;
    display: none !important;
    pointer-events: none;
}

/* Red dot state (NV - Non-Visible or partially hidden) */
.vital-box.hidden-vital .status-dot-indicator,
.status-dot-indicator.indicator-off,
.vital-info.hidden-sub-vital .status-dot-indicator,
.chart-wrapper.hidden-sub-vital .status-dot-indicator {
    background-color: #ef4444; /* Red dot */
    box-shadow: 0 0 10px rgba(239, 68, 68, 0.6);
    animation: pulseRedDot 2s infinite;
    display: block !important;
}

@keyframes pulseRedDot {
    0% {
        transform: scale(1);
        opacity: 1;
    }

    50% {
        transform: scale(1.3);
        opacity: 0.7;
    }

    100% {
        transform: scale(1);
        opacity: 1;
    }
}

.vital-box.hidden-vital .status-dot-indicator,
.vital-box.any-vital-hidden .status-dot-indicator {
    display: block !important;
}

/* Maintain box structure but hide content */
.vital-box.hidden-vital .vital-info>*:not(.status-dot-indicator),
.vital-box.hidden-vital .chart-wrapper canvas,
.vital-box.hidden-vital .bp-content>*:not(.status-dot-indicator),
.vital-box.hidden-vital .temp-content>*:not(.status-dot-indicator),
.vital-box.hidden-vital .glucose-content>*:not(.status-dot-indicator),
.vital-box.hidden-vital .reveal-bar,
.vital-box.hidden-vital .sweep-bar,
.vital-box.hidden-vital .reveal-bar-etco2,
.vital-box.hidden-vital .sweep-bar-etco2 {
    visibility: hidden !important;
    opacity: 0 !important;
    pointer-events: none !important;
}

/* Ensure chart containers maintain a black background when content is hidden */
.vital-box.hidden-vital .chart-wrapper,
.chart-wrapper.hidden-sub-vital {
    visibility: visible !important;
    opacity: 1 !important;
    background-color: #0c0c0c !important;
    border-radius: 12px;
}

.chart-wrapper.hidden-sub-vital canvas,
.chart-wrapper.hidden-sub-vital .reveal-bar,
.chart-wrapper.hidden-sub-vital .sweep-bar,
.chart-wrapper.hidden-sub-vital .reveal-bar-etco2,
.chart-wrapper.hidden-sub-vital .sweep-bar-etco2 {
    visibility: hidden !important;
    opacity: 0 !important;
}


/* Specific sub-vital hiding (for SpCO% and ETCO2/RR) */
.hidden-sub-vital {
    visibility: hidden !important;
    opacity: 0 !important;
    pointer-events: none !important;
}