/* MCGI Production Monitoring System - Theme Variables & Styles */
/* Palette: Sleek Obsidian & Deep Black + Radiant Golden Amber + Chrome Platinum */

:root {
  --bg-primary: #050507;
  --bg-secondary: #09090b;
  --bg-card: #0f0f12;
  --bg-card-hover: #141418;
  --bg-card-accent: #1c1c22;
  
  --gold-primary: #f59e0b;
  --gold-light: #fde047;
  --gold-vibrant: #fbbf24;
  --gold-dark: #d97706;
  --gold-glow: rgba(245, 158, 11, 0.12);
  
  --mcgi-black-light: #71717a;
  --mcgi-black-mid: #3f3f46;
  --mcgi-black-dark: #18181b;
  --mcgi-black-glow: rgba(255, 255, 255, 0.04);
  
  --text-main: #f8fafc;
  --text-muted: #a1a1aa;
  --text-gold: #fde047;

  /* Standardized Border & Glow Design System Tokens (Default / MPRO Amber) */
  --border-subtle: rgba(255, 255, 255, 0.08);
  --border-card: rgba(245, 158, 11, 0.16);
  --border-primary: rgba(245, 158, 11, 0.25);
  --border-accent: rgba(245, 158, 11, 0.45);
  --border-focus: rgba(245, 158, 11, 0.65);

  --glow-subtle: 0 0 8px rgba(245, 158, 11, 0.08);
  --glow-card: 0 4px 20px -2px rgba(0, 0, 0, 0.55);
  --glow-primary: 0 4px 24px -2px rgba(0, 0, 0, 0.65), 0 0 8px rgba(245, 158, 11, 0.09);
  --glow-active: 0 0 10px rgba(245, 158, 11, 0.22);
}

/* Responsive Fullscreen Viewport Architecture */
html {
  height: 100%;
  width: 100%;
  overflow-x: hidden;
  -webkit-text-size-adjust: 100%;
}

body {
  min-height: 100%;
  min-height: 100vh;
  min-height: 100dvh;
  width: 100%;
  margin: 0;
  padding: 0;
  background-color: var(--bg-primary);
  color: var(--text-main);
  font-family: 'Plus Jakarta Sans', 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  overflow-x: hidden;
  display: flex;
  flex-direction: column;
}

/* Dedicated Responsive Full-Screen Login Page */
body.login-page {
  min-height: 100vh;
  min-height: 100dvh;
  height: 100%;
  width: 100%;
  overflow-x: hidden;
  overflow-y: auto;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* Custom Scrollbars */
::-webkit-scrollbar {
  width: 6px;
  height: 6px;
}
::-webkit-scrollbar-track {
  background: #050507;
}
::-webkit-scrollbar-thumb {
  background: #27272a;
  border-radius: 9999px;
}
::-webkit-scrollbar-thumb:hover {
  background: #f59e0b;
}

/* ========================================================================= */
/* MCGI PRODUCTIONS LOGO STYLING */
/* ========================================================================= */
.mcgi-logo-container {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  position: relative;
}

.mcgi-text-brand {
  font-family: 'Cinzel', 'Playfair Display', 'Times New Roman', serif;
  font-weight: 900;
  letter-spacing: 0.08em;
  background: linear-gradient(180deg, #ffffff 0%, #e2e8f0 25%, #cbd5e1 55%, #94a3b8 80%, #64748b 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.9)) drop-shadow(0 0 10px rgba(251, 191, 36, 0.35));
}

.mcgi-productions-bar {
  display: flex;
  flex-direction: column;
  align-items: center;
  width: 100%;
  margin-top: -2px;
}

.mcgi-gold-line {
  height: 2.5px;
  width: 100%;
  background: linear-gradient(90deg, transparent 0%, #f59e0b 15%, #fbbf24 50%, #f59e0b 85%, transparent 100%);
  box-shadow: 0 0 8px rgba(245, 158, 11, 0.7);
}

.mcgi-productions-text {
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-weight: 800;
  letter-spacing: 0.28em;
  color: #fbbf24;
  text-shadow: 0 0 10px rgba(245, 158, 11, 0.7), 0 1px 2px rgba(0, 0, 0, 0.8);
  text-transform: uppercase;
}

/* ========================================================================= */
/* GLOWS & GRADIENTS */
/* ========================================================================= */
.glow-gold {
  box-shadow: var(--glow-primary);
}

.glow-gold-sm {
  box-shadow: var(--glow-card);
}

.glow-gold-lg {
  box-shadow: 0 6px 28px -2px rgba(0, 0, 0, 0.7), var(--glow-subtle);
}

.glow-blue, .glow-dark {
  box-shadow: var(--glow-primary);
}

.border-gold-glow {
  border-color: var(--border-card);
}

.border-gold-glow:focus, .border-gold-glow:hover {
  border-color: var(--border-accent);
  box-shadow: var(--glow-subtle);
}

.gold-gradient-text {
  background: linear-gradient(135deg, #fef08a 0%, #fbbf24 50%, #d97706 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.blue-gradient-text, .silver-gradient-text {
  background: linear-gradient(135deg, #ffffff 0%, #d4d4d8 50%, #a1a1aa 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.gold-gradient-btn {
  background: linear-gradient(135deg, #fbbf24 0%, #d97706 100%);
  color: #050507;
  font-weight: 700;
  border: 1px solid var(--border-accent);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.35);
  transition: all 0.25s ease;
}

.gold-gradient-btn:hover {
  background: linear-gradient(135deg, #fde047 0%, #f59e0b 100%);
  border-color: var(--border-focus);
  box-shadow: var(--glow-active);
  transform: translateY(-1px);
}

.blue-gradient-btn, .dark-gradient-btn {
  background: linear-gradient(135deg, #27272a 0%, #141418 100%);
  color: #ffffff;
  border: 1px solid var(--border-subtle);
  font-weight: 700;
  transition: all 0.25s ease;
}

.blue-gradient-btn:hover, .dark-gradient-btn:hover {
  background: linear-gradient(135deg, #3f3f46 0%, #1f1f24 100%);
  border-color: var(--border-primary);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.5);
  transform: translateY(-1px);
}

/* ========================================================================= */
/* GLASSMORPHISM CARDS */
/* ========================================================================= */
.glass-card {
  background: rgba(15, 15, 18, 0.82);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border: 1px solid var(--border-card);
  border-radius: 1rem;
  box-shadow: var(--glow-card);
}

.glass-card-gold {
  background: rgba(15, 15, 18, 0.85);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border: 1px solid var(--border-card);
  border-radius: 1rem;
  box-shadow: var(--glow-card);
}

.glass-card-hover {
  transition: all 0.25s ease;
}
.glass-card-hover:hover {
  background: rgba(24, 24, 29, 0.92);
  border-color: var(--border-accent);
  transform: translateY(-2px);
  box-shadow: 0 8px 24px -4px rgba(0, 0, 0, 0.8), var(--glow-subtle);
}

.sidebar-widget,
.scanner-inner-container {
  border: 1px solid var(--border-subtle) !important;
  box-shadow: none !important;
}

/* ========================================================================= */
/* AUTHENTICATION SLIDER & NEAT BACKGROUND EFFECT */
/* ========================================================================= */
.auth-page-wrapper {
  position: relative;
  min-height: 100vh;
  min-height: 100dvh;
  width: 100%;
  width: 100vw;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow-y: auto;
  overflow-x: hidden;
  background-color: transparent !important;
  padding: 1rem;
  box-sizing: border-box;
}

#loginNeatCanvas {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
  pointer-events: none;
}

.auth-overlay-backdrop {
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at center, rgba(2, 4, 8, 0.28) 0%, rgba(2, 4, 8, 0.72) 100%);
  z-index: 1;
  pointer-events: none;
}

.auth-card-container {
  position: relative;
  z-index: 10;
  width: 100%;
  max-width: 480px;
  margin: auto;
  padding: 0.5rem;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.auth-glass-box {
  background: rgba(10, 12, 16, 0.96) !important;
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid rgba(245, 158, 11, 0.28) !important;
  border-radius: 1.5rem;
  box-shadow: none !important;
  overflow: hidden;
}

.auth-glass-box h1,
.auth-glass-box h2,
.auth-glass-box h3,
.auth-glass-box p,
.auth-glass-box label,
.auth-glass-box span,
.auth-glass-box a,
.auth-glass-box button {
  color: inherit;
}

.auth-glass-box .text-slate-300,
.auth-glass-box .text-slate-400,
.auth-glass-box .text-slate-500,
.auth-glass-box .text-slate-600 {
  color: #d1d5db !important;
}

.auth-glass-box .text-gold-300,
.auth-glass-box .text-gold-400,
.auth-glass-box .text-gold-500 {
  color: #fbbf24 !important;
}

.auth-glass-box input,
.auth-glass-box select,
.auth-glass-box textarea {
  background: rgba(17, 17, 20, 0.96) !important;
  border-color: rgba(255, 255, 255, 0.16) !important;
  color: #ffffff !important;
  box-shadow: none !important;
}

.auth-glass-box input::placeholder,
.auth-glass-box textarea::placeholder {
  color: rgba(255, 255, 255, 0.52) !important;
}

.auth-glass-box input:focus,
.auth-glass-box select:focus,
.auth-glass-box textarea:focus {
  border-color: rgba(245, 158, 11, 0.9) !important;
  box-shadow: none !important;
  outline: none !important;
}

.auth-glass-box .gold-gradient-btn,
.auth-glass-box .gold-gradient-btn *,
.auth-glass-box .gold-gradient-btn span,
.auth-glass-box .gold-gradient-btn i,
.auth-glass-box .gold-gradient-btn svg {
  background: linear-gradient(135deg, #fbbf24 0%, #d97706 100%) !important;
  color: #050507 !important;
  border-color: rgba(245, 158, 11, 0.8) !important;
  box-shadow: none !important;
}

.auth-glass-box .gold-gradient-btn:hover,
.auth-glass-box .gold-gradient-btn:hover *,
.auth-glass-box .gold-gradient-btn:hover span,
.auth-glass-box .gold-gradient-btn:hover i,
.auth-glass-box .gold-gradient-btn:hover svg {
  background: linear-gradient(135deg, #fde047 0%, #f59e0b 100%) !important;
  color: #050507 !important;
  box-shadow: none !important;
}

.auth-glass-box button:not(.login-back-btn):not(.gold-gradient-btn) {
  box-shadow: none !important;
}

.auth-glass-box .bg-midnight-900,
.auth-glass-box .bg-midnight-900\/70,
.auth-glass-box .bg-midnight-950\/80,
.auth-glass-box .bg-midnight-900\/95 {
  background: rgba(17, 17, 20, 0.96) !important;
  border-color: rgba(245, 158, 11, 0.2) !important;
}

.auth-glass-box .border-slate-700\/60,
.auth-glass-box .border-slate-700\/80,
.auth-glass-box .border-slate-800\/80,
.auth-glass-box .border-mcgiblue-900\/50 {
  border-color: rgba(255, 255, 255, 0.12) !important;
}

.auth-glass-box .hover\:bg-midnight-800:hover,
.auth-glass-box button[id*="btnDemoAdmin"]:hover {
  background: rgba(25, 25, 29, 0.96) !important;
}


/* Slide Viewport & Track */
.auth-slide-viewport {
  width: 100%;
  overflow: hidden;
  position: relative;
}

.auth-slide-track {
  display: flex;
  width: 200%;
  transition: transform 0.5s cubic-bezier(0.16, 1, 0.3, 1);
  will-change: transform;
}

.auth-slide-track.slide-to-register {
  transform: translateX(-50%);
}

.auth-panel {
  width: 50%;
  flex-shrink: 0;
  padding: 1.5rem 1.75rem;
  box-sizing: border-box;
}

@media (min-width: 640px) {
  .auth-panel {
    padding: 1.75rem 2rem;
  }
}

/* Auth Error Box */
.auth-error-box {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  padding: 0.65rem 0.85rem;
  border-radius: 0.75rem;
  background-color: rgba(225, 29, 72, 0.15);
  border: 1px solid rgba(244, 63, 94, 0.5);
  color: #fecdd3;
  font-size: 0.8rem;
  font-weight: 600;
  line-height: 1.3;
  animation: shake 0.4s cubic-bezier(0.36, 0.07, 0.19, 0.97) both;
}

@keyframes shake {
  10%, 90% { transform: translate3d(-1px, 0, 0); }
  20%, 80% { transform: translate3d(2px, 0, 0); }
  30%, 50%, 70% { transform: translate3d(-3px, 0, 0); }
  40%, 60% { transform: translate3d(3px, 0, 0); }
}

.input-error-state {
  border-color: #f43f5e !important;
  box-shadow: 0 0 10px rgba(244, 63, 94, 0.35) !important;
}

/* ========================================================================= */
/* CUSTOM INTERACTIVE CHECKBOX PILLS */
/* ========================================================================= */
.custom-pill-checkbox {
  position: relative;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  user-select: none;
}

.custom-pill-checkbox input[type="checkbox"],
.custom-pill-checkbox input[type="radio"] {
  position: absolute;
  opacity: 0;
  cursor: pointer;
  height: 0;
  width: 0;
}

.custom-pill-box {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.6rem 0.9rem;
  border-radius: 0.75rem;
  background-color: rgba(18, 18, 22, 0.9);
  border: 1.5px solid rgba(255, 255, 255, 0.1);
  color: #d4d4d8;
  font-size: 0.8125rem;
  font-weight: 600;
  transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
}

.custom-pill-checkbox:hover .custom-pill-box {
  border-color: rgba(245, 158, 11, 0.6);
  color: #ffffff;
  background-color: rgba(28, 28, 34, 0.95);
}

.custom-pill-checkbox input:checked + .custom-pill-box {
  background: linear-gradient(135deg, rgba(245, 158, 11, 0.18) 0%, rgba(180, 83, 9, 0.3) 100%);
  border-color: #fbbf24;
  color: #fef08a;
  box-shadow: 0 0 16px rgba(245, 158, 11, 0.35);
}

.custom-pill-indicator {
  width: 1rem;
  height: 1rem;
  border-radius: 0.25rem;
  border: 1.5px solid #71717a;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  transition: all 0.2s ease;
}

.custom-pill-checkbox input[type="radio"] + .custom-pill-box .custom-pill-indicator {
  border-radius: 9999px;
}

.custom-pill-checkbox input:checked + .custom-pill-box .custom-pill-indicator {
  background-color: #f59e0b;
  border-color: #fbbf24;
  color: #09090b;
}

.custom-pill-checkbox input:checked + .custom-pill-box .custom-pill-indicator i,
.custom-pill-checkbox input:checked + .custom-pill-box .custom-pill-indicator [data-lucide],
.custom-pill-checkbox input:checked + .custom-pill-box .custom-pill-indicator svg {
  color: #09090b !important;
  stroke: #09090b !important;
}

/* Responsive Pill Wrapping & Grid Alignment */
.custom-pill-checkbox {
  display: inline-flex;
  cursor: pointer;
  user-select: none;
  max-width: 100%;
}

.grid .custom-pill-checkbox {
  width: 100%;
}

.grid .custom-pill-checkbox .custom-pill-box {
  width: 100%;
}

.custom-pill-box {
  word-break: break-word;
}


/* ========================================================================= */
/* BADGES & STATUS BUTTONS */
/* ========================================================================= */
.badge-present {
  background-color: rgba(16, 185, 129, 0.15);
  color: #34d399;
  border: 1px solid rgba(16, 185, 129, 0.3);
}

.badge-late {
  background-color: rgba(245, 158, 11, 0.15);
  color: #fbbf24;
  border: 1px solid rgba(245, 158, 11, 0.35);
}

.badge-absent {
  background-color: rgba(239, 68, 68, 0.15);
  color: #f87171;
  border: 1px solid rgba(239, 68, 68, 0.3);
}

.badge-excused {
  background-color: rgba(255, 255, 255, 0.08);
  color: #e4e4e7;
  border: 1px solid rgba(255, 255, 255, 0.18);
}

.badge-locale {
  background-color: rgba(255, 255, 255, 0.08);
  color: #f4f4f5;
  border: 1px solid rgba(255, 255, 255, 0.16);
}

.badge-level {
  background-color: rgba(245, 158, 11, 0.15);
  color: #fbbf24;
  border: 1px solid rgba(245, 158, 11, 0.35);
}

.btn-status-present.active {
  background-color: #10b981;
  color: #050507;
  font-weight: 700;
  box-shadow: 0 0 12px rgba(16, 185, 129, 0.4);
}

.btn-status-late.active {
  background-color: #f59e0b;
  color: #050507;
  font-weight: 700;
  box-shadow: 0 0 12px rgba(245, 158, 11, 0.5);
}

.btn-status-absent.active {
  background-color: #ef4444;
  color: #ffffff;
  font-weight: 700;
  box-shadow: 0 0 12px rgba(239, 68, 68, 0.4);
}

.btn-status-excused.active {
  background-color: #52525b;
  color: #ffffff;
  font-weight: 700;
  box-shadow: 0 0 12px rgba(255, 255, 255, 0.2);
}

/* ========================================================================= */
/* RESPONSIVE FULLSCREEN DESKTOP & MOBILE DRAWER STYLES                      */
/* ========================================================================= */
#appContainer {
  width: 100%;
  width: 100vw;
  height: 100vh;
  height: 100dvh;
  max-height: 100dvh;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  position: relative;
}

@media (min-width: 768px) {
  #appContainer {
    flex-direction: row;
  }
  
  #mainSidebar {
    height: 100vh;
    height: 100dvh;
    overflow-y: auto;
    flex-shrink: 0;
  }
  
  main {
    flex: 1 1 0%;
    height: 100vh;
    height: 100dvh;
    min-width: 0;
    overflow-y: auto;
    overflow-x: hidden;
  }
}

@media (max-width: 767px) {
  #appContainer {
    height: auto;
    min-height: 100vh;
    min-height: 100dvh;
    overflow-y: visible;
  }
  
  main {
    flex: 1 1 auto;
    width: 100%;
    min-height: 100vh;
    min-height: 100dvh;
    overflow-y: visible;
  }

  #mainSidebar {
    position: fixed;
    top: 0;
    left: 0;
    bottom: 0;
    width: 280px;
    transform: translateX(-100%);
    transition: transform 0.35s cubic-bezier(0.16, 1, 0.3, 1);
    z-index: 50;
    box-shadow: 5px 0 25px rgba(0, 0, 0, 0.8);
  }

  #mainSidebar.mobile-open {
    transform: translateX(0);
  }

  #mobileBackdrop {
    position: fixed;
    inset: 0;
    background: rgba(4, 8, 19, 0.75);
    backdrop-filter: blur(4px);
    z-index: 40;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
  }

  #mobileBackdrop.mobile-open {
    opacity: 1;
    pointer-events: auto;
  }
}

/* Safe Area Inset Support for Modern Mobile / Notched Displays */
@supports (padding-top: env(safe-area-inset-top)) {
  header {
    padding-top: max(1rem, env(safe-area-inset-top)) !important;
    padding-left: max(1rem, env(safe-area-inset-left)) !important;
    padding-right: max(1rem, env(safe-area-inset-right)) !important;
  }
  
  #mainSidebar {
    padding-bottom: max(1rem, env(safe-area-inset-bottom)) !important;
  }
}

/* Animations */
@keyframes fadeIn {
  from { opacity: 0; transform: translateY(6px); }
  to { opacity: 1; transform: translateY(0); }
}

.animate-fade-in {
  animation: fadeIn 0.3s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

/* Modal styling */
.modal-backdrop {
  background-color: rgba(4, 8, 19, 0.88);
  backdrop-filter: blur(10px);
}

/* Print View Styles */
@media print {
  body {
    background-color: #ffffff !important;
    color: #000000 !important;
  }
  .no-print {
    display: none !important;
  }
  .print-only {
    display: block !important;
  }
  .glass-card, .glass-card-gold {
    background: #ffffff !important;
    border: 1px solid #cccccc !important;
    color: #000000 !important;
    box-shadow: none !important;
  }
}

/* ========================================================================= */
/* DUTY SELECTION SCREEN & CARDS                                             */
/* ========================================================================= */

/* Container allowing the 3-row background carousel to shine through cleanly */
.duty-selector-screen {
  position: fixed;
  inset: 0;
  z-index: 10;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 2.5rem 1.25rem;
  overflow-y: auto;
  background: transparent;
  transition: opacity 0.5s cubic-bezier(0.16, 1, 0.3, 1),
              transform 0.5s cubic-bezier(0.16, 1, 0.3, 1);
}

.duty-selector-screen.ds-hidden {
  opacity: 0;
  transform: translateY(-24px) scale(0.98);
  pointer-events: none;
}

/* ========================================================================= */
/* 3-ROW BACKGROUND CAROUSEL ANIMATION (MPRO, GCOS, TK)                      */
/* ========================================================================= */
.carousel-bg-container {
  position: fixed;
  inset: 0;
  width: 100vw;
  height: 100vh;
  height: 100dvh;
  z-index: 0;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  pointer-events: none;
  background-color: #06070a;
  user-select: none;
}

.carousel-bg-row {
  flex: 1 1 0;
  height: calc(100% / 3);
  min-height: 0;
  width: 100%;
  position: relative;
  overflow: hidden;
  display: flex;
  align-items: stretch;
}

.carousel-track {
  display: flex;
  height: 100%;
  width: max-content;
  will-change: transform;
  align-items: stretch;
}

/* Row 1 & 3: Right to Left infinite loop (reduced, calm ambient speed) */
.carousel-track-rtl {
  animation: carouselScrollRTL 360s linear infinite;
}

/* Row 2: Left to Right infinite loop (reduced, calm ambient speed) */
.carousel-track-ltr {
  animation: carouselScrollLTR 360s linear infinite;
}

.carousel-group {
  display: flex;
  height: 100%;
  gap: 8px;
  padding-right: 8px;
  align-items: stretch;
  flex-shrink: 0;
}

.carousel-bg-image {
  height: 100%;
  width: auto;
  max-width: none;
  object-fit: cover;
  object-position: center 15%;
  flex-shrink: 0;
  opacity: 0.7; /* 70% opacity requested by user */
  filter: brightness(0.92) contrast(1.05);
  border-radius: 6px;
  pointer-events: none;
  user-select: none;
  -webkit-user-drag: none;
  backface-visibility: hidden;
  background-color: transparent;
}

@keyframes carouselScrollRTL {
  0% {
    transform: translate3d(0, 0, 0);
  }
  100% {
    transform: translate3d(-50%, 0, 0);
  }
}

@keyframes carouselScrollLTR {
  0% {
    transform: translate3d(-50%, 0, 0);
  }
  100% {
    transform: translate3d(0, 0, 0);
  }
}

/* Ambient overlay for high-contrast duty cards readability */
.carousel-bg-overlay {
  position: absolute;
  inset: 0;
  z-index: 2;
  pointer-events: none;
  background: radial-gradient(circle at 50% 50%, rgba(5, 5, 8, 0.25) 0%, rgba(5, 5, 8, 0.55) 100%),
              linear-gradient(to bottom, rgba(5, 5, 8, 0.4) 0%, transparent 15%, transparent 85%, rgba(5, 5, 8, 0.55) 100%);
}

/* Base duty card: transparent wrapper around the sleek glowing badge (outer blocking boxes removed) */
.duty-card {
  position: relative;
  background: transparent !important;
  border: none !important;
  box-shadow: none !important;
  outline: none;
  cursor: pointer;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 0 !important;
  min-height: auto !important;
  transform: none;
  transition: transform 0.28s cubic-bezier(0.16, 1, 0.3, 1);
  -webkit-tap-highlight-color: transparent;
  overflow: visible;
}

.duty-card::before {
  display: none !important;
}

/* Hover and active micro-interactions directly on the floating badge */
.duty-card:hover {
  transform: translateY(-6px) scale(1.05);
}

.duty-card:active {
  transform: translateY(0) scale(0.98);
}

.duty-card:focus-visible {
  outline: none;
}

.duty-card:focus-visible .duty-badge-container {
  outline: 2px solid #fbbf24;
  outline-offset: 4px;
}

.duty-card.duty-selected {
  transform: none;
}

/* Ensure no outer card box styling blocks the carousel */
.duty-card-mpro,
.duty-card-gcos,
.duty-card-tk {
  background: transparent !important;
  border: none !important;
  box-shadow: none !important;
}

.duty-card-mpro:hover,
.duty-card-gcos:hover,
.duty-card-tk:hover {
  background: transparent !important;
  border: none !important;
  box-shadow: none !important;
}

/* ========================================================================= */
/* DUTY CARD BADGE LOGOS (MATCHING FORMAT FOR ALL THREE MINISTRIES)          */
/* ========================================================================= */

.overflow-x-auto {
  -webkit-overflow-scrolling: touch;
  scrollbar-width: thin;
}

.duty-badge-container {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  width: 195px;
  max-width: 100%;
  padding: 0.75rem 1.1rem;
  border-radius: 1rem;
  box-sizing: border-box;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

/* Substantial height & proportions specifically for the duty selection cards */
.duty-card .duty-badge-container {
  width: 220px;
  min-height: 126px;
  padding: 1.4rem 1.2rem 1.3rem;
  border-radius: 1.25rem;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 5px;
}

.duty-card:hover .duty-badge-container {
  transform: scale(1.05);
}

.duty-badge-brand {
  font-family: 'Cinzel', 'Playfair Display', serif;
  font-size: 1.85rem;
  font-weight: 900;
  line-height: 1.05;
  letter-spacing: 0.08em;
}

.duty-card .duty-badge-brand {
  font-size: 2.15rem;
  line-height: 1;
}

.duty-card .duty-badge-bar {
  margin-top: 4px;
}

.duty-card .duty-badge-line {
  margin: 3px 0;
}

/* =========================================================================
   MOBILE RESPONSIVE: Compact duty selection cards on small screens
   Applies only to screens < 640px (typical phone viewport)
   ========================================================================= */
@media (max-width: 639px) {
  /* Card container: narrower and shorter on mobile */
  .duty-card .duty-badge-container {
    width: 200px;
    min-height: 80px;
    padding: 0.9rem 1.1rem 0.85rem;
    border-radius: 1rem;
    gap: 3px;
  }

  /* Smaller MCGI brand text on mobile */
  .duty-card .duty-badge-brand {
    font-size: 1.65rem;
    line-height: 1;
  }

  /* Tighter spacing on mobile */
  .duty-card .duty-badge-bar {
    margin-top: 2px;
  }

  .duty-card .duty-badge-line {
    margin: 2px 0;
  }

  /* Tighter gap between the three stacked cards on mobile */
  #dutySelectorScreen .flex-col {
    gap: 0.6rem;
  }

  /* No hover lift on touch devices */
  .duty-card:hover {
    transform: none;
  }
  .duty-card:active {
    transform: scale(0.97);
  }
  .duty-card:hover .duty-badge-container {
    transform: none;
  }
}

/* Very small phones (e.g. iPhone SE 375px) – even more compact */
@media (max-width: 400px) {
  .duty-card .duty-badge-container {
    width: 175px;
    min-height: 72px;
    padding: 0.75rem 0.9rem 0.7rem;
  }

  .duty-card .duty-badge-brand {
    font-size: 1.45rem;
  }
}

.duty-badge-bar {
  display: flex;
  flex-direction: column;
  align-items: center;
  width: 100%;
  margin-top: 2px;
}

.duty-badge-line {
  height: 2px;
  width: 100%;
  border-radius: 9999px;
  margin: 2px 0;
}

.duty-badge-sub {
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-weight: 800;
  text-transform: uppercase;
}

/* 1. MPRO Badge: Obsidian box, Gold MCGI & Lines, "PRODUCTIONS" */
.duty-badge-mpro {
  background: #060609;
  border: 1.5px solid rgba(245, 158, 11, 0.55);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.8),
              0 0 16px rgba(245, 158, 11, 0.25);
}
.duty-badge-mpro .duty-badge-brand {
  background: linear-gradient(180deg, #ffffff 0%, #fef08a 35%, #fbbf24 70%, #d97706 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.95)) drop-shadow(0 0 10px rgba(251, 191, 36, 0.45));
}
.duty-line-mpro {
  background: linear-gradient(90deg, transparent 0%, #f59e0b 20%, #fbbf24 50%, #f59e0b 80%, transparent 100%);
  box-shadow: 0 0 6px rgba(245, 158, 11, 0.7);
}
.duty-sub-mpro {
  font-size: 7.5px;
  letter-spacing: 0.26em;
  color: #fbbf24;
  text-shadow: 0 0 8px rgba(245, 158, 11, 0.7), 0 1px 2px rgba(0, 0, 0, 0.8);
}

/* 2. GCOS Badge: Sleek Black Box, White/Silver MCGI & Lines, "GUEST COORDINATORS" */
.duty-badge-gcos {
  background: #000000;
  border: 1.5px solid #27272a;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.45),
              0 0 16px rgba(0, 0, 0, 0.2);
}
.duty-brand-gcos {
  background: linear-gradient(180deg, #ffffff 0%, #f8fafc 40%, #e2e8f0 75%, #94a3b8 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.95)) drop-shadow(0 0 8px rgba(255, 255, 255, 0.35));
}
.duty-line-gcos {
  background: linear-gradient(90deg, transparent 0%, #cbd5e1 20%, #ffffff 50%, #cbd5e1 80%, transparent 100%);
  box-shadow: 0 0 6px rgba(255, 255, 255, 0.6);
}
.duty-sub-gcos {
  font-size: 6.8px;
  letter-spacing: 0.14em;
  color: #ffffff;
  text-shadow: 0 0 6px rgba(255, 255, 255, 0.6), 0 1px 2px rgba(0, 0, 0, 0.8);
}

/* 3. TK Badge: Deep Rose/Plum Box, Radiant Rose MCGI & Lines, "TEATRO KRISTIANO" */
.duty-badge-tk {
  background: #250413;
  border: 1.5px solid rgba(244, 114, 182, 0.65);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.65),
              0 0 16px rgba(236, 72, 153, 0.35);
}
.duty-brand-tk {
  background: linear-gradient(180deg, #ffffff 0%, #fdf2f8 35%, #f472b6 70%, #db2777 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.95)) drop-shadow(0 0 10px rgba(236, 72, 153, 0.5));
}
.duty-line-tk {
  background: linear-gradient(90deg, transparent 0%, #f472b6 20%, #fbcfe8 50%, #f472b6 80%, transparent 100%);
  box-shadow: 0 0 6px rgba(244, 114, 182, 0.7);
}
.duty-sub-tk {
  font-size: 7.2px;
  letter-spacing: 0.16em;
  color: #fbcfe8;
  text-shadow: 0 0 8px rgba(244, 114, 182, 0.7), 0 1px 2px rgba(0, 0, 0, 0.8);
}

.auth-theme-tk .duty-back-btn:hover {
  background: #ffffff !important;
  border-color: #be185d !important;
  color: #9d174d !important;
  box-shadow: 0 10px 25px -5px rgba(190, 24, 93, 0.3) !important;
}

/* Shared select button */
.duty-select-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  padding: 0.6rem 1.5rem;
  border-radius: 0.875rem;
  font-size: 0.8rem;
  letter-spacing: 0.03em;
  transition: all 0.22s ease;
  border: none;
  cursor: pointer;
  margin-top: 0.25rem;
}
.duty-select-btn:active { transform: scale(0.97); }

/* Duty code pill */
.duty-code-badge {
  display: inline-flex;
  align-items: center;
  padding: 0.25rem 0.75rem;
  border-radius: 9999px;
  font-size: 0.7rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  font-family: 'JetBrains Mono', monospace;
}

/* ========================================================================= */
/* AUTH FORM THEME OVERRIDES                                                   */
/* ========================================================================= */

/* MPRO – Black-and-Gold Login Design */
.auth-theme-mpro .auth-glass-box {
  background: rgba(10, 12, 16, 0.96) !important;
  border: 1.5px solid rgba(245, 158, 11, 0.28) !important;
  box-shadow: none !important;
}
.auth-theme-mpro .auth-glass-box h1,
.auth-theme-mpro .auth-glass-box h2,
.auth-theme-mpro .auth-glass-box p,
.auth-theme-mpro .auth-glass-box label,
.auth-theme-mpro .auth-glass-box span,
.auth-theme-mpro .auth-glass-box a {
  color: #ffffff !important;
}
.auth-theme-mpro .auth-glass-box .text-slate-300,
.auth-theme-mpro .auth-glass-box .text-slate-400,
.auth-theme-mpro .auth-glass-box .text-slate-500 {
  color: #d1d5db !important;
}
.auth-theme-mpro .auth-glass-box .text-gold-300,
.auth-theme-mpro .auth-glass-box .text-gold-400,
.auth-theme-mpro .auth-glass-box .text-gold-500 {
  color: #fbbf24 !important;
}
.auth-theme-mpro .auth-glass-box input,
.auth-theme-mpro .auth-glass-box select,
.auth-theme-mpro .auth-glass-box textarea {
  background: rgba(17, 17, 20, 0.96) !important;
  border-color: rgba(245, 158, 11, 0.18) !important;
  color: #ffffff !important;
  box-shadow: none !important;
}
.auth-theme-mpro .auth-glass-box input:focus,
.auth-theme-mpro .auth-glass-box select:focus,
.auth-theme-mpro .auth-glass-box textarea:focus {
  border-color: rgba(245, 158, 11, 0.95) !important;
  box-shadow: none !important;
}
.auth-theme-mpro .auth-glass-box input::placeholder,
.auth-theme-mpro .auth-glass-box textarea::placeholder {
  color: rgba(255, 255, 255, 0.52) !important;
}
.auth-theme-mpro .auth-glass-box .gold-gradient-btn,
.auth-theme-mpro .auth-glass-box .gold-gradient-btn *,
.auth-theme-mpro .auth-glass-box .gold-gradient-btn span,
.auth-theme-mpro .auth-glass-box .gold-gradient-btn i,
.auth-theme-mpro .auth-glass-box .gold-gradient-btn svg {
  background: linear-gradient(135deg, #fbbf24 0%, #d97706 100%) !important;
  color: #050507 !important;
  border-color: rgba(245, 158, 11, 0.8) !important;
  box-shadow: none !important;
}
.auth-theme-mpro .auth-glass-box .gold-gradient-btn:hover,
.auth-theme-mpro .auth-glass-box .gold-gradient-btn:hover *,
.auth-theme-mpro .auth-glass-box .gold-gradient-btn:hover span,
.auth-theme-mpro .auth-glass-box .gold-gradient-btn:hover i,
.auth-theme-mpro .auth-glass-box .gold-gradient-btn:hover svg {
  background: linear-gradient(135deg, #fde047 0%, #f59e0b 100%) !important;
  color: #050507 !important;
  box-shadow: none !important;
}

/* GCOS – Black-and-White Login Design */
.auth-theme-gcos .auth-glass-box {
  background: rgba(8, 9, 12, 0.96) !important;
  border: 1.5px solid rgba(255, 255, 255, 0.12) !important;
  box-shadow: none !important;
}
.auth-theme-gcos .auth-glass-box h1,
.auth-theme-gcos .auth-glass-box h2,
.auth-theme-gcos .auth-glass-box p,
.auth-theme-gcos .auth-glass-box label,
.auth-theme-gcos .auth-glass-box span,
.auth-theme-gcos .auth-glass-box a {
  color: #ffffff !important;
}
.auth-theme-gcos .auth-glass-box .text-slate-300,
.auth-theme-gcos .auth-glass-box .text-slate-400,
.auth-theme-gcos .auth-glass-box .text-slate-500 {
  color: #e5e7eb !important;
}
.auth-theme-gcos .auth-glass-box .text-gold-300,
.auth-theme-gcos .auth-glass-box .text-gold-400,
.auth-theme-gcos .auth-glass-box .text-gold-500 {
  color: #ffffff !important;
}
.auth-theme-gcos .auth-glass-box input,
.auth-theme-gcos .auth-glass-box select,
.auth-theme-gcos .auth-glass-box textarea {
  background: rgba(17, 17, 20, 0.96) !important;
  border-color: rgba(255, 255, 255, 0.16) !important;
  color: #ffffff !important;
  box-shadow: none !important;
}
.auth-theme-gcos .auth-glass-box input:focus,
.auth-theme-gcos .auth-glass-box select:focus,
.auth-theme-gcos .auth-glass-box textarea:focus {
  border-color: rgba(255, 255, 255, 0.9) !important;
  box-shadow: none !important;
}
.auth-theme-gcos .auth-glass-box input::placeholder,
.auth-theme-gcos .auth-glass-box textarea::placeholder {
  color: rgba(255, 255, 255, 0.56) !important;
}

.auth-theme-gcos .auth-glass-box .gold-gradient-btn,
.auth-theme-gcos .auth-glass-box .gold-gradient-btn *,
.auth-theme-gcos .auth-glass-box .gold-gradient-btn span,
.auth-theme-gcos .auth-glass-box .gold-gradient-btn i,
.auth-theme-gcos .auth-glass-box .gold-gradient-btn svg {
  background: #ffffff !important;
  color: #000000 !important;
  border-color: rgba(255, 255, 255, 0.9) !important;
  box-shadow: none !important;
}
.auth-theme-gcos .auth-glass-box .gold-gradient-btn:hover,
.auth-theme-gcos .auth-glass-box .gold-gradient-btn:hover *,
.auth-theme-gcos .auth-glass-box .gold-gradient-btn:hover span,
.auth-theme-gcos .auth-glass-box .gold-gradient-btn:hover i,
.auth-theme-gcos .auth-glass-box .gold-gradient-btn:hover svg {
  background: #e5e7eb !important;
  color: #000000 !important;
  box-shadow: none !important;
}

.auth-theme-gcos .auth-glass-box .border-b,
.auth-theme-gcos .auth-glass-box .border-slate-800\/80,
.auth-theme-gcos .auth-glass-box .border-mcgiblue-900\/50 {
  border-color: rgba(255, 255, 255, 0.12) !important;
}
.auth-theme-gcos .auth-glass-box .bg-midnight-900\/70,
.auth-theme-gcos .auth-glass-box .bg-midnight-900,
.auth-theme-gcos .auth-glass-box .bg-midnight-950\/80 {
  background: rgba(15, 16, 18, 0.96) !important;
  border-color: rgba(255, 255, 255, 0.12) !important;
}
.auth-theme-gcos .auth-glass-box .hover\:bg-midnight-800:hover,
.auth-theme-gcos .auth-glass-box button[id*="btnDemoAdmin"]:hover {
  background: rgba(24, 24, 27, 0.96) !important;
}

/* TK – Black-and-Pink Login Design */
.auth-theme-tk .auth-glass-box {
  background: rgba(10, 8, 12, 0.96) !important;
  border: 1.5px solid rgba(244, 114, 182, 0.28) !important;
  box-shadow: none !important;
}
.auth-theme-tk .auth-glass-box h1,
.auth-theme-tk .auth-glass-box h2,
.auth-theme-tk .auth-glass-box p,
.auth-theme-tk .auth-glass-box label,
.auth-theme-tk .auth-glass-box span,
.auth-theme-tk .auth-glass-box a {
  color: #ffffff !important;
}
.auth-theme-tk .auth-glass-box .text-slate-300,
.auth-theme-tk .auth-glass-box .text-slate-400,
.auth-theme-tk .auth-glass-box .text-slate-500 {
  color: #e5e7eb !important;
}
.auth-theme-tk .auth-glass-box .text-gold-300,
.auth-theme-tk .auth-glass-box .text-gold-400,
.auth-theme-tk .auth-glass-box .text-gold-500 {
  color: #f9a8d4 !important;
}
.auth-theme-tk .auth-glass-box input,
.auth-theme-tk .auth-glass-box select,
.auth-theme-tk .auth-glass-box textarea {
  background: rgba(17, 17, 20, 0.96) !important;
  border-color: rgba(244, 114, 182, 0.24) !important;
  color: #ffffff !important;
  box-shadow: none !important;
}
.auth-theme-tk .auth-glass-box input:focus,
.auth-theme-tk .auth-glass-box select:focus,
.auth-theme-tk .auth-glass-box textarea:focus {
  border-color: rgba(244, 114, 182, 0.9) !important;
  box-shadow: none !important;
}
.auth-theme-tk .auth-glass-box input::placeholder,
.auth-theme-tk .auth-glass-box textarea::placeholder {
  color: rgba(255, 255, 255, 0.56) !important;
}

.auth-theme-tk .auth-glass-box .gold-gradient-btn,
.auth-theme-tk .auth-glass-box .gold-gradient-btn *,
.auth-theme-tk .auth-glass-box .gold-gradient-btn span,
.auth-theme-tk .auth-glass-box .gold-gradient-btn i,
.auth-theme-tk .auth-glass-box .gold-gradient-btn svg {
  background: linear-gradient(135deg, #ec4899 0%, #be185d 100%) !important;
  color: #ffffff !important;
  border-color: rgba(244, 114, 182, 0.9) !important;
  box-shadow: none !important;
}
.auth-theme-tk .auth-glass-box .gold-gradient-btn:hover,
.auth-theme-tk .auth-glass-box .gold-gradient-btn:hover *,
.auth-theme-tk .auth-glass-box .gold-gradient-btn:hover span,
.auth-theme-tk .auth-glass-box .gold-gradient-btn:hover i,
.auth-theme-tk .auth-glass-box .gold-gradient-btn:hover svg {
  background: linear-gradient(135deg, #f472b6 0%, #db2777 100%) !important;
  color: #ffffff !important;
  box-shadow: none !important;
}

.auth-theme-tk .auth-glass-box .border-b,
.auth-theme-tk .auth-glass-box .border-slate-800\/80,
.auth-theme-tk .auth-glass-box .border-mcgiblue-900\/50 {
  border-color: rgba(244, 114, 182, 0.18) !important;
}
.auth-theme-tk .auth-glass-box .bg-midnight-900\/70,
.auth-theme-tk .auth-glass-box .bg-midnight-900,
.auth-theme-tk .auth-glass-box .bg-midnight-950\/80 {
  background: rgba(15, 13, 17, 0.96) !important;
  border-color: rgba(244, 114, 182, 0.18) !important;
}
.auth-theme-tk .auth-glass-box .hover\:bg-midnight-800:hover,
.auth-theme-tk .auth-glass-box button[id*="btnDemoAdmin"]:hover {
  background: rgba(29, 18, 24, 0.96) !important;
}

/* ========================================================================= */
/* HIGH-CONTRAST BACK BUTTONS FOR ALL THREE DUTY THEMES                     */
/* ========================================================================= */

/* 1. MPRO Theme (Default: Obsidian & Gold) */
.login-back-btn,
.login-back-btn * {
  color: #fbbf24 !important;
}
.login-back-btn {
  background: rgba(12, 12, 15, 0.96) !important;
  border: 1.5px solid rgba(245, 158, 11, 0.7) !important;
  box-shadow: none !important;
}
.login-back-btn:hover,
.login-back-btn:hover * {
  background: rgba(245, 158, 11, 0.12) !important;
  color: #fde047 !important;
}
.login-back-btn:hover {
  border-color: rgba(245, 158, 11, 0.9) !important;
  box-shadow: none !important;
}
.login-back-btn i,
.login-back-btn svg {
  transition: transform 0.2s ease, color 0.2s ease;
}

.login-bottom-back-btn {
  color: #fbbf24 !important;
  font-weight: 700 !important;
}
.login-bottom-back-btn:hover {
  color: #fde047 !important;
  text-decoration: underline !important;
}
.login-bottom-back-btn i,
.login-bottom-back-btn svg {
  color: #f59e0b !important;
}

/* 2. GCOS Theme (Black + White login treatment) */
.auth-theme-gcos .login-back-btn,
.auth-theme-gcos .login-back-btn *,
.auth-theme-gcos .login-back-btn span,
.auth-theme-gcos .login-back-btn i,
.auth-theme-gcos .login-back-btn svg {
  background: #000000 !important;
  color: #ffffff !important;
  border-color: rgba(255, 255, 255, 0.6) !important;
}
.auth-theme-gcos .login-back-btn {
  border: 1.5px solid rgba(255, 255, 255, 0.4) !important;
  box-shadow: none !important;
}
.auth-theme-gcos .login-back-btn:hover,
.auth-theme-gcos .login-back-btn:hover *,
.auth-theme-gcos .login-back-btn:hover span,
.auth-theme-gcos .login-back-btn:hover i,
.auth-theme-gcos .login-back-btn:hover svg {
  background: #1f2937 !important;
  color: #ffffff !important;
  border-color: rgba(255, 255, 255, 0.7) !important;
  box-shadow: none !important;
}

.auth-theme-gcos .login-bottom-back-btn {
  color: #ffffff !important;
  font-weight: 800 !important;
}
.auth-theme-gcos .login-bottom-back-btn:hover {
  color: #e5e7eb !important;
  text-decoration: underline !important;
}
.auth-theme-gcos .login-bottom-back-btn i,
.auth-theme-gcos .login-bottom-back-btn svg {
  color: #ffffff !important;
}

/* 3. TK Theme (Black + Pink login treatment) */
.auth-theme-tk .login-back-btn,
.auth-theme-tk .login-back-btn *,
.auth-theme-tk .login-back-btn span,
.auth-theme-tk .login-back-btn i,
.auth-theme-tk .login-back-btn svg {
  background: #050507 !important;
  color: #f9a8d4 !important;
  border-color: rgba(244, 114, 182, 0.8) !important;
}
.auth-theme-tk .login-back-btn {
  border: 1.5px solid rgba(244, 114, 182, 0.8) !important;
  box-shadow: none !important;
}
.auth-theme-tk .login-back-btn:hover,
.auth-theme-tk .login-back-btn:hover *,
.auth-theme-tk .login-back-btn:hover span,
.auth-theme-tk .login-back-btn:hover i,
.auth-theme-tk .login-back-btn:hover svg {
  background: rgba(244, 114, 182, 0.1) !important;
  color: #fbcfe8 !important;
  border-color: rgba(244, 114, 182, 1) !important;
  box-shadow: none !important;
}

.auth-theme-tk .login-bottom-back-btn {
  color: #f9a8d4 !important;
  font-weight: 800 !important;
}
.auth-theme-tk .login-bottom-back-btn:hover {
  color: #fbcfe8 !important;
  text-decoration: underline !important;
}
.auth-theme-tk .login-bottom-back-btn i,
.auth-theme-tk .login-bottom-back-btn svg {
  color: #f9a8d4 !important;
}

/* Duty indicator strip (Clean status badge) */
.duty-indicator-strip {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.32rem 0.95rem;
  border-radius: 9999px;
  font-size: 0.72rem;
  font-weight: 800;
  font-family: 'JetBrains Mono', monospace;
  letter-spacing: 0.08em;
  cursor: default;
  margin-top: 0.45rem;
  text-decoration: none;
  user-select: none;
}

.duty-strip-mpro  { background: rgba(251, 191, 36, 0.15); border: 1.2px solid rgba(251, 191, 36, 0.5); color: #fbbf24; }
.duty-strip-gcos  { background: rgba(0, 0, 0, 0.08); border: 1.2px solid rgba(0, 0, 0, 0.6); color: #000000; font-weight: 800; }
.duty-strip-tk    { background: rgba(236, 72, 153, 0.15); border: 1.2px solid rgba(236, 72, 153, 0.5); color: #9d174d; font-weight: 800; }

.duty-pulse-dot {
  width: 6px; height: 6px;
  border-radius: 50%;
  animation: pulse 2s cubic-bezier(0.4, 0, 0.6, 1) infinite;
  flex-shrink: 0;
}
.duty-pulse-mpro { background-color: #fbbf24; }
.duty-pulse-gcos { background-color: #000000; }
.duty-pulse-tk   { background-color: #be185d; }

/* ========================================================================= */
/* MAIN PORTAL THEMES (INDEX.HTML) - DARK & LIGHT COMPREHENSIVE ARCHITECTURE  */
/* ========================================================================= */

/* ========================================================================= */
/* SYSTEM B: MCGI GUEST COORDINATORS - SLEEK MONOCHROME SLATE (DARK MODE)    */
/* ========================================================================= */

html:not(.light-mode) .portal-theme-gcos,
html:not(.light-mode) #appContainer.portal-theme-gcos,
html:not(.light-mode) body.portal-theme-gcos {
  background-color: #09090b !important;
  color: #f8fafc !important;

  /* GCOS Standardized Tokens */
  --border-subtle: rgba(255, 255, 255, 0.08);
  --border-card: rgba(255, 255, 255, 0.12);
  --border-primary: rgba(255, 255, 255, 0.22);
  --border-accent: rgba(255, 255, 255, 0.35);
  --border-focus: rgba(255, 255, 255, 0.60);

  --glow-subtle: 0 0 6px rgba(255, 255, 255, 0.06);
  --glow-card: 0 4px 20px -2px rgba(0, 0, 0, 0.65);
  --glow-primary: 0 4px 24px -2px rgba(0, 0, 0, 0.75), 0 0 8px rgba(255, 255, 255, 0.08);
  --glow-active: 0 0 10px rgba(255, 255, 255, 0.20);
}

html:not(.light-mode) .portal-theme-gcos #mainSidebar,
html:not(.light-mode) .portal-theme-gcos aside {
  background-color: #0c0d11 !important;
  border-color: rgba(255, 255, 255, 0.1) !important;
}

html:not(.light-mode) .portal-theme-gcos header {
  background-color: rgba(12, 13, 17, 0.96) !important;
  border-color: rgba(255, 255, 255, 0.1) !important;
}

html:not(.light-mode) .portal-theme-gcos .glass-card,
html:not(.light-mode) .portal-theme-gcos .glass-panel,
html:not(.light-mode) .portal-theme-gcos [class*="bg-midnight-"] {
  background-color: #121318 !important;
  border-color: rgba(255, 255, 255, 0.12) !important;
  box-shadow: var(--glow-card) !important;
}

/* Primary Major Hero Section in GCOS */
html:not(.light-mode) .portal-theme-gcos .tab-content-panel > .glass-card:first-child,
html:not(.light-mode) .portal-theme-gcos .glass-card.glow-blue {
  background-color: #14151b !important;
  border-color: rgba(255, 255, 255, 0.18) !important;
  box-shadow: var(--glow-primary) !important;
}

/* 2. Primary & Secondary Buttons */
html:not(.light-mode).portal-theme-gcos #headerRecordAttendanceBtn,
html:not(.light-mode) .portal-theme-gcos #headerRecordAttendanceBtn,
html:not(.light-mode).portal-theme-gcos .gold-gradient-btn,
html:not(.light-mode) .portal-theme-gcos .gold-gradient-btn {
  background: #ffffff !important;
  color: #000000 !important;
  font-weight: 800 !important;
  border: 1px solid var(--border-accent) !important;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.35) !important;
}
html:not(.light-mode).portal-theme-gcos #headerRecordAttendanceBtn:hover,
html:not(.light-mode) .portal-theme-gcos #headerRecordAttendanceBtn:hover,
html:not(.light-mode).portal-theme-gcos .gold-gradient-btn:hover,
html:not(.light-mode) .portal-theme-gcos .gold-gradient-btn:hover {
  background: #e4e4e7 !important;
  color: #000000 !important;
  border-color: var(--border-focus) !important;
  box-shadow: var(--glow-active) !important;
}
html:not(.light-mode).portal-theme-gcos #headerRecordAttendanceBtn i,
html:not(.light-mode).portal-theme-gcos #headerRecordAttendanceBtn [data-lucide],
html:not(.light-mode).portal-theme-gcos #headerRecordAttendanceBtn svg,
html:not(.light-mode) .portal-theme-gcos #headerRecordAttendanceBtn i,
html:not(.light-mode) .portal-theme-gcos #headerRecordAttendanceBtn [data-lucide],
html:not(.light-mode) .portal-theme-gcos #headerRecordAttendanceBtn svg,
html:not(.light-mode).portal-theme-gcos .gold-gradient-btn i,
html:not(.light-mode).portal-theme-gcos .gold-gradient-btn [data-lucide],
html:not(.light-mode).portal-theme-gcos .gold-gradient-btn svg,
html:not(.light-mode) .portal-theme-gcos .gold-gradient-btn i,
html:not(.light-mode) .portal-theme-gcos .gold-gradient-btn [data-lucide],
html:not(.light-mode) .portal-theme-gcos .gold-gradient-btn svg {
  color: #000000 !important;
  stroke: #000000 !important;
}

html:not(.light-mode) .portal-theme-gcos button:not(.gold-gradient-btn):not(.badge-present):not(.badge-late):not(.badge-absent):not(.badge-excused) {
  border-color: var(--border-subtle) !important;
  box-shadow: none !important;
}
html:not(.light-mode) .portal-theme-gcos button:not(.gold-gradient-btn):not(.badge-present):not(.badge-late):not(.badge-absent):not(.badge-excused):hover {
  border-color: var(--border-primary) !important;
}

/* 3. Navigation Links & Active Tab */
html:not(.light-mode) .portal-theme-gcos nav button[data-tab-target]:hover {
  background-color: #181920 !important;
  color: #ffffff !important;
}

html:not(.light-mode) .portal-theme-gcos nav button[data-tab-target].active,
html:not(.light-mode) .portal-theme-gcos nav button[data-tab-target].bg-gold-400 {
  background: #ffffff !important;
  color: #000000 !important;
  font-weight: 800 !important;
  border: 1px solid var(--border-accent) !important;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.35), var(--glow-subtle) !important;
}
html:not(.light-mode) .portal-theme-gcos nav button[data-tab-target].active i,
html:not(.light-mode) .portal-theme-gcos nav button[data-tab-target].active [data-lucide],
html:not(.light-mode) .portal-theme-gcos nav button[data-tab-target].bg-gold-400 i,
html:not(.light-mode) .portal-theme-gcos nav button[data-tab-target].bg-gold-400 [data-lucide] {
  color: #000000 !important;
  stroke: #000000 !important;
}

/* 4. Text and Accents */
html:not(.light-mode) .portal-theme-gcos .text-gold-300,
html:not(.light-mode) .portal-theme-gcos .text-gold-400,
html:not(.light-mode) .portal-theme-gcos .text-mcgiblue-300,
html:not(.light-mode) .portal-theme-gcos .text-mcgiblue-400,
html:not(.light-mode) .portal-theme-gcos .text-amber-300,
html:not(.light-mode) .portal-theme-gcos .text-amber-400,
html:not(.light-mode) .portal-theme-gcos .text-emerald-400,
html:not(.light-mode) .portal-theme-gcos .text-rose-400,
html:not(.light-mode) .portal-theme-gcos .text-blue-400 {
  color: #ffffff !important;
}

html:not(.light-mode) .portal-theme-gcos .gold-gradient-text {
  background: linear-gradient(180deg, #ffffff 0%, #d4d4d8 100%) !important;
  -webkit-background-clip: text !important;
  -webkit-text-fill-color: transparent !important;
}

html:not(.light-mode) .portal-theme-gcos .border-gold-400,
html:not(.light-mode) .portal-theme-gcos [class*="border-gold-"],
html:not(.light-mode) .portal-theme-gcos [class*="border-mcgiblue-"] {
  border-color: var(--border-card) !important;
}

html:not(.light-mode) .portal-theme-gcos .bg-gold-400 {
  background-color: #ffffff !important;
  color: #000000 !important;
}
html:not(.light-mode) .portal-theme-gcos .bg-gold-400\/10,
html:not(.light-mode) .portal-theme-gcos .bg-gold-400\/15,
html:not(.light-mode) .portal-theme-gcos .bg-gold-400\/20,
html:not(.light-mode) .portal-theme-gcos [class*="bg-mcgiblue-"] {
  background-color: rgba(255, 255, 255, 0.06) !important;
  color: #ffffff !important;
}

html:not(.light-mode) .portal-theme-gcos .glow-gold-sm {
  box-shadow: var(--glow-card) !important;
}
html:not(.light-mode) .portal-theme-gcos .glow-gold,
html:not(.light-mode) .portal-theme-gcos .glow-blue {
  box-shadow: var(--glow-primary) !important;
}

/* 5. Header Badges & Avatar */
html:not(.light-mode) .portal-theme-gcos #headerDutyBadge {
  background-color: #000000 !important;
  color: #ffffff !important;
  border: 1px solid var(--border-accent) !important;
  font-weight: 800 !important;
  box-shadow: none !important;
}

html:not(.light-mode) .portal-theme-gcos #headerUserAvatar {
  background-color: #ffffff !important;
  color: #000000 !important;
  border: 1px solid var(--border-accent) !important;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.4) !important;
}

html:not(.light-mode) .portal-theme-gcos #sidebarSystemNamePart2 {
  color: #ffffff !important;
}

/* Inner small containers */
html:not(.light-mode) .portal-theme-gcos #liveClockDisplay,
html:not(.light-mode) .portal-theme-gcos #roleSwitcherWidget,
html:not(.light-mode) .portal-theme-gcos .sidebar-widget,
html:not(.light-mode) .portal-theme-gcos .scanner-inner-container,
html:not(.light-mode) .portal-theme-gcos #qrScannerMountPoint > div {
  border-color: var(--border-subtle) !important;
  box-shadow: none !important;
}

/* 6. Live Clock & KPI Progress Bar */
html:not(.light-mode) .portal-theme-gcos #liveClockDisplay {
  color: #ffffff !important;
}
html:not(.light-mode) .portal-theme-gcos #liveClockDisplay + div {
  color: #a1a1aa !important;
}
html:not(.light-mode) .portal-theme-gcos #kpiAttendanceProgressBar {
  background: #ffffff !important;
}
html:not(.light-mode) .portal-theme-gcos #kpiAttendanceRate {
  color: #ffffff !important;
}

/* 7. Status Badges: Clean, High-Contrast Monochrome */
html:not(.light-mode) .portal-theme-gcos .badge-present {
  background-color: #ffffff !important;
  color: #000000 !important;
  font-weight: 800 !important;
  border: 1px solid #ffffff !important;
}
html:not(.light-mode) .portal-theme-gcos .badge-present i,
html:not(.light-mode) .portal-theme-gcos .badge-present [data-lucide] {
  color: #000000 !important;
  stroke: #000000 !important;
}

html:not(.light-mode) .portal-theme-gcos .badge-late {
  background-color: #27272a !important;
  color: #ffffff !important;
  border: 1px solid #a1a1aa !important;
}
html:not(.light-mode) .portal-theme-gcos .badge-late i,
html:not(.light-mode) .portal-theme-gcos .badge-late [data-lucide] {
  color: #ffffff !important;
  stroke: #ffffff !important;
}

/* ========================================================================= */
/* PROFESSIONAL WORKSPACE REFRESH                                            */
/* Visual-only layer: IDs, hooks, layout order and existing controls remain. */
/* ========================================================================= */
:root {
  --workspace-bg: #050507;
  --workspace-surface: #111318;
  --workspace-surface-alt: #171b22;
  --workspace-surface-muted: #1d2430;
  --workspace-border: rgba(255, 255, 255, 0.10);
  --workspace-text: #f8fafc;
  --workspace-muted: #aeb6c2;
  --workspace-sidebar: #0b0d11;
  --workspace-sidebar-muted: #dfe6ee;
  --workspace-radius-sm: 6px;
  --workspace-radius-md: 10px;
  --workspace-radius-lg: 14px;
  --workspace-shadow: 0 8px 24px rgba(0, 0, 0, 0.35);
  --accent: #f59e0b;
  --accent-strong: #fbbf24;
  --accent-hover: #d97706;
  --accent-soft: rgba(245, 158, 11, 0.16);
  --accent-contrast: #111111;
}

html.light-mode {
  --workspace-bg: #f3f4f6;
  --workspace-surface: #ffffff;
  --workspace-surface-alt: #f8fafc;
  --workspace-surface-muted: #eef2f7;
  --workspace-border: rgba(15, 23, 42, 0.12);
  --workspace-text: #101828;
  --workspace-muted: #475569;
  --workspace-sidebar: #17202b;
  --workspace-sidebar-muted: #b9c7d6;
  --workspace-shadow: 0 8px 24px rgba(15, 23, 42, 0.08);
  --accent: #d97706;
  --accent-strong: #b45309;
  --accent-hover: #a16207;
  --accent-soft: rgba(217, 119, 6, 0.12);
  --accent-contrast: #111111;
}

body.portal-theme-mpro {
  --workspace-bg: #050507;
  --workspace-surface: #111318;
  --workspace-surface-alt: #171b22;
  --workspace-surface-muted: #1d2430;
  --workspace-border: rgba(255, 255, 255, 0.10);
  --workspace-text: #f8fafc;
  --workspace-muted: #aeb6c2;
  --workspace-sidebar: #0b0d11;
  --workspace-sidebar-muted: #dfe6ee;
  --accent: #f59e0b;
  --accent-strong: #fbbf24;
  --accent-hover: #d97706;
  --accent-soft: rgba(245, 158, 11, 0.16);
  --accent-contrast: #111111;
}

html.light-mode .portal-theme-mpro {
  --workspace-bg: #f7f7f5;
  --workspace-surface: #ffffff;
  --workspace-surface-alt: #fafaf9;
  --workspace-surface-muted: #f3f4f6;
  --workspace-border: rgba(15, 23, 42, 0.12);
  --workspace-text: #101828;
  --workspace-muted: #475569;
  --workspace-sidebar: #171b22;
  --workspace-sidebar-muted: #c7d0dc;
  --accent: #d97706;
  --accent-strong: #b45309;
  --accent-hover: #a16207;
  --accent-soft: rgba(217, 119, 6, 0.12);
  --accent-contrast: #111111;
}

body.portal-theme-gcos {
  --workspace-bg: #09090b;
  --workspace-surface: #121318;
  --workspace-surface-alt: #171b22;
  --workspace-surface-muted: #1f2430;
  --workspace-border: rgba(255, 255, 255, 0.12);
  --workspace-text: #f8fafc;
  --workspace-muted: #d4d4d8;
  --workspace-sidebar: #0c0d11;
  --workspace-sidebar-muted: #e5e7eb;
  --accent: #ffffff;
  --accent-strong: #e5e7eb;
  --accent-hover: #d4d4d8;
  --accent-soft: rgba(255, 255, 255, 0.08);
  --accent-contrast: #000000;
}

html.light-mode .portal-theme-gcos {
  --workspace-bg: #f8fafc;
  --workspace-surface: #ffffff;
  --workspace-surface-alt: #f3f4f6;
  --workspace-surface-muted: #f8fafc;
  --workspace-border: rgba(15, 23, 42, 0.12);
  --workspace-text: #0f172a;
  --workspace-muted: #475569;
  --workspace-sidebar: #0f172a;
  --workspace-sidebar-muted: #dfe6ee;
  --accent: #0f172a;
  --accent-strong: #111827;
  --accent-hover: #1f2937;
  --accent-soft: rgba(15, 23, 42, 0.08);
  --accent-contrast: #ffffff;
}

body.portal-theme-tk {
  --workspace-bg: #0b090d;
  --workspace-surface: #1a0f1a;
  --workspace-surface-alt: #26131f;
  --workspace-surface-muted: #2f1629;
  --workspace-border: rgba(255, 255, 255, 0.10);
  --workspace-text: #fff7fb;
  --workspace-muted: #f1bfd7;
  --workspace-sidebar: #120d15;
  --workspace-sidebar-muted: #f7d9eb;
  --accent: #ec4899;
  --accent-strong: #f472b6;
  --accent-hover: #be185d;
  --accent-soft: rgba(236, 72, 153, 0.16);
  --accent-contrast: #ffffff;
}

html.light-mode .portal-theme-tk {
  --workspace-bg: #fdf2f8;
  --workspace-surface: #ffffff;
  --workspace-surface-alt: #fff7fb;
  --workspace-surface-muted: #fdf2f8;
  --workspace-border: rgba(190, 24, 93, 0.16);
  --workspace-text: #3f0d1f;
  --workspace-muted: #7b2d4d;
  --workspace-sidebar: #2d0d1e;
  --workspace-sidebar-muted: #f4cfe1;
  --accent: #be185d;
  --accent-strong: #9d174d;
  --accent-hover: #831843;
  --accent-soft: rgba(190, 24, 93, 0.10);
  --accent-contrast: #ffffff;
}

body,
body.portal-theme-mpro,
body.portal-theme-gcos,
body.portal-theme-tk {
  background: var(--workspace-bg) !important;
  color: var(--workspace-text) !important;
}

#appContainer {
  background: var(--workspace-bg) !important;
}

#mainSidebar,
body #mainSidebar,
body aside {
  background: var(--workspace-sidebar) !important;
  border-color: var(--workspace-border) !important;
  color: #f8fafc !important;
}

#mainSidebar > div:first-child,
#mainSidebar > div:last-child,
#sidebarClockWidget,
#roleSwitcherWidget {
  background: var(--workspace-surface-alt) !important;
  border-color: var(--workspace-border) !important;
}

#sidebarNavList button[data-tab-target] {
  border-radius: var(--workspace-radius-sm) !important;
  color: var(--workspace-sidebar-muted) !important;
  box-shadow: none !important;
}

#sidebarNavList button[data-tab-target]:hover {
  background: rgba(255, 255, 255, 0.06) !important;
  color: #ffffff !important;
}

#sidebarNavList button[data-tab-target].active,
#sidebarNavList button[data-tab-target].bg-gold-400 {
  background: var(--accent, #d97706) !important;
  color: var(--accent-contrast, #111111) !important;
}

body.portal-theme-gcos #sidebarNavList button[data-tab-target].active,
body.portal-theme-gcos #sidebarNavList button[data-tab-target].bg-gold-400 {
  background: #ffffff !important;
  color: #000000 !important;
}

body.portal-theme-tk #sidebarNavList button[data-tab-target].active,
body.portal-theme-tk #sidebarNavList button[data-tab-target].bg-gold-400 {
  background: #ec4899 !important;
  color: #ffffff !important;
}

#mainSidebar .text-gold-300,
#mainSidebar .text-gold-400,
#mainSidebar .text-gold-500 {
  color: var(--accent, #fbbf24) !important;
}

body.portal-theme-gcos #mainSidebar .text-gold-300,
body.portal-theme-gcos #mainSidebar .text-gold-400,
body.portal-theme-gcos #mainSidebar .text-gold-500 {
  color: #ffffff !important;
}

body.portal-theme-tk #mainSidebar .text-gold-300,
body.portal-theme-tk #mainSidebar .text-gold-400,
body.portal-theme-tk #mainSidebar .text-gold-500 {
  color: #f9a8d4 !important;
}

#mainSidebar .border-t,
#mainSidebar .border-b {
  border-color: var(--workspace-border) !important;
}

main {
  background: var(--workspace-bg) !important;
  color: var(--workspace-text) !important;
}

html:not(.light-mode) .portal-theme-mpro main > header,
html:not(.light-mode) .portal-theme-mpro main header,
html:not(.light-mode) .portal-theme-gcos main > header,
html:not(.light-mode) .portal-theme-gcos main header,
html:not(.light-mode) .portal-theme-tk main > header,
html:not(.light-mode) .portal-theme-tk main header {
  background: var(--workspace-surface) !important;
  border-color: var(--workspace-border) !important;
  color: var(--workspace-text) !important;
  box-shadow: 0 1px 0 rgba(15, 23, 42, 0.04) !important;
}

html:not(.light-mode) .portal-theme-mpro .glass-card,
html:not(.light-mode) .portal-theme-mpro .glass-panel,
html:not(.light-mode) .portal-theme-mpro main [class*="bg-midnight-"],
html:not(.light-mode) .portal-theme-gcos .glass-card,
html:not(.light-mode) .portal-theme-gcos .glass-panel,
html:not(.light-mode) .portal-theme-gcos main [class*="bg-midnight-"],
html:not(.light-mode) .portal-theme-tk .glass-card,
html:not(.light-mode) .portal-theme-tk .glass-panel,
html:not(.light-mode) .portal-theme-tk main [class*="bg-midnight-"] {
  background: var(--workspace-surface) !important;
  border-color: var(--workspace-border) !important;
  border-radius: var(--workspace-radius-lg) !important;
  box-shadow: var(--workspace-shadow) !important;
  color: var(--workspace-text) !important;
  backdrop-filter: none !important;
}

html:not(.light-mode) .portal-theme-mpro main [class*="bg-midnight-"] [class*="bg-midnight-"],
html:not(.light-mode) .portal-theme-mpro main .glass-card [class*="bg-midnight-"],
html:not(.light-mode) .portal-theme-gcos main [class*="bg-midnight-"] [class*="bg-midnight-"],
html:not(.light-mode) .portal-theme-gcos main .glass-card [class*="bg-midnight-"],
html:not(.light-mode) .portal-theme-tk main [class*="bg-midnight-"] [class*="bg-midnight-"],
html:not(.light-mode) .portal-theme-tk main .glass-card [class*="bg-midnight-"] {
  background: var(--workspace-surface-muted) !important;
  box-shadow: none !important;
}

main header .text-white,
main header .text-slate-100,
main header .text-slate-200,
main header .text-slate-300,
html:not(.light-mode) .portal-theme-mpro main header .text-white,
html:not(.light-mode) .portal-theme-gcos main header .text-white,
html:not(.light-mode) .portal-theme-tk main header .text-white,
html:not(.light-mode) .portal-theme-mpro main header .text-slate-100,
html:not(.light-mode) .portal-theme-gcos main header .text-slate-100,
html:not(.light-mode) .portal-theme-tk main header .text-slate-100,
html:not(.light-mode) .portal-theme-mpro main header .text-slate-200,
html:not(.light-mode) .portal-theme-gcos main header .text-slate-200,
html:not(.light-mode) .portal-theme-tk main header .text-slate-200,
html:not(.light-mode) .portal-theme-mpro main header .text-slate-300,
html:not(.light-mode) .portal-theme-gcos main header .text-slate-300,
html:not(.light-mode) .portal-theme-tk main header .text-slate-300 {
  color: var(--workspace-text) !important;
}

main header .text-slate-400,
main header .text-slate-500,
html:not(.light-mode) .portal-theme-mpro main header .text-slate-400,
html:not(.light-mode) .portal-theme-gcos main header .text-slate-400,
html:not(.light-mode) .portal-theme-tk main header .text-slate-400,
html:not(.light-mode) .portal-theme-mpro main header .text-slate-500,
html:not(.light-mode) .portal-theme-gcos main header .text-slate-500,
html:not(.light-mode) .portal-theme-tk main header .text-slate-500 {
  color: var(--workspace-muted) !important;
}

main .text-white,
main .text-slate-100,
main .text-slate-200,
main .text-slate-300,
html:not(.light-mode) .portal-theme-mpro main .text-white,
html:not(.light-mode) .portal-theme-gcos main .text-white,
html:not(.light-mode) .portal-theme-tk main .text-white,
html:not(.light-mode) .portal-theme-mpro main .text-slate-100,
html:not(.light-mode) .portal-theme-gcos main .text-slate-100,
html:not(.light-mode) .portal-theme-tk main .text-slate-100,
html:not(.light-mode) .portal-theme-mpro main .text-slate-200,
html:not(.light-mode) .portal-theme-gcos main .text-slate-200,
html:not(.light-mode) .portal-theme-tk main .text-slate-200,
html:not(.light-mode) .portal-theme-mpro main .text-slate-300,
html:not(.light-mode) .portal-theme-gcos main .text-slate-300,
html:not(.light-mode) .portal-theme-tk main .text-slate-300 {
  color: var(--workspace-text) !important;
}

main .text-slate-400,
main .text-slate-500,
main .text-slate-600,
html:not(.light-mode) .portal-theme-mpro main .text-slate-400,
html:not(.light-mode) .portal-theme-gcos main .text-slate-400,
html:not(.light-mode) .portal-theme-tk main .text-slate-400,
html:not(.light-mode) .portal-theme-mpro main .text-slate-500,
html:not(.light-mode) .portal-theme-gcos main .text-slate-500,
html:not(.light-mode) .portal-theme-tk main .text-slate-500,
html:not(.light-mode) .portal-theme-mpro main .text-slate-600,
html:not(.light-mode) .portal-theme-gcos main .text-slate-600,
html:not(.light-mode) .portal-theme-tk main .text-slate-600 {
  color: var(--workspace-muted) !important;
}

main input,
main select,
main textarea {
  background: var(--workspace-surface-alt) !important;
  color: var(--workspace-text) !important;
  border: 1px solid var(--workspace-border) !important;
  border-radius: var(--workspace-radius-sm) !important;
  box-shadow: none !important;
}

main input::placeholder,
main textarea::placeholder {
  color: #94a3b8 !important;
}

main input:focus,
main select:focus,
main textarea:focus {
  border-color: var(--accent, #d97706) !important;
  box-shadow: 0 0 0 3px var(--accent-soft, rgba(217, 119, 6, 0.14)) !important;
}

main select option {
  background: #ffffff !important;
  color: var(--workspace-text) !important;
}

main button {
  border-radius: var(--workspace-radius-sm) !important;
  box-shadow: none !important;
}

.gold-gradient-btn,
main .gold-gradient-btn {
  background: var(--accent, #d97706) !important;
  color: #ffffff !important;
  border: 1px solid var(--accent, #d97706) !important;
  border-radius: var(--workspace-radius-sm) !important;
}

.gold-gradient-btn:hover,
main .gold-gradient-btn:hover {
  background: var(--accent-hover, #b45309) !important;
  transform: none !important;
}

.custom-pill-box {
  background: #ffffff !important;
  border: 1px solid #cbd5e1 !important;
  border-radius: var(--workspace-radius-sm) !important;
  color: var(--workspace-text) !important;
  box-shadow: none !important;
}

.custom-pill-checkbox:hover .custom-pill-box {
  background: #f8fafc !important;
  border-color: var(--accent, #d97706) !important;
  color: var(--workspace-text) !important;
}

.custom-pill-checkbox input:checked + .custom-pill-box {
  background: var(--accent-soft, rgba(217, 119, 6, 0.12)) !important;
  border-color: var(--accent, #d97706) !important;
  color: var(--workspace-text) !important;
  box-shadow: none !important;
}

.custom-pill-checkbox input:checked + .custom-pill-box .custom-pill-indicator {
  background: var(--accent, #d97706) !important;
  border-color: var(--accent, #d97706) !important;
}

main table {
  color: var(--workspace-text) !important;
}

main table th {
  background: #f8fafc !important;
  color: #475569 !important;
  border-color: var(--workspace-border) !important;
}

main table td {
  border-color: var(--workspace-border) !important;
}

main table tr:hover {
  background: #f8fafc !important;
}

body.portal-theme-mpro {
  --accent: #b7791f;
  --accent-hover: #975a16;
  --accent-soft: rgba(183, 121, 31, 0.13);
}

body.portal-theme-gcos {
  --accent: #334155;
  --accent-hover: #1e293b;
  --accent-soft: rgba(71, 85, 105, 0.13);
}

body.portal-theme-tk {
  --accent: #c02675;
  --accent-hover: #9d174d;
  --accent-soft: rgba(192, 38, 117, 0.13);
}

/* Keep the authentication screen in the same visual language. */
body.login-page {
  background: rgba(2, 3, 5, 0.72) !important;
  color: #f8fafc !important;
}

body.login-page .auth-glass-box,
body.login-page .auth-card-container {
  background: rgba(8, 9, 12, 0.96) !important;
  border: 1px solid rgba(255, 255, 255, 0.08) !important;
  border-radius: 1.5rem !important;
  box-shadow: none !important;
  backdrop-filter: none !important;
}

body.login-page .auth-glass-box input,
body.login-page .auth-glass-box select {
  background: rgba(17, 17, 20, 0.96) !important;
  color: #ffffff !important;
  border-color: rgba(255, 255, 255, 0.14) !important;
  border-radius: 0.75rem !important;
}

body.login-page .auth-glass-box input::placeholder {
  color: rgba(255, 255, 255, 0.52) !important;
}

body.login-page .auth-glass-box .text-white,
body.login-page .auth-glass-box .text-slate-100,
body.login-page .auth-glass-box .text-slate-200,
body.login-page .auth-glass-box .text-slate-300 {
  color: #ffffff !important;
}

body.login-page .auth-glass-box .text-slate-400,
body.login-page .auth-glass-box .text-slate-500 {
  color: #d1d5db !important;
}

body.login-page .auth-glass-box > div:first-child {
  background: rgba(10, 10, 12, 0.96) !important;
  border-color: rgba(255, 255, 255, 0.08) !important;
}

body.login-page .auth-theme-gcos .auth-glass-box {
  background: rgba(8, 9, 12, 0.96) !important;
  border-color: rgba(255, 255, 255, 0.12) !important;
}

body.login-page .auth-theme-gcos .auth-glass-box input,
body.login-page .auth-theme-gcos .auth-glass-box select {
  background: rgba(17, 17, 20, 0.96) !important;
  border-color: rgba(255, 255, 255, 0.16) !important;
}

body.login-page .auth-theme-gcos .auth-glass-box .gold-gradient-btn,
body.login-page .auth-theme-gcos .auth-glass-box .gold-gradient-btn * {
  background: #ffffff !important;
  color: #000000 !important;
  border-color: rgba(255, 255, 255, 0.9) !important;
}

body.login-page .auth-theme-tk .auth-glass-box {
  background: rgba(10, 8, 12, 0.96) !important;
  border-color: rgba(244, 114, 182, 0.28) !important;
}

body.login-page .auth-theme-tk .auth-glass-box input,
body.login-page .auth-theme-tk .auth-glass-box select {
  background: rgba(17, 17, 20, 0.96) !important;
  border-color: rgba(244, 114, 182, 0.24) !important;
}

body.login-page .auth-theme-tk .auth-glass-box .gold-gradient-btn,
body.login-page .auth-theme-tk .auth-glass-box .gold-gradient-btn * {
  background: linear-gradient(135deg, #ec4899 0%, #be185d 100%) !important;
  color: #ffffff !important;
  border-color: rgba(244, 114, 182, 0.9) !important;
}

html:not(.light-mode) .portal-theme-gcos .badge-absent {
  background-color: #09090b !important;
  color: #a1a1aa !important;
  border: 1px solid #52525b !important;
}
html:not(.light-mode) .portal-theme-gcos .badge-absent i,
html:not(.light-mode) .portal-theme-gcos .badge-absent [data-lucide] {
  color: #a1a1aa !important;
  stroke: #a1a1aa !important;
}

html:not(.light-mode) .portal-theme-gcos .badge-excused {
  background-color: #18181b !important;
  color: #e4e4e7 !important;
  border: 1px solid #71717a !important;
}

/* 8. Table Headers, Rows & Cells */
html:not(.light-mode) .portal-theme-gcos table th {
  background-color: #14151a !important;
  color: #ffffff !important;
  border-bottom: 2px solid rgba(255, 255, 255, 0.25) !important;
}

html:not(.light-mode) .portal-theme-gcos table tr:hover {
  background-color: rgba(255, 255, 255, 0.05) !important;
}

html:not(.light-mode) .portal-theme-gcos table td {
  border-color: rgba(255, 255, 255, 0.08) !important;
}

html:not(.light-mode) .portal-theme-gcos .badge-locale,
html:not(.light-mode) .portal-theme-gcos .badge-role {
  background-color: #18181b !important;
  color: #f4f4f5 !important;
  border: 1px solid rgba(255, 255, 255, 0.2) !important;
}

/* 9. Forms, Inputs, Dropdowns & Modals */
html:not(.light-mode) .portal-theme-gcos input,
html:not(.light-mode) .portal-theme-gcos select,
html:not(.light-mode) .portal-theme-gcos textarea {
  background-color: #0c0d12 !important;
  border: 1px solid rgba(255, 255, 255, 0.20) !important;
  color: #ffffff !important;
}

html:not(.light-mode) .portal-theme-gcos input:focus,
html:not(.light-mode) .portal-theme-gcos select:focus,
html:not(.light-mode) .portal-theme-gcos textarea:focus {
  border-color: #ffffff !important;
  box-shadow: 0 0 0 2px rgba(255, 255, 255, 0.35) !important;
  outline: none !important;
}

html:not(.light-mode) .portal-theme-gcos select option {
  background-color: #0c0d12 !important;
  color: #ffffff !important;
}

html:not(.light-mode) .portal-theme-gcos .modal-content,
html:not(.light-mode) .portal-theme-gcos [id*="Modal"] > div > div {
  background-color: #0c0d12 !important;
  border: 1.5px solid rgba(255, 255, 255, 0.25) !important;
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.95) !important;
}

/* 10. Stat Overview / KPI Cards */
html:not(.light-mode) .portal-theme-gcos [class*="bg-emerald-500\/"],
html:not(.light-mode) .portal-theme-gcos [class*="bg-amber-500\/"],
html:not(.light-mode) .portal-theme-gcos [class*="bg-rose-500\/"],
html:not(.light-mode) .portal-theme-gcos [class*="bg-blue-500\/"] {
  background-color: #121318 !important;
  border: 1px solid rgba(255, 255, 255, 0.16) !important;
  color: #ffffff !important;
}

/* 11. Role Switcher */
html:not(.light-mode) .portal-theme-gcos #roleBtnAdmin.bg-gold-400,
html:not(.light-mode) .portal-theme-gcos [data-role].bg-gold-400 {
  background-color: #ffffff !important;
  color: #000000 !important;
  border-color: #ffffff !important;
}

/* 12. Toast Notifications & Scrollbars */
html:not(.light-mode) .portal-theme-gcos #toastContainer > div {
  background-color: #0c0d12 !important;
  border: 1.5px solid rgba(255, 255, 255, 0.35) !important;
  color: #ffffff !important;
}

html:not(.light-mode) .portal-theme-gcos ::-webkit-scrollbar-thumb {
  background: #3f3f46 !important;
}
html:not(.light-mode) .portal-theme-gcos ::-webkit-scrollbar-track {
  background: #09090b !important;
}

html:not(.light-mode) .portal-theme-gcos ::selection {
  background: #ffffff !important;
  color: #000000 !important;
}


/* ========================================================================= */
/* SYSTEM C: MCGI TEATRO KRISTIANO - OBSIDIAN PLUM & VIBRANT ROSE (DARK MODE)*/
/* ========================================================================= */

html:not(.light-mode) .portal-theme-tk,
html:not(.light-mode) #appContainer.portal-theme-tk,
html:not(.light-mode) body.portal-theme-tk {
  --border-subtle: rgba(244, 114, 182, 0.08);
  --border-card: rgba(244, 114, 182, 0.14);
  --border-primary: rgba(244, 114, 182, 0.22);
  --border-accent: rgba(244, 114, 182, 0.38);
  --border-focus: rgba(244, 114, 182, 0.58);
  --glow-subtle: 0 0 6px rgba(244, 114, 182, 0.06);
  --glow-card: 0 4px 20px -2px rgba(0, 0, 0, 0.65);
  --glow-primary: 0 4px 24px -2px rgba(0, 0, 0, 0.7), 0 0 8px rgba(244, 114, 182, 0.09);
  --glow-active: 0 0 10px rgba(244, 114, 182, 0.20);

  background-color: #09090c !important;
  color: #f4f4f5 !important;
}

html:not(.light-mode) .portal-theme-tk #mainSidebar,
html:not(.light-mode) .portal-theme-tk aside {
  background-color: #0e0a12 !important;
  border-color: rgba(244, 114, 182, 0.14) !important;
}

html:not(.light-mode) .portal-theme-tk header {
  background-color: rgba(14, 10, 18, 0.95) !important;
  border-color: rgba(244, 114, 182, 0.15) !important;
}

html:not(.light-mode) .portal-theme-tk .glass-card,
html:not(.light-mode) .portal-theme-tk .glass-panel,
html:not(.light-mode) .portal-theme-tk [class*="bg-midnight-"] {
  background-color: #130c17 !important;
  border-color: rgba(244, 114, 182, 0.15) !important;
  box-shadow: var(--glow-card) !important;
}

/* Primary containers get slightly more defined border and ambient depth */
html:not(.light-mode) .portal-theme-tk .tab-content-panel > .glass-card:first-child,
html:not(.light-mode) .portal-theme-tk .glass-card.glow-blue {
  background-color: #180e1d !important;
  border-color: rgba(244, 114, 182, 0.25) !important;
  box-shadow: var(--glow-primary) !important;
}

/* 2. Primary & Secondary Buttons */
html:not(.light-mode).portal-theme-tk #headerRecordAttendanceBtn,
html:not(.light-mode) .portal-theme-tk #headerRecordAttendanceBtn,
html:not(.light-mode).portal-theme-tk .gold-gradient-btn,
html:not(.light-mode) .portal-theme-tk .gold-gradient-btn {
  background: linear-gradient(135deg, #ec4899 0%, #be185d 100%) !important;
  color: #ffffff !important;
  font-weight: 700 !important;
  border: 1px solid #f472b6 !important;
  box-shadow: 0 2px 10px rgba(236, 72, 153, 0.35) !important;
}
html:not(.light-mode).portal-theme-tk #headerRecordAttendanceBtn:hover,
html:not(.light-mode) .portal-theme-tk #headerRecordAttendanceBtn:hover,
html:not(.light-mode).portal-theme-tk .gold-gradient-btn:hover,
html:not(.light-mode) .portal-theme-tk .gold-gradient-btn:hover {
  background: linear-gradient(135deg, #f472b6 0%, #db2777 100%) !important;
  border-color: #fbcfe8 !important;
  box-shadow: 0 4px 14px rgba(236, 72, 153, 0.45) !important;
}
html:not(.light-mode).portal-theme-tk #headerRecordAttendanceBtn i,
html:not(.light-mode).portal-theme-tk #headerRecordAttendanceBtn [data-lucide],
html:not(.light-mode).portal-theme-tk #headerRecordAttendanceBtn svg,
html:not(.light-mode) .portal-theme-tk #headerRecordAttendanceBtn i,
html:not(.light-mode) .portal-theme-tk #headerRecordAttendanceBtn [data-lucide],
html:not(.light-mode) .portal-theme-tk #headerRecordAttendanceBtn svg,
html:not(.light-mode).portal-theme-tk .gold-gradient-btn i,
html:not(.light-mode).portal-theme-tk .gold-gradient-btn [data-lucide],
html:not(.light-mode).portal-theme-tk .gold-gradient-btn svg,
html:not(.light-mode) .portal-theme-tk .gold-gradient-btn i,
html:not(.light-mode) .portal-theme-tk .gold-gradient-btn [data-lucide],
html:not(.light-mode) .portal-theme-tk .gold-gradient-btn svg {
  color: #ffffff !important;
  stroke: #ffffff !important;
}

html:not(.light-mode) .portal-theme-tk button:not(.gold-gradient-btn):not(.badge-present):not(.badge-late):not(.badge-absent):not(.badge-excused) {
  border-color: rgba(255, 255, 255, 0.10) !important;
}

/* 3. Navigation Links & Active Tab */
html:not(.light-mode) .portal-theme-tk nav button[data-tab-target]:hover {
  background-color: rgba(244, 114, 182, 0.08) !important;
  color: #ffffff !important;
}

html:not(.light-mode) .portal-theme-tk nav button[data-tab-target].active,
html:not(.light-mode) .portal-theme-tk nav button[data-tab-target].bg-gold-400 {
  background: linear-gradient(135deg, #831843 0%, #be185d 100%) !important;
  color: #ffffff !important;
  font-weight: 700 !important;
  border-color: var(--border-accent) !important;
  box-shadow: 0 2px 8px rgba(131, 24, 67, 0.25) !important;
}
html:not(.light-mode) .portal-theme-tk nav button[data-tab-target].active i,
html:not(.light-mode) .portal-theme-tk nav button[data-tab-target].active [data-lucide],
html:not(.light-mode) .portal-theme-tk nav button[data-tab-target].bg-gold-400 i,
html:not(.light-mode) .portal-theme-tk nav button[data-tab-target].bg-gold-400 [data-lucide] {
  color: #ffffff !important;
  stroke: #ffffff !important;
}

/* 4. Text & Accents: Tasteful Rose on Dark Canvas */
html:not(.light-mode) .portal-theme-tk .text-gold-300,
html:not(.light-mode) .portal-theme-tk .text-gold-400 {
  color: #f472b6 !important;
}

html:not(.light-mode) .portal-theme-tk .gold-gradient-text {
  background: linear-gradient(135deg, #ffffff 0%, #f472b6 100%) !important;
  -webkit-background-clip: text !important;
  -webkit-text-fill-color: transparent !important;
}

html:not(.light-mode) .portal-theme-tk .border-gold-400,
html:not(.light-mode) .portal-theme-tk [class*="border-gold-"] {
  border-color: var(--border-card) !important;
}

html:not(.light-mode) .portal-theme-tk .bg-gold-400 {
  background-color: #be185d !important;
  color: #ffffff !important;
}
html:not(.light-mode) .portal-theme-tk .bg-gold-400\/10,
html:not(.light-mode) .portal-theme-tk .bg-gold-400\/15,
html:not(.light-mode) .portal-theme-tk .bg-gold-400\/20 {
  background-color: rgba(244, 114, 182, 0.05) !important;
  color: #fbcfe8 !important;
}

html:not(.light-mode) .portal-theme-tk .glow-gold-sm {
  box-shadow: var(--glow-card) !important;
}
html:not(.light-mode) .portal-theme-tk .glow-gold,
html:not(.light-mode) .portal-theme-tk .glow-blue {
  box-shadow: var(--glow-primary) !important;
}

/* Inner small containers & widgets */
html:not(.light-mode) .portal-theme-tk #liveClockDisplay,
html:not(.light-mode) .portal-theme-tk #roleSwitcherWidget,
html:not(.light-mode) .portal-theme-tk .sidebar-widget,
html:not(.light-mode) .portal-theme-tk .scanner-inner-container,
html:not(.light-mode) .portal-theme-tk #qrScannerMountPoint > div {
  border-color: var(--border-subtle) !important;
  box-shadow: none !important;
}

/* 5. Header Badges & Avatar */
html:not(.light-mode) .portal-theme-tk #headerDutyBadge {
  background-color: rgba(190, 24, 93, 0.2) !important;
  color: #fbcfe8 !important;
  border: 1px solid var(--border-accent) !important;
  font-weight: 700 !important;
}

html:not(.light-mode) .portal-theme-tk #headerUserAvatar {
  background: linear-gradient(135deg, #831843 0%, #be185d 100%) !important;
  color: #ffffff !important;
  border: 1.5px solid var(--border-accent) !important;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.4) !important;
}

html:not(.light-mode) .portal-theme-tk #sidebarSystemNamePart2 {
  color: #f472b6 !important;
}

/* 6. Live Clock & KPI Progress Bar */
html:not(.light-mode) .portal-theme-tk #liveClockDisplay {
  color: #ffffff !important;
}
html:not(.light-mode) .portal-theme-tk #liveClockDisplay + div {
  color: #a1a1aa !important;
}
html:not(.light-mode) .portal-theme-tk #kpiAttendanceProgressBar {
  background: linear-gradient(90deg, #9d174d, #db2777) !important;
}
html:not(.light-mode) .portal-theme-tk #kpiAttendanceRate {
  color: #f472b6 !important;
}

/* 7. Status Badges: Clear Semantic Colors with Subtle Tints */
html:not(.light-mode) .portal-theme-tk .badge-present {
  background-color: rgba(16, 185, 129, 0.15) !important;
  color: #34d399 !important;
  border: 1px solid rgba(16, 185, 129, 0.35) !important;
  font-weight: 700 !important;
}
html:not(.light-mode) .portal-theme-tk .badge-present i,
html:not(.light-mode) .portal-theme-tk .badge-present [data-lucide] {
  color: #34d399 !important;
  stroke: #34d399 !important;
}

html:not(.light-mode) .portal-theme-tk .badge-late {
  background-color: rgba(245, 158, 11, 0.15) !important;
  color: #fbbf24 !important;
  border: 1px solid rgba(245, 158, 11, 0.35) !important;
  font-weight: 700 !important;
}
html:not(.light-mode) .portal-theme-tk .badge-late i,
html:not(.light-mode) .portal-theme-tk .badge-late [data-lucide] {
  color: #fbbf24 !important;
  stroke: #fbbf24 !important;
}

html:not(.light-mode) .portal-theme-tk .badge-absent {
  background-color: rgba(239, 68, 68, 0.15) !important;
  color: #f87171 !important;
  border: 1px solid rgba(239, 68, 68, 0.35) !important;
  font-weight: 700 !important;
}
html:not(.light-mode) .portal-theme-tk .badge-absent i,
html:not(.light-mode) .portal-theme-tk .badge-absent [data-lucide] {
  color: #f87171 !important;
  stroke: #f87171 !important;
}

html:not(.light-mode) .portal-theme-tk .badge-excused {
  background-color: rgba(244, 114, 182, 0.12) !important;
  color: #fbcfe8 !important;
  border: 1px solid rgba(244, 114, 182, 0.3) !important;
}

/* 8. Table Headers, Rows & Cells */
html:not(.light-mode) .portal-theme-tk table th {
  background-color: #141018 !important;
  color: #e4e4e7 !important;
  border-bottom: 2px solid rgba(244, 114, 182, 0.2) !important;
}

html:not(.light-mode) .portal-theme-tk table tr:hover {
  background-color: rgba(244, 114, 182, 0.05) !important;
}

html:not(.light-mode) .portal-theme-tk table td {
  border-color: rgba(255, 255, 255, 0.07) !important;
}

html:not(.light-mode) .portal-theme-tk .badge-locale,
html:not(.light-mode) .portal-theme-tk .badge-role {
  background-color: rgba(244, 114, 182, 0.1) !important;
  color: #fbcfe8 !important;
  border: 1px solid rgba(244, 114, 182, 0.25) !important;
}

/* 9. Forms, Inputs, Dropdowns & Modals */
html:not(.light-mode) .portal-theme-tk input,
html:not(.light-mode) .portal-theme-tk select,
html:not(.light-mode) .portal-theme-tk textarea {
  background-color: #0e0a12 !important;
  border: 1px solid rgba(255, 255, 255, 0.12) !important;
  color: #ffffff !important;
}

html:not(.light-mode) .portal-theme-tk input:focus,
html:not(.light-mode) .portal-theme-tk select:focus,
html:not(.light-mode) .portal-theme-tk textarea:focus {
  border-color: #f472b6 !important;
  box-shadow: 0 0 0 2px rgba(244, 114, 182, 0.20) !important;
  outline: none !important;
}

html:not(.light-mode) .portal-theme-tk select option {
  background-color: #0e0a12 !important;
  color: #ffffff !important;
}

html:not(.light-mode) .portal-theme-tk .modal-content,
html:not(.light-mode) .portal-theme-tk [id*="Modal"] > div > div {
  background-color: #110c16 !important;
  border: 1px solid var(--border-primary) !important;
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.95), 0 0 12px rgba(244, 114, 182, 0.08) !important;
}

/* 10. Stat Overview / KPI Cards */
html:not(.light-mode) .portal-theme-tk [class*="bg-emerald-500\/"],
html:not(.light-mode) .portal-theme-tk [class*="bg-amber-500\/"],
html:not(.light-mode) .portal-theme-tk [class*="bg-rose-500\/"],
html:not(.light-mode) .portal-theme-tk [class*="bg-blue-500\/"] {
  background-color: #130c17 !important;
  border: 1px solid var(--border-subtle) !important;
}

/* 11. Role Switcher */
html:not(.light-mode) .portal-theme-tk #roleBtnAdmin.bg-gold-400,
html:not(.light-mode) .portal-theme-tk [data-role].bg-gold-400 {
  background-color: #be185d !important;
  color: #ffffff !important;
  border-color: #f472b6 !important;
}

/* 12. Toast Notifications & Scrollbars */
html:not(.light-mode) .portal-theme-tk #toastContainer > div {
  background-color: #110c16 !important;
  border: 1.5px solid rgba(244, 114, 182, 0.35) !important;
  color: #fdf2f8 !important;
}

html:not(.light-mode) .portal-theme-tk ::-webkit-scrollbar-thumb {
  background: #5c1d3a !important;
}
html:not(.light-mode) .portal-theme-tk ::-webkit-scrollbar-track {
  background: #09090c !important;
}

html:not(.light-mode) .portal-theme-tk ::selection {
  background: #be185d !important;
  color: #ffffff !important;
}


/* ========================================================================= */
/* UNIVERSAL LIGHT MODE SYSTEM (MPRO, GCOS, TK COHESIVE HARMONY)             */
/* ========================================================================= */

html.light-mode,
body.light-mode,
.light-mode {
  --bg-primary: #f1f5f9;
  --bg-secondary: #e2e8f0;
  --bg-card: #ffffff;
  --bg-card-hover: #f8fafc;
  --bg-card-accent: #f1f5f9;

  --text-main: #0f172a;
  --text-muted: #64748b;
  --text-gold: #b45309;

  --border-subtle: rgba(0, 0, 0, 0.08);
  --border-card: rgba(0, 0, 0, 0.09);
  --border-primary: rgba(217, 119, 6, 0.35);
  --border-accent: rgba(217, 119, 6, 0.6);
  --border-focus: rgba(217, 119, 6, 0.85);

  --glow-subtle: none;
  --glow-card: 0 1px 3px 0 rgba(0, 0, 0, 0.04), 0 4px 16px -2px rgba(0, 0, 0, 0.05);
  --glow-primary: 0 4px 20px -2px rgba(0, 0, 0, 0.08);
  --glow-active: none;
}

/* Base Body & App Canvas */
html.light-mode body,
html.light-mode #appContainer {
  background-color: #f1f5f9 !important;
  color: #0f172a !important;
}

/* Light Mode Header */
html.light-mode header,
html.light-mode .top-header {
  background-color: rgba(255, 255, 255, 0.95) !important;
  backdrop-filter: blur(16px) !important;
  -webkit-backdrop-filter: blur(16px) !important;
  border-color: #e2e8f0 !important;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.03) !important;
}

/* Light Mode Sidebar */
html.light-mode #mainSidebar,
html.light-mode aside {
  background-color: #ffffff !important;
  border-color: #e2e8f0 !important;
  box-shadow: 2px 0 12px rgba(0, 0, 0, 0.03) !important;
}

html.light-mode #sidebarBrandContainer,
html.light-mode aside > div:first-child {
  background-color: #ffffff !important;
  border-color: #e2e8f0 !important;
}

html.light-mode aside > div:last-child {
  background-color: #f8fafc !important;
  border-color: #e2e8f0 !important;
}

/* Light Mode Glass Cards with Refined Depth */
html.light-mode .glass-card,
html.light-mode .glass-panel,
html.light-mode .glass-card-gold {
  background: #ffffff !important;
  border: 1px solid rgba(0, 0, 0, 0.08) !important;
  color: #0f172a !important;
  box-shadow: 0 1px 3px 0 rgba(0, 0, 0, 0.04), 0 6px 20px -2px rgba(0, 0, 0, 0.04) !important;
}

html.light-mode .glass-card-hover:hover {
  background: #ffffff !important;
  border-color: rgba(0, 0, 0, 0.16) !important;
  box-shadow: 0 10px 28px -4px rgba(0, 0, 0, 0.08) !important;
  transform: translateY(-2px);
}

/* Hero Section in Light Mode */
html.light-mode .tab-content-panel > .glass-card:first-child h1,
html.light-mode .tab-content-panel > .glass-card:first-child h2 {
  color: #0f172a !important;
}

html.light-mode .tab-content-panel > .glass-card:first-child p {
  color: #475569 !important;
}

/* Quick Action Buttons ("Reset Form", "Export Entries CSV", "Export CSV") */
html.light-mode button.bg-midnight-800,
html.light-mode button.bg-midnight-700,
html.light-mode #mainSidebar + main button:not(.gold-gradient-btn):not([data-role]):not([data-tab-target]):not(#headerRecordAttendanceBtn):not([class*="badge-"]) {
  background-color: #ffffff !important;
  border: 1px solid #cbd5e1 !important;
  color: #334155 !important;
}
html.light-mode button.bg-midnight-800:hover,
html.light-mode button.bg-midnight-700:hover {
  background-color: #f1f5f9 !important;
  border-color: #94a3b8 !important;
  color: #0f172a !important;
}

/* Camera QR Scanner Box in Light Mode - Seamless Integration */
html.light-mode .scanner-inner-container,
html.light-mode #qrScannerMountPoint .scanner-inner-container,
html.light-mode #qrScannerMountPoint > div.bg-midnight-900\/90 {
  background-color: #f8fafc !important;
  border: 1px solid #e2e8f0 !important;
  box-shadow: inset 0 1px 3px rgba(0, 0, 0, 0.03) !important;
}

html.light-mode .scanner-inner-container div:first-child span,
html.light-mode #qrScannerMountPoint h3 {
  color: #0f172a !important;
}

html.light-mode .scanner-inner-container [id$="_video"],
html.light-mode #qrScannerMountPoint [id$="_video"] {
  background-color: #ffffff !important;
  border: 2px dashed #cbd5e1 !important;
}

html.light-mode .scanner-inner-container [id$="_video"] span,
html.light-mode #qrScannerMountPoint span.font-mono {
  color: #64748b !important;
}

html.light-mode .scanner-inner-container p {
  color: #64748b !important;
}

/* Form Inputs, Dropdowns, Selects & Labels */
html.light-mode label {
  color: #1e293b !important;
}

html.light-mode input,
html.light-mode select,
html.light-mode textarea {
  background-color: #ffffff !important;
  border: 1.5px solid #cbd5e1 !important;
  color: #0f172a !important;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.04) !important;
}

html.light-mode input:focus,
html.light-mode select:focus,
html.light-mode textarea:focus {
  border-color: #d97706 !important;
  box-shadow: 0 0 0 3px rgba(217, 119, 6, 0.15) !important;
  outline: none !important;
}

html.light-mode input::placeholder,
html.light-mode textarea::placeholder {
  color: #94a3b8 !important;
}

html.light-mode select option {
  background-color: #ffffff !important;
  color: #0f172a !important;
}

/* Sidebar Widgets in Light Mode */
html.light-mode .sidebar-widget,
html.light-mode #sidebarClockWidget,
html.light-mode #roleSwitcherWidget {
  background-color: #f8fafc !important;
  border: 1px solid #e2e8f0 !important;
}

html.light-mode #liveDateDisplay {
  color: #64748b !important;
}

/* Tables in Light Mode */
html.light-mode table thead tr,
html.light-mode table th {
  background-color: #f8fafc !important;
  color: #334155 !important;
  border-bottom: 2px solid #e2e8f0 !important;
  font-weight: 700 !important;
}

html.light-mode table tbody tr {
  border-bottom: 1px solid #e2e8f0 !important;
}

html.light-mode table tbody tr:hover {
  background-color: #f8fafc !important;
}

html.light-mode table td {
  color: #1e293b !important;
  border-color: #e2e8f0 !important;
}

/* Text Overrides for Light Mode */
html.light-mode .text-white {
  color: #0f172a !important;
}

html.light-mode .text-slate-100,
html.light-mode .text-slate-200,
html.light-mode .text-slate-300 {
  color: #334155 !important;
}

html.light-mode .text-slate-400,
html.light-mode .text-slate-500 {
  color: #64748b !important;
}

/* Background Utility Replacements */
html.light-mode .bg-midnight-950,
html.light-mode .bg-midnight-900,
html.light-mode .bg-midnight-850,
html.light-mode .bg-midnight-800 {
  background-color: #ffffff !important;
}

html.light-mode .bg-midnight-900\/90,
html.light-mode .bg-midnight-900\/80,
html.light-mode .bg-midnight-900\/70,
html.light-mode .bg-midnight-850\/95,
html.light-mode .bg-midnight-800\/90,
html.light-mode .bg-midnight-800\/80 {
  background-color: #ffffff !important;
}

html.light-mode .border-mcgiblue-900,
html.light-mode .border-mcgiblue-800,
html.light-mode .border-mcgiblue-700,
html.light-mode .border-slate-800,
html.light-mode .border-slate-700 {
  border-color: #e2e8f0 !important;
}

/* Modals in Light Mode */
html.light-mode .modal-backdrop {
  background-color: rgba(15, 23, 42, 0.5) !important;
  backdrop-filter: blur(4px) !important;
}

html.light-mode .modal-backdrop .glass-card,
html.light-mode [id*="Modal"] .glass-card,
html.light-mode .modal-content {
  background-color: #ffffff !important;
  color: #0f172a !important;
  border: 1px solid #e2e8f0 !important;
  box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 8px 10px -6px rgba(0, 0, 0, 0.08) !important;
}

html.light-mode #profileModalAdminCredentials,
html.light-mode [id*="Modal"] .bg-midnight-900,
html.light-mode [id*="Modal"] .bg-midnight-800,
html.light-mode [id*="Modal"] .bg-midnight-800\/80 {
  background-color: #f8fafc !important;
  border-color: #e2e8f0 !important;
}

/* Status Badges in Light Mode */
html.light-mode .badge-present {
  background-color: #dcfce7 !important;
  color: #166534 !important;
  border: 1px solid #86efac !important;
  font-weight: 700 !important;
}
html.light-mode .badge-present i,
html.light-mode .badge-present [data-lucide] {
  color: #166534 !important;
  stroke: #166534 !important;
}

html.light-mode .badge-late {
  background-color: #fef3c7 !important;
  color: #92400e !important;
  border: 1px solid #fde68a !important;
  font-weight: 700 !important;
}
html.light-mode .badge-late i,
html.light-mode .badge-late [data-lucide] {
  color: #92400e !important;
  stroke: #92400e !important;
}

html.light-mode .badge-absent {
  background-color: #fee2e2 !important;
  color: #991b1b !important;
  border: 1px solid #fca5a5 !important;
  font-weight: 700 !important;
}
html.light-mode .badge-absent i,
html.light-mode .badge-absent [data-lucide] {
  color: #991b1b !important;
  stroke: #991b1b !important;
}

html.light-mode .badge-excused {
  background-color: #f1f5f9 !important;
  color: #475569 !important;
  border: 1px solid #cbd5e1 !important;
}

html.light-mode .badge-locale,
html.light-mode .badge-role {
  background-color: #f1f5f9 !important;
  color: #334155 !important;
  border: 1px solid #e2e8f0 !important;
}

/* Cloud Sync Badge in Light Mode */
html.light-mode #headerCloudSyncBadge {
  background-color: #f0fdf4 !important;
  border: 1px solid #86efac !important;
  color: #166534 !important;
}

/* Theme Toggle & Logout in Light Mode */
html.light-mode #headerThemeToggleBtn,
html.light-mode button[title="Sign Out"] {
  background-color: #ffffff !important;
  border: 1px solid #cbd5e1 !important;
  color: #334155 !important;
}
html.light-mode #headerThemeToggleBtn:hover,
html.light-mode button[title="Sign Out"]:hover {
  background-color: #f1f5f9 !important;
  color: #0f172a !important;
}

html.light-mode #headerUserName {
  color: #0f172a !important;
  font-weight: 800 !important;
}

/* High-Contrast Typography & Accessibility in Light Mode */
html.light-mode label {
  color: #0f172a !important;
  font-weight: 700 !important;
}

html.light-mode label span.text-slate-400,
html.light-mode label span.text-slate-500 {
  color: #475569 !important;
}

html.light-mode .text-gold-400,
html.light-mode [class*="text-gold-400"] {
  color: #b45309 !important;
}

html.light-mode .text-gold-300,
html.light-mode [class*="text-gold-300"] {
  color: #92400e !important;
}

html.light-mode [data-lucide].text-gold-400,
html.light-mode i.text-gold-400,
html.light-mode svg.text-gold-400 {
  color: #d97706 !important;
  stroke: #d97706 !important;
}

html.light-mode [data-lucide].text-mcgiblue-400,
html.light-mode i.text-mcgiblue-400,
html.light-mode svg.text-mcgiblue-400 {
  color: #0284c7 !important;
  stroke: #0284c7 !important;
}

html.light-mode #dynamicEventFieldsContainer {
  background-color: #f8fafc !important;
  border: 1.5px solid #e2e8f0 !important;
}

html.light-mode #dynamicEventFieldsContainer label,
html.light-mode #dynamicEventFieldsContainer .text-gold-300 {
  color: #92400e !important;
  font-weight: 700 !important;
}

html.light-mode #dynamicEventFieldsContainer [data-lucide].text-gold-400,
html.light-mode #dynamicEventFieldsContainer i.text-gold-400 {
  color: #d97706 !important;
  stroke: #d97706 !important;
}

html.light-mode button[onclick="App.resetEventEntryForm()"],
html.light-mode form button[type="button"] {
  background-color: #f1f5f9 !important;
  border: 1.5px solid #cbd5e1 !important;
  color: #334155 !important;
  font-weight: 600 !important;
}

html.light-mode button[onclick="App.resetEventEntryForm()"]:hover,
html.light-mode form button[type="button"]:hover {
  background-color: #e2e8f0 !important;
  color: #0f172a !important;
}

html.light-mode form .text-slate-400 {
  color: #475569 !important;
}

html.light-mode form .text-emerald-400 {
  color: #059669 !important;
  stroke: #059669 !important;
}

/* Checkbox & Radio Selection Pills in Light Mode (Base / Unchecked) */
html.light-mode .custom-pill-box {
  background-color: #f8fafc !important;
  border: 1.5px solid #cbd5e1 !important;
  color: #1e293b !important;
  font-size: 0.8125rem !important;
  font-weight: 600 !important;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.03) !important;
}

html.light-mode .custom-pill-checkbox:hover .custom-pill-box {
  border-color: #94a3b8 !important;
  color: #0f172a !important;
  background-color: #f1f5f9 !important;
}

html.light-mode .custom-pill-indicator {
  border: 1.5px solid #94a3b8 !important;
  background-color: #ffffff !important;
}

/* Header Action & Badge Consistency (Responsive, Sleek, Proportional) */
#headerRecordAttendanceBtn {
  height: 32px !important;
  min-height: 32px !important;
  max-height: 32px !important;
  padding: 0 12px !important;
  font-size: 12px !important;
  white-space: nowrap !important;
  display: inline-flex !important;
  align-items: center !important;
  gap: 6px !important;
  border-radius: 8px !important;
  line-height: 1 !important;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.12) !important;
}

#headerDutyBadge,
#headerCloudSyncBadge,
#headerThemeToggleBtn,
header button[title="Sign Out"] {
  height: 32px !important;
  min-height: 32px !important;
  max-height: 32px !important;
  display: inline-flex !important;
  align-items: center !important;
}

@media (max-width: 639px) {
  #headerRecordAttendanceBtn {
    height: 30px !important;
    min-height: 30px !important;
    max-height: 30px !important;
    padding: 0 8px !important;
    font-size: 11px !important;
  }
  #headerCloudSyncBadge,
  #headerThemeToggleBtn {
    height: 30px !important;
    min-height: 30px !important;
    max-height: 30px !important;
    padding: 0 8px !important;
  }
}

/* ------------------------------------------------------------------------- */
/* 1. MPRO (PRODUCTION) SPECIFICS IN LIGHT MODE - GOLD & AMBER              */
/* ------------------------------------------------------------------------- */
html.light-mode.portal-theme-mpro #headerSystemTitleText,
html.light-mode:not(.portal-theme-gcos):not(.portal-theme-tk) #headerSystemTitleText,
html.light-mode.portal-theme-mpro .top-header .text-gold-300,
html.light-mode:not(.portal-theme-gcos):not(.portal-theme-tk) .top-header .text-gold-300 {
  color: #92400e !important;
}

html.light-mode.portal-theme-mpro header > div > div:has(#headerSystemTitleText),
html.light-mode:not(.portal-theme-gcos):not(.portal-theme-tk) header > div > div:has(#headerSystemTitleText) {
  background-color: #fef3c7 !important;
  border: 1px solid #fde68a !important;
  color: #92400e !important;
}

html.light-mode.portal-theme-mpro #headerDutyBadge,
html.light-mode:not(.portal-theme-gcos):not(.portal-theme-tk) #headerDutyBadge {
  background-color: #fef3c7 !important;
  border: 1.5px solid #f59e0b !important;
  color: #92400e !important;
  font-weight: 800 !important;
}

html.light-mode.portal-theme-mpro #headerUserRole,
html.light-mode:not(.portal-theme-gcos):not(.portal-theme-tk) #headerUserRole {
  color: #b45309 !important;
  font-weight: 700 !important;
}

html.light-mode.portal-theme-mpro #headerUserAvatar,
html.light-mode:not(.portal-theme-gcos):not(.portal-theme-tk) #headerUserAvatar {
  background: linear-gradient(135deg, #fbbf24 0%, #d97706 100%) !important;
  color: #0f172a !important;
  font-weight: 800 !important;
}

html.light-mode.portal-theme-mpro #headerRecordAttendanceBtn,
html.light-mode.portal-theme-mpro .gold-gradient-btn,
html.light-mode:not(.portal-theme-gcos):not(.portal-theme-tk) #headerRecordAttendanceBtn,
html.light-mode:not(.portal-theme-gcos):not(.portal-theme-tk) .gold-gradient-btn {
  background: linear-gradient(135deg, #f59e0b 0%, #d97706 100%) !important;
  color: #ffffff !important;
  font-weight: 700 !important;
  border: 1px solid #d97706 !important;
  box-shadow: 0 2px 8px rgba(217, 119, 6, 0.25) !important;
}
html.light-mode.portal-theme-mpro #headerRecordAttendanceBtn:hover,
html.light-mode.portal-theme-mpro .gold-gradient-btn:hover,
html.light-mode:not(.portal-theme-gcos):not(.portal-theme-tk) #headerRecordAttendanceBtn:hover,
html.light-mode:not(.portal-theme-gcos):not(.portal-theme-tk) .gold-gradient-btn:hover {
  background: linear-gradient(135deg, #d97706 0%, #b45309 100%) !important;
  box-shadow: 0 4px 12px rgba(217, 119, 6, 0.35) !important;
}
html.light-mode.portal-theme-mpro #headerRecordAttendanceBtn i,
html.light-mode.portal-theme-mpro #headerRecordAttendanceBtn [data-lucide],
html.light-mode.portal-theme-mpro #headerRecordAttendanceBtn svg,
html.light-mode.portal-theme-mpro .gold-gradient-btn i,
html.light-mode.portal-theme-mpro .gold-gradient-btn [data-lucide],
html.light-mode.portal-theme-mpro .gold-gradient-btn svg,
html.light-mode:not(.portal-theme-gcos):not(.portal-theme-tk) #headerRecordAttendanceBtn i,
html.light-mode:not(.portal-theme-gcos):not(.portal-theme-tk) #headerRecordAttendanceBtn [data-lucide],
html.light-mode:not(.portal-theme-gcos):not(.portal-theme-tk) #headerRecordAttendanceBtn svg,
html.light-mode:not(.portal-theme-gcos):not(.portal-theme-tk) .gold-gradient-btn i,
html.light-mode:not(.portal-theme-gcos):not(.portal-theme-tk) .gold-gradient-btn [data-lucide],
html.light-mode:not(.portal-theme-gcos):not(.portal-theme-tk) .gold-gradient-btn svg {
  color: #ffffff !important;
  stroke: #ffffff !important;
}

html.light-mode.portal-theme-mpro .gold-gradient-text,
html.light-mode:not(.portal-theme-gcos):not(.portal-theme-tk) .gold-gradient-text {
  background: linear-gradient(135deg, #b45309 0%, #d97706 50%, #b45309 100%) !important;
  -webkit-background-clip: text !important;
  -webkit-text-fill-color: transparent !important;
}

html.light-mode.portal-theme-mpro nav button[data-tab-target],
html.light-mode:not(.portal-theme-gcos):not(.portal-theme-tk) nav button[data-tab-target] {
  color: #475569 !important;
}
html.light-mode.portal-theme-mpro nav button[data-tab-target]:hover,
html.light-mode:not(.portal-theme-gcos):not(.portal-theme-tk) nav button[data-tab-target]:hover {
  background-color: #f1f5f9 !important;
  color: #0f172a !important;
}
html.light-mode.portal-theme-mpro nav button[data-tab-target] i,
html.light-mode.portal-theme-mpro nav button[data-tab-target] [data-lucide],
html.light-mode.portal-theme-mpro nav button[data-tab-target] svg,
html.light-mode:not(.portal-theme-gcos):not(.portal-theme-tk) nav button[data-tab-target] i,
html.light-mode:not(.portal-theme-gcos):not(.portal-theme-tk) nav button[data-tab-target] [data-lucide],
html.light-mode:not(.portal-theme-gcos):not(.portal-theme-tk) nav button[data-tab-target] svg {
  color: #b45309 !important;
}

html.light-mode.portal-theme-mpro nav button[data-tab-target].active,
html.light-mode.portal-theme-mpro nav button[data-tab-target].bg-gold-400,
html.light-mode:not(.portal-theme-gcos):not(.portal-theme-tk) nav button[data-tab-target].active,
html.light-mode:not(.portal-theme-gcos):not(.portal-theme-tk) nav button[data-tab-target].bg-gold-400 {
  background: linear-gradient(135deg, #f59e0b 0%, #d97706 100%) !important;
  color: #ffffff !important;
  font-weight: 700 !important;
  box-shadow: 0 2px 8px rgba(217, 119, 6, 0.25) !important;
}
html.light-mode.portal-theme-mpro nav button[data-tab-target].active i,
html.light-mode.portal-theme-mpro nav button[data-tab-target].active [data-lucide],
html.light-mode.portal-theme-mpro nav button[data-tab-target].bg-gold-400 i,
html.light-mode.portal-theme-mpro nav button[data-tab-target].bg-gold-400 [data-lucide],
html.light-mode:not(.portal-theme-gcos):not(.portal-theme-tk) nav button[data-tab-target].active i,
html.light-mode:not(.portal-theme-gcos):not(.portal-theme-tk) nav button[data-tab-target].active [data-lucide],
html.light-mode:not(.portal-theme-gcos):not(.portal-theme-tk) nav button[data-tab-target].bg-gold-400 i,
html.light-mode:not(.portal-theme-gcos):not(.portal-theme-tk) nav button[data-tab-target].bg-gold-400 [data-lucide] {
  color: #ffffff !important;
  stroke: #ffffff !important;
}

html.light-mode.portal-theme-mpro #liveClockDisplay,
html.light-mode:not(.portal-theme-gcos):not(.portal-theme-tk) #liveClockDisplay {
  color: #b45309 !important;
}
html.light-mode.portal-theme-mpro #roleBtnAdmin.bg-gold-400,
html.light-mode:not(.portal-theme-gcos):not(.portal-theme-tk) #roleBtnAdmin.bg-gold-400 {
  background-color: #d97706 !important;
  color: #ffffff !important;
  border-color: #b45309 !important;
}
html.light-mode.portal-theme-mpro #roleSwitcherWidget button:not(#roleBtnAdmin),
html.light-mode:not(.portal-theme-gcos):not(.portal-theme-tk) #roleSwitcherWidget button:not(#roleBtnAdmin) {
  background-color: #ffffff !important;
  color: #475569 !important;
  border: 1px solid #cbd5e1 !important;
}

/* MPRO Checked Pills (Amber / Golden Glow) in Light Mode */
html.light-mode.portal-theme-mpro .custom-pill-checkbox input:checked + .custom-pill-box,
html.light-mode:not(.portal-theme-gcos):not(.portal-theme-tk) .custom-pill-checkbox input:checked + .custom-pill-box {
  background: #fef3c7 !important;
  border: 1.5px solid #d97706 !important;
  color: #78350f !important;
  font-weight: 700 !important;
  box-shadow: 0 1px 4px rgba(217, 119, 6, 0.2) !important;
}

html.light-mode.portal-theme-mpro .custom-pill-checkbox input:checked + .custom-pill-box .custom-pill-indicator,
html.light-mode:not(.portal-theme-gcos):not(.portal-theme-tk) .custom-pill-checkbox input:checked + .custom-pill-box .custom-pill-indicator {
  background-color: #d97706 !important;
  border-color: #b45309 !important;
}

html.light-mode.portal-theme-mpro .custom-pill-checkbox input:checked + .custom-pill-box .custom-pill-indicator i,
html.light-mode.portal-theme-mpro .custom-pill-checkbox input:checked + .custom-pill-box .custom-pill-indicator [data-lucide],
html.light-mode.portal-theme-mpro .custom-pill-checkbox input:checked + .custom-pill-box .custom-pill-indicator svg,
html.light-mode:not(.portal-theme-gcos):not(.portal-theme-tk) .custom-pill-checkbox input:checked + .custom-pill-box .custom-pill-indicator i,
html.light-mode:not(.portal-theme-gcos):not(.portal-theme-tk) .custom-pill-checkbox input:checked + .custom-pill-box .custom-pill-indicator [data-lucide],
html.light-mode:not(.portal-theme-gcos):not(.portal-theme-tk) .custom-pill-checkbox input:checked + .custom-pill-box .custom-pill-indicator svg {
  color: #ffffff !important;
  stroke: #ffffff !important;
}

/* ------------------------------------------------------------------------- */
/* 2. GCOS (GUEST COORDINATORS) SPECIFICS IN LIGHT MODE - BLACK & WHITE      */
/* ------------------------------------------------------------------------- */
html.light-mode.portal-theme-gcos,
html.light-mode.portal-theme-gcos body,
html.light-mode .portal-theme-gcos,
html.light-mode #appContainer.portal-theme-gcos,
html.light-mode body.portal-theme-gcos {
  background-color: #f8fafc !important;
  color: #0f172a !important;
}

html.light-mode.portal-theme-gcos #mainSidebar,
html.light-mode.portal-theme-gcos aside,
html.light-mode .portal-theme-gcos #mainSidebar,
html.light-mode .portal-theme-gcos aside {
  background-color: #ffffff !important;
  border-color: #e2e8f0 !important;
}

html.light-mode.portal-theme-gcos header,
html.light-mode .portal-theme-gcos header {
  background-color: rgba(255, 255, 255, 0.98) !important;
  border-color: #e2e8f0 !important;
}

html.light-mode.portal-theme-gcos header > div > div:has(#headerSystemTitleText),
html.light-mode .portal-theme-gcos header > div > div:has(#headerSystemTitleText) {
  background-color: #f1f5f9 !important;
  border: 1px solid #cbd5e1 !important;
  color: #0f172a !important;
}

html.light-mode.portal-theme-gcos #headerSystemTitleText,
html.light-mode .portal-theme-gcos #headerSystemTitleText {
  color: #0f172a !important;
}

html.light-mode.portal-theme-gcos #headerDutyBadge,
html.light-mode .portal-theme-gcos #headerDutyBadge {
  background-color: #0f172a !important;
  border: 1.5px solid #0f172a !important;
  color: #ffffff !important;
  font-weight: 800 !important;
}

html.light-mode.portal-theme-gcos #headerUserRole,
html.light-mode .portal-theme-gcos #headerUserRole {
  color: #475569 !important;
  font-weight: 700 !important;
}

html.light-mode.portal-theme-gcos #headerUserAvatar,
html.light-mode .portal-theme-gcos #headerUserAvatar {
  background-color: #0f172a !important;
  color: #ffffff !important;
  border: 1.5px solid #0f172a !important;
  font-weight: 800 !important;
}

html.light-mode.portal-theme-gcos #headerRecordAttendanceBtn,
html.light-mode.portal-theme-gcos .gold-gradient-btn,
html.light-mode .portal-theme-gcos #headerRecordAttendanceBtn,
html.light-mode .portal-theme-gcos .gold-gradient-btn {
  background: #0f172a !important;
  color: #ffffff !important;
  font-weight: 800 !important;
  border: 1px solid #0f172a !important;
  box-shadow: 0 2px 8px rgba(15, 23, 42, 0.25) !important;
}

html.light-mode.portal-theme-gcos #headerRecordAttendanceBtn:hover,
html.light-mode.portal-theme-gcos .gold-gradient-btn:hover,
html.light-mode .portal-theme-gcos #headerRecordAttendanceBtn:hover,
html.light-mode .portal-theme-gcos .gold-gradient-btn:hover {
  background: #1e293b !important;
  color: #ffffff !important;
}

html.light-mode.portal-theme-gcos #headerRecordAttendanceBtn i,
html.light-mode.portal-theme-gcos #headerRecordAttendanceBtn [data-lucide],
html.light-mode.portal-theme-gcos #headerRecordAttendanceBtn svg,
html.light-mode.portal-theme-gcos .gold-gradient-btn i,
html.light-mode.portal-theme-gcos .gold-gradient-btn [data-lucide],
html.light-mode.portal-theme-gcos .gold-gradient-btn svg,
html.light-mode .portal-theme-gcos #headerRecordAttendanceBtn i,
html.light-mode .portal-theme-gcos #headerRecordAttendanceBtn [data-lucide],
html.light-mode .portal-theme-gcos #headerRecordAttendanceBtn svg,
html.light-mode .portal-theme-gcos .gold-gradient-btn i,
html.light-mode .portal-theme-gcos .gold-gradient-btn [data-lucide],
html.light-mode .portal-theme-gcos .gold-gradient-btn svg {
  color: #ffffff !important;
  stroke: #ffffff !important;
}

html.light-mode.portal-theme-gcos .gold-gradient-text,
html.light-mode .portal-theme-gcos .gold-gradient-text {
  background: linear-gradient(135deg, #0f172a 0%, #334155 100%) !important;
  -webkit-background-clip: text !important;
  -webkit-text-fill-color: transparent !important;
}

html.light-mode.portal-theme-gcos nav button[data-tab-target],
html.light-mode .portal-theme-gcos nav button[data-tab-target] {
  color: #475569 !important;
}
html.light-mode.portal-theme-gcos nav button[data-tab-target]:hover,
html.light-mode .portal-theme-gcos nav button[data-tab-target]:hover {
  background-color: #f1f5f9 !important;
  color: #0f172a !important;
}

html.light-mode.portal-theme-gcos nav button[data-tab-target].active,
html.light-mode.portal-theme-gcos nav button[data-tab-target].bg-gold-400,
html.light-mode .portal-theme-gcos nav button[data-tab-target].active,
html.light-mode .portal-theme-gcos nav button[data-tab-target].bg-gold-400 {
  background-color: #0f172a !important;
  color: #ffffff !important;
  font-weight: 800 !important;
  box-shadow: 0 2px 8px rgba(15, 23, 42, 0.25) !important;
}

html.light-mode.portal-theme-gcos nav button[data-tab-target].active i,
html.light-mode.portal-theme-gcos nav button[data-tab-target].active [data-lucide],
html.light-mode.portal-theme-gcos nav button[data-tab-target].active svg,
html.light-mode.portal-theme-gcos nav button[data-tab-target].bg-gold-400 i,
html.light-mode.portal-theme-gcos nav button[data-tab-target].bg-gold-400 [data-lucide],
html.light-mode.portal-theme-gcos nav button[data-tab-target].bg-gold-400 svg,
html.light-mode .portal-theme-gcos nav button[data-tab-target].active i,
html.light-mode .portal-theme-gcos nav button[data-tab-target].active [data-lucide],
html.light-mode .portal-theme-gcos nav button[data-tab-target].active svg,
html.light-mode .portal-theme-gcos nav button[data-tab-target].bg-gold-400 i,
html.light-mode .portal-theme-gcos nav button[data-tab-target].bg-gold-400 [data-lucide],
html.light-mode .portal-theme-gcos nav button[data-tab-target].bg-gold-400 svg {
  color: #ffffff !important;
  stroke: #ffffff !important;
}

html.light-mode.portal-theme-gcos #liveClockDisplay,
html.light-mode .portal-theme-gcos #liveClockDisplay {
  color: #0f172a !important;
}

html.light-mode.portal-theme-gcos #roleBtnAdmin.bg-gold-400,
html.light-mode .portal-theme-gcos #roleBtnAdmin.bg-gold-400 {
  background-color: #0f172a !important;
  color: #ffffff !important;
  border-color: #0f172a !important;
}
html.light-mode.portal-theme-gcos #roleSwitcherWidget button:not(#roleBtnAdmin),
html.light-mode .portal-theme-gcos #roleSwitcherWidget button:not(#roleBtnAdmin) {
  background-color: #ffffff !important;
  color: #475569 !important;
  border: 1px solid #cbd5e1 !important;
}

html.light-mode.portal-theme-gcos #kpiAttendanceProgressBar,
html.light-mode .portal-theme-gcos #kpiAttendanceProgressBar {
  background-color: #0f172a !important;
}
html.light-mode.portal-theme-gcos #kpiAttendanceRate,
html.light-mode .portal-theme-gcos #kpiAttendanceRate {
  color: #0f172a !important;
}

/* GCOS Checked Pills in Light Mode */
html.light-mode.portal-theme-gcos .custom-pill-checkbox input:checked + .custom-pill-box,
html.light-mode .portal-theme-gcos .custom-pill-checkbox input:checked + .custom-pill-box {
  background: #0f172a !important;
  border: 1.5px solid #0f172a !important;
  color: #ffffff !important;
  font-weight: 700 !important;
  box-shadow: 0 1px 4px rgba(15, 23, 42, 0.25) !important;
}

html.light-mode.portal-theme-gcos .custom-pill-checkbox input:checked + .custom-pill-box .custom-pill-indicator,
html.light-mode .portal-theme-gcos .custom-pill-checkbox input:checked + .custom-pill-box .custom-pill-indicator {
  background-color: #ffffff !important;
  border-color: #ffffff !important;
}

html.light-mode.portal-theme-gcos .custom-pill-checkbox input:checked + .custom-pill-box .custom-pill-indicator i,
html.light-mode.portal-theme-gcos .custom-pill-checkbox input:checked + .custom-pill-box .custom-pill-indicator [data-lucide],
html.light-mode.portal-theme-gcos .custom-pill-checkbox input:checked + .custom-pill-box .custom-pill-indicator svg,
html.light-mode .portal-theme-gcos .custom-pill-checkbox input:checked + .custom-pill-box .custom-pill-indicator i,
html.light-mode .portal-theme-gcos .custom-pill-checkbox input:checked + .custom-pill-box .custom-pill-indicator [data-lucide],
html.light-mode .portal-theme-gcos .custom-pill-checkbox input:checked + .custom-pill-box .custom-pill-indicator svg {
  color: #0f172a !important;
  stroke: #0f172a !important;
}

/* GCOS Borders, Icons, Asterisks in Light Mode */
html.light-mode.portal-theme-gcos .border-gold-400,
html.light-mode.portal-theme-gcos [class*="border-gold-"],
html.light-mode .portal-theme-gcos .border-gold-400,
html.light-mode .portal-theme-gcos [class*="border-gold-"] {
  border-color: #cbd5e1 !important;
}
html.light-mode.portal-theme-gcos .glow-gold-sm,
html.light-mode .portal-theme-gcos .glow-gold-sm {
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05) !important;
}
html.light-mode.portal-theme-gcos .text-gold-400,
html.light-mode.portal-theme-gcos .text-gold-300,
html.light-mode .portal-theme-gcos .text-gold-400,
html.light-mode .portal-theme-gcos .text-gold-300 {
  color: #0f172a !important;
}
html.light-mode.portal-theme-gcos [data-lucide].text-gold-400,
html.light-mode.portal-theme-gcos i.text-gold-400,
html.light-mode.portal-theme-gcos svg.text-gold-400,
html.light-mode .portal-theme-gcos [data-lucide].text-gold-400,
html.light-mode .portal-theme-gcos i.text-gold-400,
html.light-mode .portal-theme-gcos svg.text-gold-400 {
  color: #0f172a !important;
  stroke: #0f172a !important;
}

/* ------------------------------------------------------------------------- */
/* 3. TK (TEATRO KRISTIANO) SPECIFICS IN LIGHT MODE - PINK & BLACK (ROSE)    */
/* ------------------------------------------------------------------------- */
html.light-mode.portal-theme-tk,
html.light-mode.portal-theme-tk body,
html.light-mode .portal-theme-tk,
html.light-mode #appContainer.portal-theme-tk,
html.light-mode body.portal-theme-tk {
  background-color: #faf5f8 !important;
  color: #1e101a !important;
}

html.light-mode.portal-theme-tk #mainSidebar,
html.light-mode.portal-theme-tk aside,
html.light-mode .portal-theme-tk #mainSidebar,
html.light-mode .portal-theme-tk aside {
  background-color: #ffffff !important;
  border-color: rgba(244, 114, 182, 0.25) !important;
}

html.light-mode.portal-theme-tk header,
html.light-mode .portal-theme-tk header {
  background-color: rgba(255, 255, 255, 0.98) !important;
  border-color: rgba(244, 114, 182, 0.22) !important;
}

html.light-mode.portal-theme-tk header > div > div:has(#headerSystemTitleText),
html.light-mode .portal-theme-tk header > div > div:has(#headerSystemTitleText) {
  background-color: #fdf2f8 !important;
  border: 1px solid #fbcfe8 !important;
  color: #9d174d !important;
}

html.light-mode.portal-theme-tk #headerSystemTitleText,
html.light-mode .portal-theme-tk #headerSystemTitleText {
  color: #9d174d !important;
}

html.light-mode.portal-theme-tk #headerDutyBadge,
html.light-mode .portal-theme-tk #headerDutyBadge {
  background-color: #fdf2f8 !important;
  border: 1.5px solid #db2777 !important;
  color: #9d174d !important;
  font-weight: 800 !important;
}

html.light-mode.portal-theme-tk #headerUserRole,
html.light-mode .portal-theme-tk #headerUserRole {
  color: #be185d !important;
  font-weight: 700 !important;
}

html.light-mode.portal-theme-tk #headerUserAvatar,
html.light-mode .portal-theme-tk #headerUserAvatar {
  background: linear-gradient(135deg, #db2777 0%, #be185d 100%) !important;
  color: #ffffff !important;
  border: 1.5px solid #db2777 !important;
  font-weight: 800 !important;
}

html.light-mode.portal-theme-tk #headerRecordAttendanceBtn,
html.light-mode.portal-theme-tk .gold-gradient-btn,
html.light-mode .portal-theme-tk #headerRecordAttendanceBtn,
html.light-mode .portal-theme-tk .gold-gradient-btn {
  background: linear-gradient(135deg, #db2777 0%, #be185d 100%) !important;
  color: #ffffff !important;
  font-weight: 700 !important;
  border: 1px solid #be185d !important;
  box-shadow: 0 2px 8px rgba(190, 24, 93, 0.28) !important;
}

html.light-mode.portal-theme-tk #headerRecordAttendanceBtn:hover,
html.light-mode.portal-theme-tk .gold-gradient-btn:hover,
html.light-mode .portal-theme-tk #headerRecordAttendanceBtn:hover,
html.light-mode .portal-theme-tk .gold-gradient-btn:hover {
  background: linear-gradient(135deg, #be185d 0%, #9d174d 100%) !important;
  box-shadow: 0 4px 12px rgba(190, 24, 93, 0.35) !important;
}

html.light-mode.portal-theme-tk #headerRecordAttendanceBtn i,
html.light-mode.portal-theme-tk #headerRecordAttendanceBtn [data-lucide],
html.light-mode.portal-theme-tk #headerRecordAttendanceBtn svg,
html.light-mode.portal-theme-tk .gold-gradient-btn i,
html.light-mode.portal-theme-tk .gold-gradient-btn [data-lucide],
html.light-mode.portal-theme-tk .gold-gradient-btn svg,
html.light-mode .portal-theme-tk #headerRecordAttendanceBtn i,
html.light-mode .portal-theme-tk #headerRecordAttendanceBtn [data-lucide],
html.light-mode .portal-theme-tk #headerRecordAttendanceBtn svg,
html.light-mode .portal-theme-tk .gold-gradient-btn i,
html.light-mode .portal-theme-tk .gold-gradient-btn [data-lucide],
html.light-mode .portal-theme-tk .gold-gradient-btn svg {
  color: #ffffff !important;
  stroke: #ffffff !important;
}

html.light-mode.portal-theme-tk .gold-gradient-text,
html.light-mode .portal-theme-tk .gold-gradient-text {
  background: linear-gradient(135deg, #be185d 0%, #9d174d 100%) !important;
  -webkit-background-clip: text !important;
  -webkit-text-fill-color: transparent !important;
}

html.light-mode.portal-theme-tk nav button[data-tab-target],
html.light-mode .portal-theme-tk nav button[data-tab-target] {
  color: #4b5563 !important;
}
html.light-mode.portal-theme-tk nav button[data-tab-target]:hover,
html.light-mode .portal-theme-tk nav button[data-tab-target]:hover {
  background-color: #fdf2f8 !important;
  color: #be185d !important;
}

html.light-mode.portal-theme-tk nav button[data-tab-target].active,
html.light-mode.portal-theme-tk nav button[data-tab-target].bg-gold-400,
html.light-mode .portal-theme-tk nav button[data-tab-target].active,
html.light-mode .portal-theme-tk nav button[data-tab-target].bg-gold-400 {
  background: linear-gradient(135deg, #db2777 0%, #be185d 100%) !important;
  color: #ffffff !important;
  font-weight: 700 !important;
  box-shadow: 0 2px 8px rgba(190, 24, 93, 0.28) !important;
}

html.light-mode.portal-theme-tk nav button[data-tab-target].active i,
html.light-mode.portal-theme-tk nav button[data-tab-target].active [data-lucide],
html.light-mode.portal-theme-tk nav button[data-tab-target].active svg,
html.light-mode.portal-theme-tk nav button[data-tab-target].bg-gold-400 i,
html.light-mode.portal-theme-tk nav button[data-tab-target].bg-gold-400 [data-lucide],
html.light-mode.portal-theme-tk nav button[data-tab-target].bg-gold-400 svg,
html.light-mode .portal-theme-tk nav button[data-tab-target].active i,
html.light-mode .portal-theme-tk nav button[data-tab-target].active [data-lucide],
html.light-mode .portal-theme-tk nav button[data-tab-target].active svg,
html.light-mode .portal-theme-tk nav button[data-tab-target].bg-gold-400 i,
html.light-mode .portal-theme-tk nav button[data-tab-target].bg-gold-400 [data-lucide],
html.light-mode .portal-theme-tk nav button[data-tab-target].bg-gold-400 svg {
  color: #ffffff !important;
  stroke: #ffffff !important;
}

html.light-mode.portal-theme-tk #sidebarClockWidget,
html.light-mode .portal-theme-tk #sidebarClockWidget {
  background-color: #fdf2f8 !important;
  border-color: #fbcfe8 !important;
}
html.light-mode.portal-theme-tk #liveClockDisplay,
html.light-mode .portal-theme-tk #liveClockDisplay {
  color: #be185d !important;
  font-weight: 800 !important;
}

html.light-mode.portal-theme-tk #roleBtnAdmin.bg-gold-400,
html.light-mode .portal-theme-tk #roleBtnAdmin.bg-gold-400 {
  background-color: #be185d !important;
  color: #ffffff !important;
  border-color: #9d174d !important;
}
html.light-mode.portal-theme-tk #roleSwitcherWidget button:not(#roleBtnAdmin),
html.light-mode .portal-theme-tk #roleSwitcherWidget button:not(#roleBtnAdmin) {
  background-color: #ffffff !important;
  color: #4b5563 !important;
  border: 1px solid #fbcfe8 !important;
}

html.light-mode.portal-theme-tk #kpiAttendanceProgressBar,
html.light-mode .portal-theme-tk #kpiAttendanceProgressBar {
  background: linear-gradient(90deg, #db2777, #be185d) !important;
}
html.light-mode.portal-theme-tk #kpiAttendanceRate,
html.light-mode .portal-theme-tk #kpiAttendanceRate {
  color: #be185d !important;
}

/* TK Checked Pills in Light Mode */
html.light-mode.portal-theme-tk .custom-pill-checkbox input:checked + .custom-pill-box,
html.light-mode .portal-theme-tk .custom-pill-checkbox input:checked + .custom-pill-box {
  background: #fdf2f8 !important;
  border: 1.5px solid #db2777 !important;
  color: #831843 !important;
  font-weight: 700 !important;
  box-shadow: 0 1px 4px rgba(219, 39, 119, 0.2) !important;
}

html.light-mode.portal-theme-tk .custom-pill-checkbox input:checked + .custom-pill-box .custom-pill-indicator,
html.light-mode .portal-theme-tk .custom-pill-checkbox input:checked + .custom-pill-box .custom-pill-indicator {
  background-color: #db2777 !important;
  border-color: #be185d !important;
}

html.light-mode.portal-theme-tk .custom-pill-checkbox input:checked + .custom-pill-box .custom-pill-indicator i,
html.light-mode.portal-theme-tk .custom-pill-checkbox input:checked + .custom-pill-box .custom-pill-indicator [data-lucide],
html.light-mode.portal-theme-tk .custom-pill-checkbox input:checked + .custom-pill-box .custom-pill-indicator svg,
html.light-mode .portal-theme-tk .custom-pill-checkbox input:checked + .custom-pill-box .custom-pill-indicator i,
html.light-mode .portal-theme-tk .custom-pill-checkbox input:checked + .custom-pill-box .custom-pill-indicator [data-lucide],
html.light-mode .portal-theme-tk .custom-pill-checkbox input:checked + .custom-pill-box .custom-pill-indicator svg {
  color: #ffffff !important;
  stroke: #ffffff !important;
}

/* TK Borders, Icons, Asterisks in Light Mode */
html.light-mode.portal-theme-tk .border-gold-400,
html.light-mode.portal-theme-tk [class*="border-gold-"],
html.light-mode .portal-theme-tk .border-gold-400,
html.light-mode .portal-theme-tk [class*="border-gold-"] {
  border-color: rgba(244, 114, 182, 0.35) !important;
}
html.light-mode.portal-theme-tk .glow-gold-sm,
html.light-mode .portal-theme-tk .glow-gold-sm {
  box-shadow: 0 0 10px rgba(244, 114, 182, 0.15) !important;
}
html.light-mode.portal-theme-tk .text-gold-400,
html.light-mode.portal-theme-tk .text-gold-300,
html.light-mode .portal-theme-tk .text-gold-400,
html.light-mode .portal-theme-tk .text-gold-300 {
  color: #db2777 !important;
}
html.light-mode.portal-theme-tk [data-lucide].text-gold-400,
html.light-mode.portal-theme-tk i.text-gold-400,
html.light-mode.portal-theme-tk svg.text-gold-400,
html.light-mode .portal-theme-tk [data-lucide].text-gold-400,
html.light-mode .portal-theme-tk i.text-gold-400,
html.light-mode .portal-theme-tk svg.text-gold-400 {
  color: #db2777 !important;
  stroke: #db2777 !important;
}

/* Smooth Table Scrolling on Touch Devices */
.table-scroll-container {
  width: 100%;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}

/* Touch Device Target Sizing */
@media (max-width: 640px) {
  .glass-card {
    padding: 1rem !important;
  }
  input, select, textarea {
    font-size: 14px !important;
  }
}

/* Final workspace tokens (kept last so legacy theme rules cannot override them). */
body.portal-theme-mpro,
body.portal-theme-gcos,
body.portal-theme-tk {
  background: var(--workspace-bg, #f4f6f8) !important;
  color: var(--workspace-text, #172033) !important;
}

body.portal-theme-mpro { --accent: #b7791f; --accent-hover: #975a16; --accent-soft: rgba(183, 121, 31, 0.13); }
body.portal-theme-gcos { --accent: #334155; --accent-hover: #1e293b; --accent-soft: rgba(71, 85, 105, 0.13); }
body.portal-theme-tk { --accent: #c02675; --accent-hover: #9d174d; --accent-soft: rgba(192, 38, 117, 0.13); }

#appContainer,
main {
  background: var(--workspace-bg, #f4f6f8) !important;
  color: var(--workspace-text, #172033) !important;
}

#mainSidebar,
body #mainSidebar,
body aside {
  background: var(--workspace-sidebar, #17202b) !important;
  border-color: #2b3949 !important;
  color: #f8fafc !important;
}

#sidebarNavList button[data-tab-target] {
  border-radius: var(--workspace-radius-sm, 6px) !important;
  color: var(--workspace-sidebar-muted, #aab5c3) !important;
  box-shadow: none !important;
}

#sidebarNavList button[data-tab-target]:hover { background: #263445 !important; color: #ffffff !important; }
#sidebarNavList button[data-tab-target].active,
#sidebarNavList button[data-tab-target].bg-gold-400 {
  background: var(--accent) !important;
  color: #ffffff !important;
}

main > header,
main header {
  background: #ffffff !important;
  border-color: var(--workspace-border, #e2e8f0) !important;
  color: var(--workspace-text, #172033) !important;
  box-shadow: 0 1px 0 rgba(15, 23, 42, 0.04) !important;
}

main .glass-card,
main .glass-panel,
main [class*="bg-midnight-"] {
  background: #ffffff !important;
  border-color: var(--workspace-border, #e2e8f0) !important;
  border-radius: var(--workspace-radius-lg, 14px) !important;
  box-shadow: var(--workspace-shadow, 0 8px 24px rgba(15, 23, 42, 0.06)) !important;
  color: var(--workspace-text, #172033) !important;
  backdrop-filter: none !important;
}

main [class*="bg-midnight-"] [class*="bg-midnight-"],
main .glass-card [class*="bg-midnight-"] {
  background: #f8fafc !important;
  box-shadow: none !important;
}

main .text-white,
main .text-slate-100,
main .text-slate-200,
main .text-slate-300 { color: var(--workspace-text, #172033) !important; }
main .text-slate-400,
main .text-slate-500,
main .text-slate-600 { color: var(--workspace-muted, #64748b) !important; }

main input,
main select,
main textarea {
  background: #ffffff !important;
  color: var(--workspace-text, #172033) !important;
  border: 1px solid #cbd5e1 !important;
  border-radius: var(--workspace-radius-sm, 6px) !important;
  box-shadow: none !important;
}

main input:focus,
main select:focus,
main textarea:focus {
  border-color: var(--accent) !important;
  box-shadow: 0 0 0 3px var(--accent-soft) !important;
}

main button { border-radius: var(--workspace-radius-sm, 6px) !important; box-shadow: none !important; }
main .gold-gradient-btn,
.gold-gradient-btn {
  background: var(--accent) !important;
  color: #ffffff !important;
  border-color: var(--accent) !important;
  border-radius: var(--workspace-radius-sm, 6px) !important;
}
main .gold-gradient-btn:hover,
.gold-gradient-btn:hover { background: var(--accent-hover) !important; transform: none !important; }

main .custom-pill-box,
.custom-pill-box {
  background: #ffffff !important;
  border: 1px solid #cbd5e1 !important;
  border-radius: var(--workspace-radius-sm, 6px) !important;
  color: var(--workspace-text, #172033) !important;
  box-shadow: none !important;
}
main .custom-pill-checkbox input:checked + .custom-pill-box,
.custom-pill-checkbox input:checked + .custom-pill-box {
  background: var(--accent-soft) !important;
  border-color: var(--accent) !important;
  color: var(--workspace-text, #172033) !important;
  box-shadow: none !important;
}
main .custom-pill-checkbox input:checked + .custom-pill-box .custom-pill-indicator,
.custom-pill-checkbox input:checked + .custom-pill-box .custom-pill-indicator {
  background: var(--accent) !important;
  border-color: var(--accent) !important;
}

main table th { background: #f8fafc !important; color: #475569 !important; border-color: var(--workspace-border, #e2e8f0) !important; }
main table td { border-color: var(--workspace-border, #e2e8f0) !important; }
main table tr:hover { background: #f8fafc !important; }

body.login-page {
  background: rgba(2, 3, 5, 0.72) !important;
  color: #f8fafc !important;
}
body.login-page .auth-glass-box,
body.login-page .auth-card-container {
  background: rgba(8, 9, 12, 0.96) !important;
  border: 1px solid rgba(255, 255, 255, 0.08) !important;
  border-radius: 1.5rem !important;
  box-shadow: none !important;
  backdrop-filter: none !important;
}
body.login-page .auth-glass-box input,
body.login-page .auth-glass-box select {
  background: rgba(17, 17, 20, 0.96) !important;
  color: #ffffff !important;
  border-color: rgba(255, 255, 255, 0.14) !important;
  border-radius: 0.75rem !important;
}
body.login-page .auth-glass-box input::placeholder {
  color: rgba(255, 255, 255, 0.52) !important;
}
body.login-page .auth-glass-box .text-white,
body.login-page .auth-glass-box .text-slate-100,
body.login-page .auth-glass-box .text-slate-200,
body.login-page .auth-glass-box .text-slate-300 {
  color: #ffffff !important;
}
body.login-page .auth-glass-box .text-slate-400,
body.login-page .auth-glass-box .text-slate-500 {
  color: #d1d5db !important;
}
body.login-page .auth-glass-box > div:first-child {
  background: rgba(10, 10, 12, 0.96) !important;
  border-color: rgba(255, 255, 255, 0.08) !important;
}
body.login-page .auth-theme-gcos .auth-glass-box {
  background: rgba(8, 9, 12, 0.96) !important;
  border-color: rgba(255, 255, 255, 0.12) !important;
}
body.login-page .auth-theme-gcos .auth-glass-box input,
body.login-page .auth-theme-gcos .auth-glass-box select {
  background: rgba(17, 17, 20, 0.96) !important;
  border-color: rgba(255, 255, 255, 0.16) !important;
}
body.login-page .auth-theme-gcos .auth-glass-box .gold-gradient-btn,
body.login-page .auth-theme-gcos .auth-glass-box .gold-gradient-btn * {
  background: #ffffff !important;
  color: #000000 !important;
  border-color: rgba(255, 255, 255, 0.9) !important;
}
body.login-page .auth-theme-tk .auth-glass-box {
  background: rgba(10, 8, 12, 0.96) !important;
  border-color: rgba(244, 114, 182, 0.28) !important;
}
body.login-page .auth-theme-tk .auth-glass-box input,
body.login-page .auth-theme-tk .auth-glass-box select {
  background: rgba(17, 17, 20, 0.96) !important;
  border-color: rgba(244, 114, 182, 0.24) !important;
}
body.login-page .auth-theme-tk .auth-glass-box .gold-gradient-btn,
body.login-page .auth-theme-tk .auth-glass-box .gold-gradient-btn * {
  background: linear-gradient(135deg, #ec4899 0%, #be185d 100%) !important;
  color: #ffffff !important;
  border-color: rgba(244, 114, 182, 0.9) !important;
}
