/* ==========================================================
   MOBILE DARK THEME NAVBAR (Optimized for =768px)
   Built for professional web UI — modern, animated, elegant
   ========================================================== */

/* ------------------ Root Body ------------------ */
body {
  background-color: #0e0e0e;
  color: #e0e0e0;
  font-family: "Segoe UI", Tahoma, Geneva, Verdana, sans-serif;
  margin: 0;
  padding: 0;
  transition: background-color 0.3s ease, color 0.3s ease;
  overflow-x: hidden;
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}

/* ==========================================================
   STIKY FEEDBACK BANNER - MOBILE DARK (ULTRA-SLIM)
   ========================================================== */
.early-access-banner {
  display: flex !important;
  flex-direction: row;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: 4px;
  background: linear-gradient(135deg,
      rgba(30, 58, 138, 0.95) 0%,
      rgba(37, 99, 235, 0.9) 50%,
      rgba(30, 58, 138, 0.95) 100%);
  background-size: 200% auto;
  animation: shimmerBanner 6s linear infinite;
  color: #ffffff !important;
  padding: 3px 10px;
  text-align: center;
  font-size: 0.75rem;
  font-weight: 500;
  position: sticky;
  top: 0;
  width: 100vw;
  margin-left: calc(-50vw + 50%);
  z-index: 9999;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  line-height: 1.2;
  box-sizing: border-box;
}

.banner-icon {
  color: #ffd700;
  transform: scale(0.75);
  animation: bannerIconPulse 2s ease-in-out infinite;
  display: flex;
}

.early-access-banner a.banner-cta {
  background: rgba(255, 215, 0, 0.2);
  color: #ffd700 !important;
  text-decoration: none !important;
  margin-left: 4px;
  font-weight: 700;
  padding: 2px 8px;
  border-radius: 50px;
  border: 1px solid rgba(255, 215, 0, 0.3);
  font-size: 0.7rem;
  display: inline-block;
  white-space: nowrap;
}

.early-access-banner a.banner-cta:active {
  transform: scale(0.95);
}

.banner-close {
  background: none;
  border: none;
  color: rgba(255, 255, 255, 0.8);
  cursor: pointer;
  padding: 4px;
  margin-left: auto;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s ease;
  border-radius: 50%;
  position: absolute;
  right: 5px;
  top: 50%;
  transform: translateY(-50%);
}

.banner-close:active {
  background: rgba(255, 255, 255, 0.2);
  transform: translateY(-50%) scale(0.9);
}

.banner-hidden {
  display: none !important;
}

@keyframes shimmerBanner {
  0% {
    background-position: 0% 50%;
  }

  50% {
    background-position: 100% 50%;
  }

  100% {
    background-position: 0% 50%;
  }
}

@keyframes bannerIconPulse {

  0%,
  100% {
    transform: scale(1);
  }

  50% {
    transform: scale(1.15);
  }
}

/* ==========================================================
   NAVBAR BASE CONTAINER
   ========================================================== */
.navbar {
  width: 94%;
  margin: 12px auto;
  background-color: rgba(20, 20, 20, 0.95);
  border-radius: 14px;
  padding: 14px 18px;
  box-shadow: 0 6px 25px rgba(0, 0, 0, 0.5);
  border: 1px solid #2a2a2a;
  display: flex;
  align-items: center;
  justify-content: space-between;
  position: relative;
  backdrop-filter: blur(10px);
  transition: all 0.3s ease;
  z-index: 1000;
}

.navbar:hover {
  box-shadow: 0 10px 35px rgba(0, 0, 0, 0.6);
}

/* ==========================================================
   NAVBAR LEFT — LOGO
   ========================================================== */
.navbar-left {
  flex-shrink: 0;
}

.navbar-logo .logo {
  height: 40px;
  filter: brightness(0.9);
  transition: transform 0.3s ease, filter 0.3s ease;
}

.navbar-logo:hover .logo {
  transform: scale(1.05);
  filter: brightness(1.1);
}

/* ==========================================================
   NAVBAR CENTER (Desktop Only)
   ========================================================== */
.navbar-center {
  display: none;
  /* Hidden on mobile */
}

/* ==========================================================
   NAVBAR RIGHT (Desktop Only)
   ========================================================== */
.navbar-right {
  display: none;
}

/* ==========================================================
   HAMBURGER MENU BUTTON
   ========================================================== */
.menu-toggle {
  background: none;
  border: none;
  color: #e0e0e0;
  font-size: 2rem;
  cursor: pointer;
  position: absolute;
  top: 14px;
  right: 18px;
  z-index: 1100;
  transition: color 0.3s ease, transform 0.2s ease;
}

.menu-toggle:hover {
  color: #F90618;
  transform: scale(1.1);
}

/* ==========================================================
   MOBILE DROPDOWN MENU
   ========================================================== */
.mobile-menu {
  position: absolute;
  top: calc(100% + 10px);
  left: 0;
  width: 100%;
  background-color: rgba(26, 26, 26, 0.98);
  border: 1px solid #2a2a2a;
  border-radius: 12px;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.55);
  overflow: hidden;
  max-height: 0;
  opacity: 0;
  transform: translateY(-10px);
  transition:
    max-height 0.45s ease,
    opacity 0.3s ease,
    transform 0.35s ease;
  display: flex;
  flex-direction: column;
  z-index: 1080;
  backdrop-filter: blur(10px);
}

/* When menu is open */
.mobile-menu.open {
  max-height: 500px;
  opacity: 1;
  transform: translateY(0);
  padding-top: 8px;
}

/* ==========================================================
   MOBILE LINKS
   ========================================================== */
.mobile-menu a {
  text-decoration: none;
  color: #b0b0b0;
  text-align: center;
  font-weight: 600;
  padding: 14px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  transition: background-color 0.3s ease, color 0.3s ease;
}

.mobile-menu a:last-child {
  border-bottom: none;
}

.mobile-menu a:hover {
  background-color: rgba(249, 6, 24, 0.15);
  color: #fff;
}

.mobile-menu a.active {
  color: #fff;
  background-color: rgba(46, 49, 146, 0.25);
  border-left: 4px solid #F90618;
}

/* ==========================================================
   MOBILE MENU BOTTOM SECTION
   (Time on left, theme toggle on right)
   ========================================================== */
.mobile-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 12px 18px;
  margin-top: 6px;
  background-color: rgba(15, 15, 15, 0.9);
  border-top: 1px solid #2a2a2a;
  border-radius: 0 0 12px 12px;
}

/* Mobile Time */
.mobile-time {
  color: #b0b0b0;
  font-size: 1rem;
  font-weight: 600;
  padding: 6px 10px;
  border-radius: 6px;
  background-color: rgba(46, 49, 146, 0.1);
  border: 1px solid #333;
  transition: all 0.3s ease;
}

.mobile-time:hover {
  color: #fff;
  background-color: rgba(46, 49, 146, 0.2);
  border-color: #2E3192;
}

/* Mobile Theme Toggle */
.mobile-theme-toggle {
  background-color: rgba(249, 6, 24, 0.1);
  border: 1px solid #333;
  border-radius: 6px;
  color: #e0e0e0;
  font-size: 1.3rem;
  cursor: pointer;
  padding: 8px 10px;
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
}

.mobile-theme-toggle:hover {
  background-color: rgba(249, 6, 24, 0.2);
  border-color: #F90618;
  color: #fff;
  transform: translateY(-1px);
  box-shadow: 0 3px 10px rgba(249, 6, 24, 0.25);
}

/* ==========================================================
   SMOOTH ICON & MENU TRANSITIONS
   ========================================================== */
.mobile-theme-toggle::before {
  content: "";
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg,
      transparent,
      rgba(249, 6, 24, 0.25),
      transparent);
  transition: left 0.5s ease;
}

.mobile-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;
}


/* ==========================================================
   MENU OPEN ANIMATION
   ========================================================== */
@keyframes dropdown-open {
  from {
    opacity: 0;
    transform: translateY(-10px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.mobile-menu.open {
  animation: dropdown-open 0.4s ease;
}

/* ==========================================================
   MOBILE RESPONSIVE HANDLING
   ========================================================== */
@media (max-width: 480px) {
  .navbar {
    width: 96%;
    padding: 12px 14px;
  }

  .mobile-menu a {
    font-size: 0.95rem;
    padding: 12px;
  }

  .menu-toggle {
    font-size: 1.8rem;
    right: 12px;
  }

  .mobile-bottom {
    padding: 10px 14px;
  }

  .mobile-time {
    font-size: 0.9rem;
  }
}

/* ==========================================================
   TABLET SUPPORT (481px – 768px)
   ========================================================== */
@media (min-width: 481px) and (max-width: 768px) {
  .navbar {
    width: 92%;
    padding: 14px 18px;
  }

  .mobile-menu a {
    font-size: 1rem;
    padding: 14px;
  }

  .mobile-bottom {
    padding: 12px 20px;
  }

  .mobile-theme-toggle {
    font-size: 1.4rem;
  }
}

/* ==========================================================
   DESKTOP TRANSITION (=769px)
   Hide mobile layout, show desktop navbar
   ========================================================== */
@media (min-width: 769px) {
  .navbar {
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    width: min(95%, 1400px);
    padding: 20px 40px;
    border-radius: 14px;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.4);
  }

  .menu-toggle,
  .mobile-menu {
    display: none !important;
  }

  .navbar-left,
  .navbar-center,
  .navbar-right {
    display: flex !important;
  }

  .navbar-center {
    flex: 1;
    justify-content: center;
    gap: clamp(18px, 2.5vw, 32px);
  }

  .navbar-center a {
    color: #b0b0b0;
    text-decoration: none;
    font-weight: 600;
    font-size: 1.05rem;
    padding: 10px 18px;
    border-radius: 6px;
    position: relative;
    transition: all 0.3s ease;
  }

  .navbar-center a:hover {
    color: #fff;
    background-color: rgba(46, 49, 146, 0.1);
  }

  .navbar-right {
    gap: 14px;
  }

  .navbar-time {
    color: #b0b0b0;
    font-weight: 600;
    font-size: 1rem;
    background-color: rgba(46, 49, 146, 0.1);
    border: 1px solid #333;
    border-radius: 6px;
    padding: 8px 12px;
    transition: all 0.3s ease;
  }

  .navbar-time:hover {
    color: #fff;
    background-color: rgba(46, 49, 146, 0.2);
  }

  .theme-toggle {
    background-color: rgba(249, 6, 24, 0.1);
    border: 1px solid #333;
    border-radius: 6px;
    color: #b0b0b0;
    font-size: 1.3rem;
    cursor: pointer;
    padding: 8px 12px;
    transition: all 0.3s ease;
  }

  .theme-toggle:hover {
    background-color: rgba(249, 6, 24, 0.2);
    border-color: #F90618;
    color: #fff;
    box-shadow: 0 4px 12px rgba(249, 6, 24, 0.25);
  }
}

/* ==========================================================
   ACCESSIBILITY FOCUS STYLES
   ========================================================== */
.mobile-menu a:focus,
.menu-toggle:focus,
.mobile-theme-toggle:focus {
  outline: 2px solid #2E3192;
  outline-offset: 3px;
}

/* ==========================================================
   TRANSITION FLUIDITY
   ========================================================== */
.navbar,
.menu-toggle,
.mobile-menu a,
.mobile-bottom,
.mobile-theme-toggle,
.mobile-time {
  transition: all 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}


/* --- PROFESSIONAL FOOTER STYLES - CENTERED ON MOBILE --- */

/* =============================================
   FOOTER MOBILE DARK THEME CSS - CENTERED
   ============================================= */

.footer {
  background: #141414;
  color: #e0e0e0;
  padding: 2rem 0 1.5rem;
  margin-top: auto;
  border-top: 1px solid #282828;
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
  -webkit-tap-highlight-color: transparent;
}

.footer::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, #f90618, #2e3192);
  opacity: 0.9;
}

.footer-content {
  max-width: 100%;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr;
  gap: 2.5rem;
  padding: 0 1.5rem;
  position: relative;
  z-index: 1;
}

.footer-section {
  width: 100%;
  text-align: center;
  transition: all 0.3s ease;
  padding: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
}

/* --- Section Headings --- */
.footer-section h3 {
  color: #ffffff;
  margin-bottom: 1.2rem;
  font-size: 1.4rem;
  font-weight: 700;
  letter-spacing: 0.5px;
  position: relative;
  padding-bottom: 0.75rem;
}

.footer-section h3::after,
.footer-branding::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 40px;
  height: 2px;
  /* Consistent 2px thickness */
  background: #f90618;
  transition: all 0.3s ease;
  border-radius: 2px;
}

.footer-branding {
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1.2rem;
  padding-bottom: 0.75rem;
  position: relative;
  width: 100%;
}

.footer-logo {
  width: 100%;
  height: auto;
  display: block;
}

/* Link List Styling */
.footer-links {
  display: flex;
  flex-direction: column;
  gap: 8px;
  /* Add a max-width and center the container to make links less wide */
  max-width: 300px;
  margin: 0 auto;
  /* <<< CENTERED LINKS CONTAINER HERE */
}

.footer-section a {
  color: #b0b0b0;
  text-decoration: none;
  display: flex;
  justify-content: center;
  /* <<< CENTERED LINK TEXT HERE */
  align-items: center;
  margin-bottom: 0;
  padding: 10px 12px;
  transition: all 0.2s ease;
  position: relative;
  border-radius: 6px;
  background: none;
  border: none;
  font-size: 1rem;
  font-weight: 500;
  min-height: auto;
}

.footer-section a:hover {
  color: #fff;
  background: rgba(255, 255, 255, 0.05);
  transform: none;
}

.footer-section a:active {
  background: rgba(249, 6, 24, 0.1);
  transform: scale(0.99);
}

/* First section description styling */
.footer-section p {
  line-height: 1.6;
  margin-bottom: 1.5rem;
  color: #b0b0b0;
  font-size: 1rem;
  padding: 0;
  text-align: center;
  /* <<< CENTERED TEXT HERE */
}

/* Sponsor Text */
.footer-branding-section>br {
  display: none;
}

.sponsor-text {
  font-style: italic;
  color: #888888 !important;
  font-size: 0.9rem;
  margin-top: 0.4rem !important;
  padding: 0 !important;
  background: none;
  border: none;
  border-radius: 0;
  text-align: center;
}

.sponsor-text a,
.sponsor-link {
  color: #F90618 !important;
  font-weight: 700;
  display: inline-block !important;
  border: 1px solid #F90618 !important;
  padding: 0.3rem 1.4rem !important;
  border-radius: 20px;
  text-decoration: none !important;
  background: none !important;
  transition: all 0.3s ease !important;
  min-height: auto !important;
}

.sponsor-text a:hover,
.sponsor-link: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;
}

/* --- Section Color Highlights --- */
.footer-section:first-child h3 {
  color: #f90618;
}

.footer-section:first-child h3::after {
  background: #f90618;
}

.footer-section:nth-child(2) h3::after {
  background: #2e3192;
}

.footer-section:nth-child(2) a:hover {
  color: #2e3192;
}

.footer-section:nth-child(2) a:active {
  background: rgba(46, 49, 146, 0.1);
}

.footer-section:nth-child(3) h3::after {
  background: linear-gradient(90deg, #f90618, #2e3192);
}

.footer-section:nth-child(3) a:hover {
  color: #fff;
}


/* --- Bottom Copyright Area --- */
.footer-bottom {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.75rem;
  text-align: center;
  margin-top: 2rem;
  border-top: 1px solid #333;
  color: #888;
  font-size: 0.9rem;
  position: relative;
  padding: 1.5rem 1.5rem 0;
}

.footer-bottom p {
  margin: 0;
}

.footer-bottom-links {
  display: flex;
  gap: 1.25rem;
}

.footer-bottom-links a {
  color: inherit;
  text-decoration: none;
}

.footer-bottom::before {
  content: '';
  position: absolute;
  top: -1px;
  left: 50%;
  transform: translateX(-50%);
  width: 120px;
  height: 2px;
  background: linear-gradient(90deg, transparent, #f90618, #2e3192, transparent);
  border-radius: 1px;
}

/* --- MOBILE RESPONSIVENESS (Refined) --- */
@media (max-width: 480px) {
  .footer {
    padding: 1.5rem 0 1rem;
  }

  .footer-content {
    padding: 0 1rem;
    gap: 2rem;
  }

  .footer-section h3 {
    font-size: 1.3rem;
  }

  .footer-section p {
    font-size: 0.95rem;
  }

  .footer-section a {
    font-size: 0.95rem;
    padding: 8px 10px;
  }

  .footer-bottom {
    padding: 1.5rem 1rem 0;
    font-size: 0.85rem;
  }
}

/* Extra small devices */
@media (max-width: 360px) {
  .footer-section h3 {
    font-size: 1.2rem;
  }

  .footer-section a {
    font-size: 0.9rem;
  }
}

/* Tablet optimization (481px – 768px) - Two columns */
@media (min-width: 481px) and (max-width: 768px) {
  .footer-content {
    grid-template-columns: repeat(2, 1fr);
    padding: 0 2rem;
    max-width: 600px;
    margin: 0 auto;
  }

  /* Make the first section span two columns and center its content */
  .footer-section:first-child {
    grid-column: 1 / span 2;
    margin: 0 auto;
    text-align: center;
    max-width: 100%;
  }

  .footer-section:first-child h3::after {
    left: 50%;
    transform: translateX(-50%);
  }

  /* Center the remaining two sections */
  .footer-section:nth-child(2),
  .footer-section:nth-child(3) {
    text-align: center;
  }

  /* Center the link underlines */
  .footer-section:nth-child(2) h3::after,
  .footer-section:nth-child(3) h3::after {
    left: 50%;
    transform: translateX(-50%);
  }

  .footer-links {
    max-width: 100%;
    /* Allow links to use full column width */
  }
}


/* --- ANIMATIONS AND ACCESSIBILITY --- */

/* Animation for page load - mobile optimized */
@keyframes fadeInUpMobile {
  from {
    opacity: 0;
    transform: translateY(15px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.footer-section {
  animation: fadeInUpMobile 0.5s ease forwards;
}

.footer-section:nth-child(1) {
  animation-delay: 0.1s;
}

.footer-section:nth-child(2) {
  animation-delay: 0.15s;
}

.footer-section:nth-child(3) {
  animation-delay: 0.2s;
}

/* Reduce animation for users who prefer reduced motion */
@media (prefers-reduced-motion: reduce) {
  .footer-section {
    animation: none;
    transition: none;
  }
}

/* Focus states for accessibility - mobile optimized */
.footer-section a:focus {
  outline: 3px solid #2e3192;
  outline-offset: 2px;
  border-radius: 6px;
  background: rgba(46, 49, 146, 0.15);
}

/* High contrast mode support */
@media (prefers-contrast: high) {
  .footer {
    background: #000000;
    border-top: 2px solid #ffffff;
  }

  .footer-section h3 {
    color: #ffffff;
  }

  .footer-section a {
    color: #ffffff;
    border: 1px solid #ffffff;
    background: transparent;
  }

  .footer-section a:hover {
    background: #ffffff;
    color: #000000;
  }

  .footer-section h3::after {
    height: 4px;
    background: #ffffff;
  }
}

/* Print styles */
@media print {
  .footer {
    background: #ffffff !important;
    color: #000000 !important;
    border-top: 2px solid #000000 !important;
    padding: 1rem 0 !important;
  }

  .footer-section a {
    color: #000000 !important;
    background: transparent !important;
    border: 1px solid #000000 !important;
  }

  .footer::before {
    background: #000000 !important;
  }
}

/* Safe area insets for notched devices */
@supports(padding: max(0px)) {
  .footer-content {
    padding-left: max(1.5rem, env(safe-area-inset-left));
    padding-right: max(1.5rem, env(safe-area-inset-right));
  }

  .footer-bottom {
    padding-left: max(1.5rem, env(safe-area-inset-left));
    padding-right: max(1.5rem, env(safe-area-inset-right));
  }
}

/* ==========================================================
   SESSION RECOVERY MODAL - MOBILE (DARK)
   ========================================================== */
.session-modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.9);
  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: 24px;
  padding: 2rem;
  max-width: 90%;
  width: 340px;
  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-icon {
  font-size: 2.5rem;
  color: #16a34a;
  margin-bottom: 0.75rem;
}

.session-modal-title {
  font-size: 1.5rem;
  font-weight: 700;
  color: #ffffff;
  margin: 0;
}

.session-modal-body p {
  color: #9ca3af;
  font-size: 1rem;
  line-height: 1.5;
  margin: 1rem 0 2rem 0;
}

.session-modal-footer {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.session-btn {
  padding: 1rem;
  border-radius: 14px;
  border: none;
  font-size: 0.95rem;
  font-weight: 600;
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.6rem;
}

.btn-continue {
  background: linear-gradient(135deg, #16a34a, #15803d);
  color: white;
}

.btn-new {
  background: rgba(255, 255, 255, 0.05);
  color: #d1d5db;
  border: 1px solid rgba(255, 255, 255, 0.1);
}

/* ==========================================================
   VITAL VISIBILITY & STATUS INDICATORS (MOBILE)
   ========================================================== */
/* Card #333 — visible "ON" state renders no dot; only the OFF / hidden
   state surfaces a red pulsing dot. */
.status-dot-indicator {
  position: absolute;
  top: 5px;
  right: 5px;
  width: 8px;
  height: 8px;
  background-color: #ef4444;
  border-radius: 50%;
  box-shadow: 0 0 6px 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 6px 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.2);
    opacity: 0.7;
  }

  100% {
    transform: scale(1);
    opacity: 1;
  }
}

.vital-box.hidden-vital .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 even on mobile when 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;
}


/* Specific sub-vital hiding (for SpCO% and ETCO2/RR) */
.hidden-sub-vital {
  visibility: hidden !important;
  opacity: 0 !important;
  pointer-events: none !important;
}