@import url('https://fonts.googleapis.com/css2?family=Open+Sans:ital,wght@0,300..800;1,300..800&family=Fira+Code:wght@400;600;700&display=swap');

/* --- Premium Multi-Theme Design System --- */

:root {
  /* Default Theme: Oceanic Blue-Green Sea (Bioluminescent Marine & Neon Highlights) */
  --bg-dark: #020d13;
  --bg-card: rgba(4, 24, 32, 0.58); /* Frosted deep marine card */
  --border-color: rgba(45, 212, 191, 0.18);
  --border-focus: rgba(0, 245, 196, 0.65);
  --color-primary: #00f5c4;       /* Luminous Seafoam / Neon Aqua */
  --color-primary-glow: rgba(0, 245, 196, 0.32);
  --color-accent-blue: #38bdf8;   /* Soft ice-cyan */
  --color-accent-sea: #2dd4bf;    /* Electric Turquoise */
  --color-text-main: #f8fafc;     /* Bright crisp text */
  --color-text-muted: #cbd5e1;    /* Mid-tone slate */
  --color-text-dark: #7dd3fc;     /* Vivid marine cyan for descriptions */
  --glass-backdrop: blur(25px) saturate(180%);

  /* Workflow Status Accents */
  --status-intake-bg: rgba(99, 102, 241, 0.12);
  --status-intake-text: #a5b4fc;
  --status-sourcing-bg: rgba(245, 158, 11, 0.12);
  --status-sourcing-text: #fcd34d;
  --status-pending-bg: rgba(236, 72, 153, 0.12);
  --status-pending-text: #f9a8d4;
  --status-confirmed-bg: rgba(16, 185, 129, 0.12);
  --status-confirmed-text: #6ee7b7;

  /* Premium Typography Scales */
  --font-display: 'Open Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --font-sans: 'Open Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --font-mono: 'Fira Code', monospace;

  /* Standardized Corner Radii Scales */
  --radius-sm: 8px;     /* Small inputs, tags, select options */
  --radius-md: 12px;    /* Secondary buttons, profile badges, small cards */
  --radius-lg: 20px;    /* High-density glass-cards, main modal containers */
  --radius-xl: 28px;    /* Large dynamic dashboard frames */

  /* Deluxe Spatial Spacing (Compact, high data density) */
  --space-xs: 4px;
  --space-sm: 8px;
  --space-md: 16px;
  --space-lg: 24px;
  --space-xl: 32px;

  /* Premium Shadows & Motion */
  --shadow-diffuse: 0 10px 40px rgba(0, 0, 0, 0.35), inset 0 0 1px rgba(45, 212, 191, 0.15);
  --shadow-focus: 0 0 0 3px rgba(0, 245, 196, 0.3);
  --transition-premium: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  --transition-smooth: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
}

body,
body.theme-oceanic-sea,
body.theme-glassmorphism-luxe {
  background: radial-gradient(ellipse at top, #062a35 0%, #03151e 50%, #010a0e 100%) fixed !important;
  --bg-dark: #020d13;
  --bg-card: rgba(4, 24, 32, 0.58);
  --border-color: rgba(45, 212, 191, 0.18);
  --border-focus: rgba(0, 245, 196, 0.65);
  --color-primary: #00f5c4;
  --color-primary-glow: rgba(0, 245, 196, 0.32);
  --glass-backdrop: blur(30px) saturate(190%);
}
body.theme-oceanic-sea .bg-glow,
body.theme-glassmorphism-luxe .bg-glow {
  opacity: 0.32 !important; /* Elegant breathing radial oceanic glowing elements */
}
body.theme-oceanic-sea .bg-glow-1,
body.theme-glassmorphism-luxe .bg-glow-1 {
  animation: floatGlow1 22s infinite alternate ease-in-out !important;
}
body.theme-oceanic-sea .bg-glow-2,
body.theme-glassmorphism-luxe .bg-glow-2 {
  animation: floatGlow2 28s infinite alternate ease-in-out !important;
}

body.theme-oceanic-sea .nav-item,
body.theme-glassmorphism-luxe .nav-item {
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

body.theme-oceanic-sea .nav-item:hover,
body.theme-glassmorphism-luxe .nav-item:hover {
  background: rgba(45, 212, 191, 0.08);
  box-shadow: 0 4px 15px rgba(0, 245, 196, 0.12), inset 0 0 8px rgba(45, 212, 191, 0.05);
  border-color: rgba(0, 245, 196, 0.35);
  color: #ffffff;
}

body.theme-oceanic-sea .nav-item.active,
body.theme-glassmorphism-luxe .nav-item.active {
  background: rgba(0, 245, 196, 0.14);
  box-shadow: 0 8px 24px rgba(0, 245, 196, 0.25), inset 0 0 12px rgba(45, 212, 191, 0.08);
  border-color: rgba(0, 245, 196, 0.55);
  color: var(--color-primary);
}

body.theme-oceanic-sea .nav-item svg,
body.theme-glassmorphism-luxe .nav-item svg {
  stroke: rgba(125, 211, 252, 0.85); /* Vivid marine ice-cyan by default */
  filter: drop-shadow(0 0 4px rgba(0, 245, 196, 0.2));
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

body.theme-oceanic-sea .nav-item:hover svg,
body.theme-glassmorphism-luxe .nav-item:hover svg {
  stroke: #ffffff;
  filter: drop-shadow(0 0 10px rgba(0, 245, 196, 0.8));
  transform: scale(1.15) rotate(3deg);
}

body.theme-oceanic-sea .nav-item.active svg,
body.theme-glassmorphism-luxe .nav-item.active svg {
  stroke: var(--color-primary); /* Vibrant neon seafoam */
  filter: drop-shadow(0 0 14px rgba(0, 245, 196, 0.95));
  transform: scale(1.2);
  animation: pulseGlowIcon 2s infinite alternate ease-in-out;
}

/* Glassmorphism Luxe / Oceanic Sea Card SVGs and general action SVGs */
body.theme-oceanic-sea .glass-card svg,
body.theme-glassmorphism-luxe .glass-card svg,
body.theme-oceanic-sea .sla-card-icon svg,
body.theme-glassmorphism-luxe .sla-card-icon svg,
body.theme-oceanic-sea .modal-content svg,
body.theme-glassmorphism-luxe .modal-content svg,
body.theme-oceanic-sea .panel svg,
body.theme-glassmorphism-luxe .panel svg,
body.theme-oceanic-sea .calendar-view svg,
body.theme-glassmorphism-luxe .calendar-view svg {
  stroke: var(--color-primary);
  filter: drop-shadow(0 0 6px rgba(0, 245, 196, 0.45));
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

body.theme-oceanic-sea .glass-card:hover svg,
body.theme-glassmorphism-luxe .glass-card:hover svg,
body.theme-oceanic-sea .sla-card:hover .sla-card-icon svg,
body.theme-glassmorphism-luxe .sla-card:hover .sla-card-icon svg {
  filter: drop-shadow(0 0 14px rgba(0, 245, 196, 0.9));
  transform: scale(1.15);
}

/* Premium Glassmorphic Toast Notification Styling */
.glass-toast {
  background: rgba(4, 24, 32, 0.85);
  backdrop-filter: blur(20px) saturate(180%);
  -webkit-backdrop-filter: blur(20px) saturate(180%);
  border: 1px solid rgba(0, 245, 196, 0.35);
  box-shadow: 0 12px 40px 0 rgba(0, 245, 196, 0.25), inset 0 0 15px rgba(45, 212, 191, 0.08);
  color: #f8fafc;
  padding: 14px 28px;
  border-radius: 12px;
  font-family: var(--font-sans);
  font-size: 13.5px;
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 12px;
  max-width: 450px;
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.4s cubic-bezier(0.16, 1, 0.3, 1), transform 0.4s cubic-bezier(0.16, 1, 0.3, 1);
  pointer-events: auto;
  letter-spacing: 0.3px;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.5);
  animation: toastPulseBorder 2s infinite alternate ease-in-out;
}

@keyframes toastPulseBorder {
  0% {
    border-color: rgba(0, 245, 196, 0.3);
    box-shadow: 0 8px 32px 0 rgba(0, 245, 196, 0.18), inset 0 0 10px rgba(45, 212, 191, 0.05);
  }
  100% {
    border-color: rgba(0, 245, 196, 0.75);
    box-shadow: 0 12px 40px 0 rgba(0, 245, 196, 0.4), inset 0 0 18px rgba(0, 245, 196, 0.18);
  }
}

@keyframes toastFadeOutDown {
  0% {
    opacity: 1;
    transform: translateY(0);
  }
  100% {
    opacity: 0;
    transform: translateY(20px);
  }
}

@keyframes pulseGlowIcon {
  0% {
    filter: drop-shadow(0 0 5px rgba(0, 245, 196, 0.45)) drop-shadow(0 0 1px rgba(0, 245, 196, 0.25));
  }
  100% {
    filter: drop-shadow(0 0 16px rgba(0, 245, 196, 0.98)) drop-shadow(0 0 5px rgba(0, 240, 255, 0.55));
  }
}

/* Theme 2 Override: Cyberpunk Glow (The previous neon theme) */
body.theme-cyberpunk-glow {
  background: #040b16;
  --bg-dark: #040b16;
  --bg-card: rgba(10, 25, 47, 0.65);
  --border-color: rgba(255, 255, 255, 0.18);
  --border-focus: rgba(0, 240, 255, 0.7);
  --color-primary: #00f0ff;
  --color-primary-glow: rgba(0, 240, 255, 0.35);
  --color-accent-blue: #38bdf8;
  --color-text-main: #f8fafc;
  --color-text-muted: #cbd5e1;
  --color-text-dark: #8ba2b5;
  --glass-backdrop: blur(15px);
}
body.theme-cyberpunk-glow .bg-glow {
  opacity: 0.15; /* Enable full vibrant background radial glow */
}

/* Theme 3 Override: Minimalist Light (Light Theme) */
body.theme-minimalist-light {
  background: radial-gradient(at top left, #f8fafc, #f1f5f9) !important;
  background-image: none !important;
  --bg-dark: #f8fafc;
  --bg-card: #ffffff;
  --border-color: rgba(15, 23, 42, 0.05);
  --border-focus: #6366f1;
  --color-primary: #4f46e5;       /* Premium Indigo */
  --color-primary-glow: rgba(79, 70, 229, 0.08);
  --color-accent-blue: #0284c7;   /* Sky Blue */
  --color-text-main: #0f172a;
  --color-text-muted: #475569;
  --color-text-dark: #64748b;
  --glass-backdrop: none;
  
  --status-intake-bg: #eef2ff;
  --status-intake-text: #4338ca;  
  --status-sourcing-bg: #fffbeb;
  --status-sourcing-text: #b45309; 
  --status-pending-bg: #fdf2f8;
  --status-pending-text: #be185d;  
  --status-confirmed-bg: #ecfdf5;
  --status-confirmed-text: #047857; 
}

/* Ensure background image is a beautiful ultra-soft accent glow in Light Theme */
body.theme-minimalist-light .bg-glow {
  display: block !important;
  opacity: 0.15 !important;
  background: radial-gradient(circle, rgba(99, 102, 241, 0.1) 0%, rgba(244, 63, 94, 0.05) 50%, transparent 100%) !important;
  mix-blend-mode: multiply;
}

body.theme-minimalist-light .sidebar {
  background: #ffffff !important;
  border-right: 1px solid rgba(15, 23, 42, 0.05) !important;
  box-shadow: 4px 0 20px rgba(15, 23, 42, 0.01) !important;
}

body.theme-minimalist-light .brand-logo-img {
  filter: drop-shadow(0 0 8px rgba(2, 132, 199, 0.35));
}

body.theme-minimalist-light .brand-main {
  background: linear-gradient(135deg, #0284c7 0%, #0369a1 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  text-shadow: none;
}

body.theme-minimalist-light .brand-sub {
  color: #1e293b;
}

body.theme-minimalist-light .user-profile-badge {
  background: #f8fafc !important;
  border: 1px solid rgba(15, 23, 42, 0.04) !important;
  box-shadow: 0 1px 3px rgba(0,0,0,0.01) !important;
}

/* Sidebar Item Overrides */
body.theme-minimalist-light .nav-item {
  color: #475569 !important;
  border-radius: 8px !important;
  margin: 4px 12px !important;
  padding: 10px 16px !important;
  font-weight: 500 !important;
  border-left: none !important;
  transition: all 0.2s ease !important;
}

body.theme-minimalist-light .nav-item.active {
  background: rgba(79, 70, 229, 0.06) !important;
  color: #4f46e5 !important;
  font-weight: 600 !important;
  box-shadow: inset 0 0 0 1px rgba(79, 70, 229, 0.08) !important;
  border-left: none !important;
}

body.theme-minimalist-light .nav-item:hover:not(.active) {
  background: #f1f5f9 !important;
  color: #0f172a !important;
}

/* Header & Typography Overrides */
body.theme-minimalist-light header {
  border-bottom: 1px solid rgba(15, 23, 42, 0.05) !important;
  background: rgba(255, 255, 255, 0.8) !important;
  backdrop-filter: blur(8px) !important;
}

body.theme-minimalist-light h1, 
body.theme-minimalist-light h2, 
body.theme-minimalist-light h3, 
body.theme-minimalist-light h4, 
body.theme-minimalist-light h5, 
body.theme-minimalist-light h6 {
  color: #0f172a !important;
  text-shadow: none !important;
}

body.theme-minimalist-light p, 
body.theme-minimalist-light span, 
body.theme-minimalist-light label,
body.theme-minimalist-light .subtitle,
body.theme-minimalist-light .section-title,
body.theme-minimalist-light td,
body.theme-minimalist-light th {
  color: #334155 !important;
  text-shadow: none !important;
}

/* Input Fields in Light Theme */
body.theme-minimalist-light input,
body.theme-minimalist-light select,
body.theme-minimalist-light textarea {
  background: #ffffff !important;
  border: 1px solid #e2e8f0 !important;
  color: #0f172a !important;
  border-radius: 8px !important;
  padding: 8px 12px !important;
  box-shadow: 0 1px 2px rgba(0,0,0,0.01) !important;
  transition: all 0.2s ease !important;
}

body.theme-minimalist-light input:focus,
body.theme-minimalist-light select:focus,
body.theme-minimalist-light textarea:focus {
  border-color: #6366f1 !important;
  box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.12) !important;
  outline: none !important;
}

/* Glass Card Overrides */
body.theme-minimalist-light .glass-card,
body.theme-minimalist-light .card,
body.theme-minimalist-light .stat-card,
body.theme-minimalist-light .summary-card,
body.theme-minimalist-light .sla-card {
  background: #ffffff !important;
  backdrop-filter: blur(10px) !important;
  -webkit-backdrop-filter: blur(10px) !important;
  border: 1px solid rgba(15, 23, 42, 0.05) !important;
  box-shadow: 0 4px 20px -2px rgba(15, 23, 42, 0.02), 0 2px 6px -1px rgba(15, 23, 42, 0.01) !important;
  border-radius: 12px !important;
  transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1) !important;
  color: #0f172a !important;
}

body.theme-minimalist-light .glass-card:hover,
body.theme-minimalist-light .stat-card:hover {
  transform: translateY(-2px) !important;
  box-shadow: 0 12px 25px -5px rgba(15, 23, 42, 0.04), 0 4px 10px -2px rgba(15, 23, 42, 0.01) !important;
  border-color: rgba(79, 70, 229, 0.15) !important;
}

/* Scheduler Columns Overrides */
body.theme-minimalist-light .scheduler-day-track {
  background: #f8fafc !important;
  border: 1px solid rgba(15, 23, 42, 0.04) !important;
  border-radius: 12px !important;
}

body.theme-minimalist-light .scheduler-card {
  background: #ffffff !important;
  border: 1px solid rgba(15, 23, 42, 0.05) !important;
  border-radius: 8px !important;
  box-shadow: 0 2px 4px rgba(15, 23, 42, 0.01) !important;
  transition: all 0.2s ease !important;
  color: #0f172a !important;
}

body.theme-minimalist-light .scheduler-card:hover {
  border-color: #4f46e5 !important;
  box-shadow: 0 10px 15px -3px rgba(79, 70, 229, 0.08) !important;
  transform: translateY(-1px) !important;
}

/* Buttons and Tabs in Light Theme */
body.theme-minimalist-light .glass-btn {
  background: #ffffff !important;
  border: 1px solid #e2e8f0 !important;
  color: #475569 !important;
  border-radius: 8px !important;
  font-weight: 500 !important;
  text-shadow: none !important;
  box-shadow: 0 1px 2px rgba(15,23,42,0.03) !important;
  transition: all 0.2s ease !important;
}

body.theme-minimalist-light .glass-btn:hover {
  background: #f8fafc !important;
  color: #0f172a !important;
  border-color: #cbd5e1 !important;
}

/* =========================================================================
   📊 Power BI Executive Charcoal Theme (Project Management Dashboard)
   ========================================================================= */

body.theme-powerbi-charcoal {
  background: #141c22 !important;
  background-image: none !important;
  color: #f8fafc !important;
  --bg-dark: #141c22;
  --bg-card: #202b35;
  --border-color: #2b3a47;
  --border-focus: #26a69a;
  --color-primary: #26a69a;       /* Vibrant Power BI Teal */
  --color-primary-glow: rgba(38, 166, 154, 0.25);
  --color-accent-blue: #1e88e5;   /* Power BI Blue */
  --color-text-main: #ffffff;
  --color-text-muted: #b0bec5;
  --color-text-dark: #78909c;
  --glass-backdrop: none;

  /* Power BI Accents */
  --pbi-green: #2e7d32;
  --pbi-blue: #1565c0;
  --pbi-gold: #d97706;
  --pbi-slate: #37474f;
  --pbi-crimson: #b71c1c;

  --status-intake-bg: rgba(30, 136, 229, 0.25);
  --status-intake-text: #64b5f6;  
  --status-sourcing-bg: rgba(245, 158, 11, 0.25);
  --status-sourcing-text: #ffb74d; 
  --status-pending-bg: rgba(183, 28, 28, 0.25);
  --status-pending-text: #e57373;  
  --status-confirmed-bg: rgba(46, 125, 50, 0.25);
  --status-confirmed-text: #81c784; 
}

body.theme-powerbi-charcoal .bg-glow {
  display: none !important;
}

body.theme-powerbi-charcoal .sidebar {
  background: #18222a !important;
  border-right: 1px solid #283643 !important;
  box-shadow: 4px 0 20px rgba(0, 0, 0, 0.3) !important;
}

body.theme-powerbi-charcoal .nav-item {
  color: #b0bec5 !important;
  border-radius: 6px !important;
  margin: 4px 12px !important;
  padding: 10px 16px !important;
  font-weight: 600 !important;
  border: 1px solid transparent !important;
  transition: all 0.2s ease !important;
}

body.theme-powerbi-charcoal .nav-item:hover {
  background: #23313d !important;
  color: #ffffff !important;
  border-color: #2c3e4c !important;
}

body.theme-powerbi-charcoal .nav-item.active {
  background: #26a69a !important;
  color: #ffffff !important;
  box-shadow: 0 4px 14px rgba(38, 166, 154, 0.35) !important;
  border-color: #26a69a !important;
}

body.theme-powerbi-charcoal .nav-item svg {
  stroke: #b0bec5 !important;
}

body.theme-powerbi-charcoal .nav-item.active svg {
  stroke: #ffffff !important;
  filter: drop-shadow(0 0 4px rgba(255, 255, 255, 0.5));
}

body.theme-powerbi-charcoal .glass-card,
body.theme-powerbi-charcoal .glass-panel,
body.theme-powerbi-charcoal .dashboard-card,
body.theme-powerbi-charcoal .sla-card,
body.theme-powerbi-charcoal .stat-card,
body.theme-powerbi-charcoal .card {
  background: #202b35 !important;
  border: 1px solid #2a3845 !important;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.25) !important;
  border-radius: 8px !important;
}

/* Metric Cards Top Row Accents */
body.theme-powerbi-charcoal .stat-card:nth-child(1) {
  background: linear-gradient(180deg, #2e7d32 0%, #1e5621 100%) !important;
  border: 1px solid #388e3c !important;
}

body.theme-powerbi-charcoal .stat-card:nth-child(2) {
  background: linear-gradient(180deg, #1565c0 0%, #0d47a1 100%) !important;
  border: 1px solid #1976d2 !important;
}

body.theme-powerbi-charcoal .stat-card:nth-child(3) {
  background: linear-gradient(180deg, #d97706 0%, #b45309 100%) !important;
  border: 1px solid #f59e0b !important;
}

body.theme-powerbi-charcoal .stat-card:nth-child(4) {
  background: linear-gradient(180deg, #37474f 0%, #263238 100%) !important;
  border: 1px solid #455a64 !important;
}

body.theme-powerbi-charcoal .content-header {
  border-bottom: 1px solid #283643 !important;
}

body.theme-powerbi-charcoal .btn-primary {
  background: #26a69a !important;
  color: #ffffff !important;
  border: none !important;
  font-weight: 700 !important;
  box-shadow: 0 2px 10px rgba(38, 166, 154, 0.3) !important;
}

body.theme-powerbi-charcoal .btn-secondary {
  background: #283643 !important;
  color: #cfd8dc !important;
  border: 1px solid #37474f !important;
}

body.theme-powerbi-charcoal .btn-secondary:hover {
  background: #37474f !important;
  color: #ffffff !important;
}

body.theme-powerbi-charcoal table,
body.theme-powerbi-charcoal .pipeline-table {
  background: #202b35 !important;
}

body.theme-powerbi-charcoal th {
  background: #18222a !important;
  color: #90a4ae !important;
  border-bottom: 1px solid #2c3e4d !important;
  text-transform: uppercase !important;
  font-size: 11px !important;
  letter-spacing: 0.5px !important;
}

body.theme-powerbi-charcoal tr {
  border-bottom: 1px solid #283643 !important;
}

body.theme-powerbi-charcoal td {
  color: #eceff1 !important;
}

body.theme-powerbi-charcoal .form-control,
body.theme-powerbi-charcoal select,
body.theme-powerbi-charcoal input,
body.theme-powerbi-charcoal textarea {
  background: #18222a !important;
  border: 1px solid #2c3e4d !important;
  color: #ffffff !important;
  border-radius: 6px !important;
}

body.theme-powerbi-charcoal .form-control:focus,
body.theme-powerbi-charcoal select:focus,
body.theme-powerbi-charcoal input:focus {
  border-color: #26a69a !important;
  box-shadow: 0 0 0 2px rgba(38, 166, 154, 0.25) !important;
}

/* =========================================================================
   🚀 Theme Override: Citizen Dev Indigo (John's AppTemplate Theme)
   ========================================================================= */
body.theme-apptemplate-indigo {
  background: radial-gradient(ellipse at top, #151c2e 0%, #0d121f 50%, #070a12 100%) fixed !important;
  color: #f8fafc !important;
  --bg-dark: #0b0f19;
  --bg-card: rgba(21, 28, 44, 0.74);
  --border-color: rgba(99, 102, 241, 0.22);
  --border-focus: #818cf8;
  --color-primary: #818cf8;         /* Premium Indigo */
  --color-primary-glow: rgba(99, 102, 241, 0.38);
  --color-accent-blue: #38bdf8;     /* Sky Blue */
  --color-accent-sea: #a855f7;      /* Violet Accent */
  --color-text-main: #f8fafc;
  --color-text-muted: #94a3b8;
  --color-text-dark: #64748b;
  --glass-backdrop: blur(28px) saturate(180%);

  /* Citizen Dev Workflow Status Indicators */
  --status-intake-bg: rgba(99, 102, 241, 0.16);
  --status-intake-text: #a5b4fc;
  --status-sourcing-bg: rgba(245, 158, 11, 0.16);
  --status-sourcing-text: #fcd34d;
  --status-pending-bg: rgba(236, 72, 153, 0.16);
  --status-pending-text: #f9a8d4;
  --status-confirmed-bg: rgba(16, 185, 129, 0.16);
  --status-confirmed-text: #6ee7b7;
}

body.theme-apptemplate-indigo .bg-glow {
  opacity: 0.28 !important;
}

body.theme-apptemplate-indigo .bg-glow-1 {
  background: radial-gradient(circle, rgba(99, 102, 241, 0.38) 0%, rgba(99, 102, 241, 0) 70%) !important;
  animation: floatGlow1 22s infinite alternate ease-in-out !important;
}

body.theme-apptemplate-indigo .bg-glow-2 {
  background: radial-gradient(circle, rgba(168, 85, 247, 0.32) 0%, rgba(168, 85, 247, 0) 70%) !important;
  animation: floatGlow2 28s infinite alternate ease-in-out !important;
}

body.theme-apptemplate-indigo .sidebar {
  background: rgba(11, 15, 25, 0.88) !important;
  backdrop-filter: blur(20px) !important;
  border-right: 1px solid rgba(99, 102, 241, 0.2) !important;
}

body.theme-apptemplate-indigo .brand-main {
  background: linear-gradient(135deg, #818cf8 0%, #c084fc 50%, #60a5fa 100%) !important;
  -webkit-background-clip: text !important;
  -webkit-text-fill-color: transparent !important;
}

body.theme-apptemplate-indigo .nav-item {
  color: #94a3b8 !important;
  border-radius: 10px !important;
  transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1) !important;
}

body.theme-apptemplate-indigo .nav-item:hover {
  background: rgba(99, 102, 241, 0.1) !important;
  border-color: rgba(99, 102, 241, 0.35) !important;
  color: #f8fafc !important;
  transform: translateX(3px) !important;
}

body.theme-apptemplate-indigo .nav-item.active {
  background: rgba(99, 102, 241, 0.2) !important;
  border-color: rgba(99, 102, 241, 0.6) !important;
  color: #818cf8 !important;
  box-shadow: 0 4px 18px rgba(99, 102, 241, 0.25), inset 0 0 10px rgba(99, 102, 241, 0.1) !important;
}

body.theme-apptemplate-indigo .nav-item svg {
  stroke: #818cf8 !important;
  filter: drop-shadow(0 0 5px rgba(99, 102, 241, 0.4)) !important;
}

body.theme-apptemplate-indigo .nav-item.active svg {
  stroke: #a5b4fc !important;
  filter: drop-shadow(0 0 8px rgba(99, 102, 241, 0.8)) !important;
}

body.theme-apptemplate-indigo .glass-card,
body.theme-apptemplate-indigo .panel,
body.theme-apptemplate-indigo .dashboard-card,
body.theme-apptemplate-indigo .sla-card,
body.theme-apptemplate-indigo .stat-card,
body.theme-apptemplate-indigo .card {
  background: rgba(21, 28, 44, 0.74) !important;
  border: 1px solid rgba(99, 102, 241, 0.22) !important;
  box-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.37) !important;
  backdrop-filter: blur(20px) !important;
  -webkit-backdrop-filter: blur(20px) !important;
}

body.theme-apptemplate-indigo .glass-card:hover,
body.theme-apptemplate-indigo .stat-card:hover,
body.theme-apptemplate-indigo .sla-card:hover {
  border-color: rgba(129, 140, 248, 0.55) !important;
  box-shadow: 0 12px 36px 0 rgba(99, 102, 241, 0.25) !important;
  transform: translateY(-3px) !important;
}

body.theme-apptemplate-indigo .btn-primary,
body.theme-apptemplate-indigo .btn-primary-action {
  background: linear-gradient(135deg, #6366f1 0%, #4f46e5 100%) !important;
  color: #ffffff !important;
  border: 1px solid rgba(129, 140, 248, 0.4) !important;
  box-shadow: 0 4px 14px rgba(99, 102, 241, 0.35) !important;
  transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1) !important;
}

body.theme-apptemplate-indigo .btn-primary:hover,
body.theme-apptemplate-indigo .btn-primary-action:hover {
  background: linear-gradient(135deg, #4f46e5 0%, #4338ca 100%) !important;
  box-shadow: 0 6px 20px rgba(99, 102, 241, 0.5) !important;
  transform: translateY(-2px) !important;
}

body.theme-apptemplate-indigo .glass-btn {
  background: rgba(99, 102, 241, 0.08) !important;
  border: 1px solid rgba(99, 102, 241, 0.25) !important;
  color: #e2e8f0 !important;
}

body.theme-apptemplate-indigo .glass-btn:hover {
  background: rgba(99, 102, 241, 0.18) !important;
  border-color: rgba(99, 102, 241, 0.5) !important;
  color: #ffffff !important;
}

body.theme-apptemplate-indigo .glass-btn.active-tab {
  background: rgba(99, 102, 241, 0.25) !important;
  border-color: #818cf8 !important;
  color: #ffffff !important;
  box-shadow: 0 4px 16px rgba(99, 102, 241, 0.3) !important;
}

body.theme-apptemplate-indigo .calendar-day-cell {
  background: rgba(21, 28, 44, 0.45) !important;
  border: 1px solid rgba(99, 102, 241, 0.15) !important;
}

body.theme-apptemplate-indigo .calendar-day-cell:hover {
  background: rgba(99, 102, 241, 0.12) !important;
  border-color: rgba(129, 140, 248, 0.45) !important;
}

body.theme-apptemplate-indigo .calendar-day-cell.today {
  border-color: #818cf8 !important;
  box-shadow: inset 0 0 14px rgba(99, 102, 241, 0.28) !important;
}

body.theme-apptemplate-indigo .calendar-day-cell.today .calendar-day-number {
  background: #6366f1 !important;
  color: #ffffff !important;
}

body.theme-apptemplate-indigo .modal-content {
  background: rgba(15, 23, 42, 0.95) !important;
  border: 1px solid rgba(99, 102, 241, 0.35) !important;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.7), 0 0 30px rgba(99, 102, 241, 0.2) !important;
}

body.theme-apptemplate-indigo .form-control,
body.theme-apptemplate-indigo select,
body.theme-apptemplate-indigo input,
body.theme-apptemplate-indigo textarea {
  background: rgba(11, 15, 25, 0.6) !important;
  border: 1px solid rgba(99, 102, 241, 0.25) !important;
  color: #f8fafc !important;
}

body.theme-apptemplate-indigo .form-control:focus,
body.theme-apptemplate-indigo select:focus,
body.theme-apptemplate-indigo input:focus,
body.theme-apptemplate-indigo textarea:focus {
  border-color: #818cf8 !important;
  box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.25) !important;
}

body.theme-apptemplate-indigo table.pipeline-table th {
  background: rgba(15, 23, 42, 0.8) !important;
  border-bottom: 2px solid rgba(99, 102, 241, 0.3) !important;
  color: #c7d2fe !important;
}

body.theme-apptemplate-indigo table.pipeline-table tr:hover {
  background: rgba(99, 102, 241, 0.08) !important;
}

body.theme-minimalist-light .glass-btn.active-tab {
  background: #4f46e5 !important;
  border-color: #4f46e5 !important;
  color: #ffffff !important;
  text-shadow: none !important;
  box-shadow: 0 4px 12px rgba(79, 70, 229, 0.2) !important;
}

/* Ticket Details Modal & Workspace Overrides */
body.theme-minimalist-light #ticket-details-modal {
  background: rgba(15, 23, 42, 0.3) !important; /* Elegant backdrop */
  backdrop-filter: blur(4px) !important;
}

body.theme-minimalist-light #ticket-details-modal > div {
  background: #ffffff !important;
  border: 1px solid rgba(15, 23, 42, 0.05) !important;
  border-radius: 16px !important;
  box-shadow: 0 25px 50px -12px rgba(15, 23, 42, 0.08) !important;
}

body.theme-minimalist-light .timeline-bubble {
  background: #f8fafc !important;
  border: 1px solid rgba(15, 23, 42, 0.04) !important;
  color: #0f172a !important;
  border-radius: 10px !important;
}

body.theme-minimalist-light .timeline-title {
  color: #0f172a !important;
}

body.theme-minimalist-light .timeline-meta {
  color: #64748b !important;
}

/* Badges & Tables in Light Theme */
body.theme-minimalist-light table.pipeline-table th {
  background: #f8fafc !important;
  color: #475569 !important;
  border-bottom: 2px solid rgba(15, 23, 42, 0.04) !important;
}

body.theme-minimalist-light table.pipeline-table td {
  border-bottom: 1px solid rgba(15, 23, 42, 0.03) !important;
  color: #0f172a !important;
}

body.theme-minimalist-light table.pipeline-table tr:hover {
  background: rgba(79, 70, 229, 0.015) !important;
}

body.theme-minimalist-light .badge {
  text-shadow: none !important;
}

/* Calendar Overrides */
body.theme-minimalist-light .calendar-day-cell {
  background: #ffffff !important;
  border: 1px solid #f1f5f9 !important;
  border-radius: 4px !important;
}

body.theme-minimalist-light .calendar-day-cell:hover {
  background: #f8fafc !important;
  border-color: #cbd5e1 !important;
}

body.theme-minimalist-light .calendar-day-cell.today {
  border: 1.5px solid #6366f1 !important;
  background: #f5f3ff !important;
}

body.theme-minimalist-light .calendar-day-number {
  color: #64748b !important;
}

body.theme-minimalist-light .calendar-day-cell.today .calendar-day-number {
  color: #4f46e5 !important;
}

/* Elegant Theme Overrides and Transitions */
body, .sidebar, .main-content, .card, .user-profile-badge, .nav-item, header, button, input, select, textarea, .glass-panel {
  transition: background-color 0.4s ease, color 0.4s ease, border-color 0.4s ease, box-shadow 0.4s ease, background 0.4s ease, backdrop-filter 0.4s ease;
}

/* Base Resets */
* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  font-family: var(--font-sans);
  background-color: var(--bg-dark);
  color: var(--color-text-main);
  min-height: 100vh;
  overflow-x: hidden;
  position: relative;
}

/* Ambient Radial Glow Elements with Floating Parallax animations */
.bg-glow {
  position: fixed;
  width: 850px;
  height: 850px;
  border-radius: 50%;
  pointer-events: none;
  z-index: 0;
  filter: blur(160px);
  opacity: 0.15;
  transition: opacity 1s ease, transform 0.5s ease;
}

.bg-glow-1 {
  background: radial-gradient(circle, var(--color-primary), transparent 70%);
  top: -250px;
  left: -250px;
}

.bg-glow-2 {
  background: radial-gradient(circle, var(--color-accent-blue), transparent 70%);
  bottom: -250px;
  right: -250px;
}

@keyframes floatGlow1 {
  0% {
    transform: translate(0, 0) scale(1) rotate(0deg);
    opacity: 0.22;
  }
  50% {
    transform: translate(120px, 100px) scale(1.15) rotate(180deg);
    opacity: 0.35;
  }
  100% {
    transform: translate(0, 0) scale(1) rotate(360deg);
    opacity: 0.22;
  }
}

@keyframes floatGlow2 {
  0% {
    transform: translate(0, 0) scale(1.1) rotate(360deg);
    opacity: 0.18;
  }
  50% {
    transform: translate(-140px, -80px) scale(0.9) rotate(180deg);
    opacity: 0.3;
  }
  100% {
    transform: translate(0, 0) scale(1.1) rotate(0deg);
    opacity: 0.18;
  }
}

/* =========================================================================
     🌌 Main Layout Container (Sidebar + Content)
     ========================================================================= */
.app-layout {
  display: flex;
  min-height: 100vh;
  width: 100%;
  max-width: 100vw;
  box-sizing: border-box;
  position: relative;
  z-index: 10;
  overflow-x: hidden;
}

/* Sidebar Navigation */
.sidebar {
  width: var(--sidebar-width, 260px);
  min-width: 210px;
  max-width: 340px;
  background: rgba(3, 17, 24, 0.88);
  border-right: 1px solid var(--border-color);
  backdrop-filter: blur(20px);
  padding: 32px 20px;
  display: flex;
  flex-direction: column;
  position: sticky;
  top: 0;
  height: 100vh;
  overflow-y: auto;
  flex-shrink: 0;
}

/* Sidebar Draggable Resizer Bar */
.sidebar-resizer {
  position: absolute;
  top: 0;
  right: -3px;
  width: 8px;
  height: 100%;
  cursor: col-resize;
  user-select: none;
  z-index: 100;
  background: transparent;
  transition: background 0.2s ease, box-shadow 0.2s ease;
}

.sidebar-resizer:hover,
.sidebar-resizer.is-resizing {
  background: rgba(0, 245, 196, 0.5);
  box-shadow: 0 0 12px rgba(0, 245, 196, 0.8);
}

.logo-area {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 36px;
  padding: 0 4px;
}

.logo-icon {
  width: 46px;
  height: 46px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  flex-shrink: 0;
  background: transparent;
}

.logo-icon--lg {
  width: 64px;
  height: 64px;
}

#login-overlay .modal-content {
  padding: 42px 32px 32px 32px;
}

#login-overlay .logo-icon--lg {
  margin: 4px auto 24px auto;
}

.brand-logo-img {
  width: 46px;
  height: 46px;
  object-fit: contain;
  border-radius: 10px;
  filter: drop-shadow(0 0 10px rgba(0, 245, 196, 0.45));
  transition: transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1), filter 0.3s ease;
}

.brand-logo-img--lg {
  width: 64px;
  height: 64px;
  border-radius: 14px;
}

.logo-icon:hover .brand-logo-img {
  transform: scale(1.08) rotate(2deg);
  filter: drop-shadow(0 0 18px rgba(0, 245, 196, 0.9));
}

.logo-area h1 {
  font-family: var(--font-display, 'Open Sans', sans-serif);
  font-weight: 800;
  margin: 0;
  display: flex;
  flex-direction: column;
  line-height: 1.2;
}

.brand-main {
  background: linear-gradient(135deg, #00f5c4 0%, #00e1d9 50%, #38bdf8 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  font-weight: 800;
  font-size: 17px;
  letter-spacing: -0.3px;
  text-shadow: 0 0 20px rgba(0, 245, 196, 0.35);
}

.brand-sub {
  color: #f8fafc;
  font-weight: 800;
  font-size: 13px;
  letter-spacing: 0.8px;
  text-transform: uppercase;
  opacity: 0.95;
}

/* 💓 Idle Heartbeat Animation Mode */
@keyframes heartbeat-pulse {
  0% {
    transform: scale(1);
    filter: drop-shadow(0 0 8px rgba(0, 245, 196, 0.4));
  }
  14% {
    transform: scale(1.14);
    filter: drop-shadow(0 0 20px rgba(0, 245, 196, 0.9));
  }
  28% {
    transform: scale(1);
    filter: drop-shadow(0 0 8px rgba(0, 245, 196, 0.4));
  }
  42% {
    transform: scale(1.18);
    filter: drop-shadow(0 0 24px rgba(0, 245, 196, 1));
  }
  70% {
    transform: scale(1);
    filter: drop-shadow(0 0 8px rgba(0, 245, 196, 0.4));
  }
  100% {
    transform: scale(1);
    filter: drop-shadow(0 0 8px rgba(0, 245, 196, 0.4));
  }
}

.heartbeat-idle {
  will-change: transform, filter;
  animation: heartbeat-pulse 1.8s infinite ease-in-out !important;
}

.nav-links {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.nav-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 16px;
  border-radius: 10px;
  color: var(--color-text-muted);
  text-decoration: none;
  font-weight: 500;
  font-size: 15px;
  transition: var(--transition-smooth);
  border: 1px solid transparent;
}

.nav-item:hover {
  background: rgba(45, 212, 191, 0.08);
  color: var(--color-text-main);
}

.nav-item.active {
  background: rgba(0, 245, 196, 0.12);
  color: var(--color-primary);
  border-color: rgba(0, 245, 196, 0.35);
  box-shadow: 0 0 14px rgba(0, 245, 196, 0.25);
}

.sidebar-spacer {
  flex-grow: 1;
}

/* Coordinator Chat Items in Sidebar */
.coordinator-chat-item {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 6px 8px;
  border-radius: 8px;
  cursor: pointer;
  transition: all 0.2s ease-in-out;
  user-select: none;
}

.coordinator-chat-item:hover {
  background: rgba(255, 255, 255, 0.06);
  transform: translateX(4px);
}

body.theme-minimalist-light .coordinator-chat-item:hover {
  background: rgba(15, 23, 42, 0.05);
  transform: translateX(4px);
}

/* User Profile Badge in Sidebar */
.user-profile-badge {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 16px;
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  margin-top: 20px;
}

.user-avatar {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--color-primary), var(--color-accent-blue));
  color: #fff;
  font-weight: 700;
  font-size: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.user-info {
  display: flex;
  flex-direction: column;
}

.user-email {
  font-size: 13px;
  font-weight: 500;
  color: var(--color-text-main);
  max-width: 140px;
  overflow: hidden;
  text-overflow: ellipsis;
}

.user-role {
  font-size: 11px;
  color: var(--color-text-muted);
}

/* Main Content Area */
.main-content {
  flex: 1 1 0%;
  min-width: 0;
  padding: 24px 24px;
  display: flex;
  flex-direction: column;
  max-width: 100%;
  width: 100%;
  box-sizing: border-box;
  overflow-x: hidden;
}

.content-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 14px;
  margin-bottom: 24px;
  width: 100%;
  max-width: 100%;
  min-width: 0;
  box-sizing: border-box;
}

.page-title {
  min-width: 0;
  flex: 1 1 220px;
}

.page-title h2 {
  font-size: 28px;
  font-weight: 600;
  margin-bottom: 4px;
}

.page-title p {
  color: var(--color-text-muted);
  font-size: 14px;
}

/* Buttons */
.btn {
  font-family: var(--font-sans);
  font-weight: 600;
  font-size: 13px;
  border-radius: var(--radius-sm);
  padding: 8px 16px;                         /* Compact padding */
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  transition: var(--transition-smooth);
  border: 1px solid transparent;
}

.btn-primary {
  background: linear-gradient(135deg, var(--color-primary), #0284c7);
  color: #020e14;                            /* High contrast dark oceanic text on bright neon */
  box-shadow: 0 2px 10px var(--color-primary-glow);
  font-weight: 700;
}

.btn-primary:hover {
  transform: translateY(-1px);
  box-shadow: 0 4px 18px rgba(0, 245, 196, 0.45);
}

/* Data Table / Pipeline View */
.table-container {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  backdrop-filter: blur(20px);
  box-shadow: 0 24px 50px rgba(0, 0, 0, 0.35);
  overflow: hidden;
}

.pipeline-table {
  width: 100%;
  border-collapse: collapse;
  text-align: left;
}

.pipeline-table th {
  padding: 10px 14px;
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: var(--color-text-muted);
  border-bottom: 1px solid var(--border-color);
  background: rgba(0, 0, 0, 0.3);
}

.pipeline-table td {
  padding: 10px 14px;
  border-bottom: 1px solid var(--border-color);
  font-size: 14px;
}

.table-row {
  transition: var(--transition-smooth);
  cursor: pointer;
}

.table-row:hover {
  background: rgba(45, 212, 191, 0.08);
}

.table-row:last-child td {
  border-bottom: none;
}

.request-title {
  font-weight: 600;
  color: #fff;
  margin-bottom: 4px;
}

.request-meta {
  font-size: 12px;
  color: var(--color-text-muted);
}

/* Status Pills */
.status-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 12px;
  border-radius: 20px;
  font-size: 12px;
  font-weight: 600;
}

.status-indicator {
  width: 6px;
  height: 6px;
  border-radius: 50%;
}

.status-intake {
  background: var(--status-intake-bg);
  color: var(--status-intake-text);
}
.status-intake .status-indicator { background: var(--status-intake-text); }

.status-sourcing {
  background: var(--status-sourcing-bg);
  color: var(--status-sourcing-text);
}
.status-sourcing .status-indicator { background: var(--status-sourcing-text); }

.status-pending {
  background: var(--status-pending-bg);
  color: var(--status-pending-text);
}
.status-pending .status-indicator { background: var(--status-pending-text); }

.status-confirmed {
  background: var(--status-confirmed-bg);
  color: var(--status-confirmed-text);
}
.status-confirmed .status-indicator { background: var(--status-confirmed-text); }

.status-cancelled, .status-not-formalized {
  background: rgba(148, 163, 184, 0.15);
  color: #94a3b8;
  border: 1px solid rgba(148, 163, 184, 0.25);
}
.status-cancelled .status-indicator, .status-not-formalized .status-indicator { 
  background: #94a3b8;
  box-shadow: 0 0 6px #94a3b8;
}

/* Modal Styling */
.modal-overlay {
  position: fixed;
  top: 0; left: 0; right: 0; bottom: 0;
  background: rgba(2, 14, 20, 0.85);
  backdrop-filter: blur(12px);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 100000 !important;
  transition: opacity 0.3s ease;
}

.modal-overlay.hidden {
  opacity: 0 !important;
  pointer-events: none !important;
  display: none !important;
}

.modal-content {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  width: 100%;
  max-width: 500px;
  box-shadow: 0 24px 50px rgba(0, 0, 0, 0.6);
  overflow: hidden;
  transform: translateY(0);
  transition: transform 0.3s ease;
}

.modal-overlay.hidden .modal-content {
  transform: translateY(20px);
}

.modal-header {
  padding: 24px;
  border-bottom: 1px solid var(--border-color);
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.modal-header h3 {
  font-size: 20px;
  font-weight: 600;
}

.icon-btn {
  background: none;
  border: none;
  color: var(--color-text-muted);
  cursor: pointer;
  transition: var(--transition-smooth);
}

.icon-btn:hover {
  color: #fff;
}

.modal-body {
  padding: 24px;
  max-height: 70vh;
  overflow-y: auto;
}

.form-group {
  margin-bottom: 20px;
}

.form-group label {
  display: block;
  font-size: 14px;
  color: var(--color-text-muted);
  margin-bottom: 8px;
}

.form-control {
  width: 100%;
  background: rgba(2, 13, 19, 0.5);
  border: 1px solid rgba(45, 212, 191, 0.25); /* Accessible high contrast oceanic border */
  border-radius: var(--radius-sm);
  padding: 8px 12px;                          /* Compact high data density */
  color: #fff;
  font-family: var(--font-sans);
  font-size: 14px;
  transition: var(--transition-smooth);
}

.form-control:focus {
  outline: none;
  border-color: var(--border-focus);
  background: rgba(2, 13, 19, 0.75);
  box-shadow: 0 0 0 3px rgba(0, 245, 196, 0.25); /* Clear active focus ring */
}

.modal-actions {
  display: flex;
  justify-content: flex-end;
  gap: 12px;
  margin-top: 32px;
}

.btn-secondary {
  background: rgba(255, 255, 255, 0.05);
  color: var(--color-text-main);
  border: 1px solid var(--border-color);
}

.btn-secondary:hover {
  background: rgba(255, 255, 255, 0.1);
}
:root {
  --bg-dark: #0f111a;
  --bg-card: rgba(30, 34, 45, 0.6);
  --card-border: rgba(255, 255, 255, 0.12); /* Standardized consistent 0.12 opacity */
  --text-main: #f8f9fa;
  --text-muted: #a0a6b5;
  --accent-color: #6366f1;
  --accent-hover: #4f46e5;
  
  --success-color: #10b981;
  --warning-color: #f59e0b;
  --danger-color: #ef4444;
  --orange-color: #f97316;

  --font-family: 'Open Sans', sans-serif;
  --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  font-family: var(--font-family);
  background-color: var(--bg-dark);
  color: var(--text-main);
  line-height: 1.6;
  min-height: 100vh;
  /* Subtle animated gradient background */
  background: radial-gradient(circle at 15% 50%, rgba(99, 102, 241, 0.08), transparent 25%),
              radial-gradient(circle at 85% 30%, rgba(16, 185, 129, 0.05), transparent 25%);
  background-color: var(--bg-dark);
}

/* Typography */
h1, h2, h3, h4 {
  font-weight: 600;
  line-height: 1.2;
}

.text-accent { color: var(--accent-color); }
.text-success { color: var(--success-color); }
.text-muted { color: var(--text-muted); }

.mt-2 { margin-top: 2rem; }
.mb-2 { margin-bottom: 2rem; }

/* Navbar */
.navbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

:root {
  --bg-dark: #040b16;
  --bg-card: rgba(10, 25, 47, 0.65);
  --card-border: rgba(255, 255, 255, 0.12); /* Standardized consistent 0.12 opacity */
  --text-main: #f8fafc;
  --text-muted: #cbd5e1;                     /* High-contrast slate text */
  --accent-color: #00f0ff;                    /* Cohesive neon cyan accent */
  --accent-hover: #38bdf8;
  
  --success-color: #10b981;
  --warning-color: #fbbf24;                  /* Brighter amber warning */
  --danger-color: #f87171;                   /* Brighter red for error states */
  --orange-color: #f97316;

  --font-family: 'Open Sans', sans-serif;
  --transition: all 0.15s ease-in-out;        /* Snappy 0.15s transition */
}

/* Accent Utilities */
.text-accent { color: var(--accent-color); }
.text-success { color: var(--success-color); }
.text-muted { color: var(--text-muted); }

.mt-2 { margin-top: 1rem; }
.mb-2 { margin-bottom: 1rem; }

/* View As Dropdown Layout */
.view-as-container {
  display: flex;
  align-items: center;
  gap: 8px;
  background: var(--bg-card);
  padding: 6px 12px;                         /* High Density */
  border-radius: var(--radius-sm);
  border: 1px solid var(--card-border);
}

.view-as-container label {
  font-size: 13px;
  color: var(--text-muted);
  font-weight: 500;
}

.view-as-container select {
  background: transparent;
  color: var(--text-main);
  border: none;
  font-family: var(--font-family);
  font-size: 13px;
  font-weight: 600;
  outline: none;
  cursor: pointer;
}

.view-as-container select option {
  background: #040b16;
}

/* Dashboard Container */
.dashboard-container {
  max-width: 100%;
  width: 100%;
  margin: 0 auto;
  padding: 0;
}

.section-title {
  font-size: 20px;
  font-weight: 600;
  margin-bottom: 16px;
  color: var(--text-main);
  letter-spacing: -0.3px;
}

.hidden {
  display: none !important;
}

/* High-Density Glass Card */
.glass-card {
  background: var(--bg-card);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid var(--card-border);
  border-radius: var(--radius-md);
  padding: 16px;                              /* High Density spacing */
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.25);
  transition: var(--transition);
}

.glass-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.35);
  border-color: rgba(0, 240, 255, 0.35);
}

.glass-card h3 {
  font-size: 15px;
  font-weight: 600;
  margin-bottom: 4px;
  color: var(--text-main);
}

.glass-card .subtitle {
  font-size: 12px;
  color: var(--text-muted);
  margin-bottom: 12px;
}

/* Dashboard Layout Grids */
.manager-grid {
  display: flex;
  gap: 20px;
  width: 100%;
  flex-wrap: wrap;
}

.manager-grid > .glass-card {
  flex: 1 1 350px;
  width: 100%;
}

.workload-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 16px;
}

/* Workload Metrics & Premium Metric Pods */
.metrics-row {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(100px, 1fr));
  gap: 12px;
  padding-top: 12px;
  align-items: stretch;
}

.metric-pod {
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: var(--radius-md);
  padding: 14px 10px;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  justify-content: center;
  position: relative;
  transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
  overflow: hidden;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
  cursor: pointer;
}

.metric-pod::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: var(--accent-color);
  opacity: 0.25;
  transition: opacity 0.25s ease, height 0.25s ease;
}

.metric-pod:hover {
  transform: translateY(-3px);
  background: rgba(255, 255, 255, 0.05);
  border-color: rgba(0, 240, 255, 0.3);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.2), 0 0 12px rgba(0, 240, 255, 0.15);
}

.metric-pod:hover::before {
  opacity: 1;
  height: 4px;
}

.metric-pod.week::before { background: #818cf8; }
.metric-pod.month::before { background: var(--accent-color); }
.metric-pod.closed::before { background: var(--success-color); }
.metric-pod.total::before { background: #fbbf24; }

.metric-pod.week:hover { border-color: rgba(129, 140, 248, 0.4); box-shadow: 0 8px 24px rgba(0,0,0,0.2), 0 0 12px rgba(129, 140, 248, 0.2); }
.metric-pod.closed:hover { border-color: rgba(16, 185, 129, 0.4); box-shadow: 0 8px 24px rgba(0,0,0,0.2), 0 0 12px rgba(16, 185, 129, 0.2); }
.metric-pod.total:hover { border-color: rgba(251, 191, 36, 0.4); box-shadow: 0 8px 24px rgba(0,0,0,0.2), 0 0 12px rgba(251, 191, 36, 0.2); }

.metric-icon {
  font-size: 18px;
  margin-bottom: 8px;
  opacity: 0.7;
  transition: transform 0.25s ease, opacity 0.25s ease;
}
.metric-pod:hover .metric-icon {
  transform: scale(1.15);
  opacity: 1;
}

.metric-pod.week .metric-icon { color: #818cf8; }
.metric-pod.month .metric-icon { color: var(--accent-color); }
.metric-pod.closed .metric-icon { color: var(--success-color); }
.metric-pod.total .metric-icon { color: #fbbf24; }

.metric-pod .metric-value {
  font-size: 32px;
  font-weight: 700;
  line-height: 1.1;
  margin-bottom: 4px;
}

.metric-pod.week .metric-value {
  color: #a5b4fc;
  text-shadow: 0 0 10px rgba(129, 140, 248, 0.3);
}

.metric-pod.month .metric-value {
  color: var(--accent-color);
  text-shadow: 0 0 10px rgba(0, 240, 255, 0.3);
}

.metric-pod.closed .metric-value {
  color: var(--success-color);
  text-shadow: 0 0 10px rgba(16, 185, 129, 0.3);
}

.metric-pod.total .metric-value {
  color: #fcd34d;
  text-shadow: 0 0 10px rgba(251, 191, 36, 0.3);
}

.metric-pod .metric-label {
  font-size: 11px;
  color: var(--text-muted);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

/* High-Density Aging Buckets */
.aging-buckets {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.bucket {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 8px 12px;                          /* High Density spacing */
  border-radius: var(--radius-sm);
  background: rgba(255, 255, 255, 0.03);
  border-left: 4px solid transparent;
  cursor: pointer;
  transition: var(--transition);
}

.bucket-label {
  font-size: 13px;
  font-weight: 500;
}

.bucket-value {
  font-weight: 700;
  font-size: 13px;
}

.bucket-green { border-left-color: var(--success-color); }
.bucket-yellow { border-left-color: var(--warning-color); }
.bucket-orange { border-left-color: var(--orange-color); }
.bucket-red { border-left-color: var(--danger-color); }
.bucket-critical { border-left-color: #ef4444; }

/* High-Density Ticket Lists */
.ticket-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.ticket-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 10px 14px;                         /* High Density spacing */
  background: var(--bg-card);
  border: 1px solid var(--card-border);
  border-radius: var(--radius-sm);
  transition: var(--transition);
  cursor: default;
}

.ticket-item:hover {
  background: rgba(255, 255, 255, 0.05);
  border-color: rgba(0, 240, 255, 0.2);
}

.ticket-info {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.ticket-title {
  font-weight: 600;
  color: var(--text-main);
  font-size: 14px;
}

.ticket-meta {
  font-size: 12px;
  color: var(--text-muted);
  display: flex;
  gap: 12px;
}

.status-badge {
  padding: 3px 8px;
  border-radius: var(--radius-sm);
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.status-working {
  background: rgba(99, 102, 241, 0.15);
  color: #a5b4fc;
  border: 1px solid rgba(99, 102, 241, 0.3);
}

.status-completed {
  background: rgba(16, 185, 129, 0.15);
  color: #6ee7b7;
  border: 1px solid rgba(16, 185, 129, 0.3);
}

/* Animations */
@keyframes fadeIn {
  from { opacity: 0; transform: translateY(6px); }
  to { opacity: 1; transform: none; }
}

.dashboard-section {
  animation: fadeIn 0.2s ease-out forwards;
}

.dashboard-section + .dashboard-section {
  margin-top: 56px; /* High-fidelity comfortable breathing space between stacked dashboard sections */
}

/* Charts Layout Grid */
.charts-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 16px;
  margin-top: 16px;
}

.chart-card {
  display: flex;
  flex-direction: column;
}

.chart-container {
  position: relative;
  height: 260px;                              /* Compact height */
  width: 100%;
  margin-top: 8px;
}

/* =========================================================================
   👑 Premium Header Profile Badge
   ========================================================================= */
.header-profile-badge {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 8px 16px;
  background: rgba(10, 25, 47, 0.55);
  border: 1px solid rgba(0, 240, 255, 0.2);
  border-radius: var(--radius-md);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  box-shadow: 0 4px 15px rgba(0, 240, 255, 0.05);
  transition: var(--transition-smooth);
}

.header-profile-badge:hover {
  border-color: var(--color-primary);
  box-shadow: 0 4px 20px rgba(0, 240, 255, 0.15);
}

.header-profile-badge .user-avatar {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--color-primary), var(--color-accent-blue));
  color: #040b16;
  font-weight: 700;
  font-size: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 0 10px rgba(0, 240, 255, 0.3);
}

.header-profile-badge .user-info {
  display: flex;
  flex-direction: column;
}

.header-profile-badge .user-email {
  font-size: 13px;
  font-weight: 600;
  color: var(--color-text-main);
  max-width: 180px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.header-profile-badge .user-role {
  font-size: 11px;
  color: var(--color-primary);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.header-profile-badge .icon-btn {
  margin-left: 8px;
  padding: 6px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--border-color);
  color: var(--color-text-muted);
  width: 28px;
  height: 28px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: var(--transition-smooth);
}

.header-profile-badge .icon-btn:hover {
  background: rgba(239, 68, 68, 0.1);
  border-color: rgba(239, 68, 68, 0.3);
  color: #ef4444;
  box-shadow: 0 0 8px rgba(239, 68, 68, 0.2);
}

/* =========================================================================
   💼 Partner & Provider Directory Directory Grid & Cards
   ========================================================================= */
.providers-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 24px;
  margin-top: 20px;
}

.provider-card {
  background: var(--bg-card);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid var(--border-color);
  border-radius: 16px;
  padding: 24px;
  display: flex;
  flex-direction: column;
  gap: 16px;
  transition: var(--transition-smooth);
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.provider-card:hover {
  transform: translateY(-5px);
  border-color: rgba(255, 255, 255, 0.15);
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.2);
}

/* Internal Spotlight Card */
.provider-card.internal-partner {
  background: linear-gradient(135deg, rgba(10, 25, 47, 0.8), rgba(4, 11, 22, 0.9));
  border: 2px solid var(--color-primary);
  box-shadow: 0 0 20px rgba(0, 240, 255, 0.15);
  position: relative;
  overflow: hidden;
}

.provider-card.internal-partner::after {
  content: '';
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: linear-gradient(45deg, transparent, rgba(0, 240, 255, 0.03), transparent);
  transform: rotate(45deg);
  animation: shine 6s infinite linear;
  pointer-events: none;
}

@keyframes shine {
  0% { transform: translate(-30%, -30%) rotate(45deg); }
  100% { transform: translate(30%, 30%) rotate(45deg); }
}

.provider-card.internal-partner:hover {
  box-shadow: 0 0 30px rgba(0, 240, 255, 0.25);
  border-color: var(--color-primary);
}

.provider-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
}

.provider-title-group h3 {
  font-size: 18px;
  font-weight: 700;
  color: #fff;
  margin-bottom: 4px;
}

.provider-badge {
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  padding: 4px 10px;
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.05);
  color: var(--color-text-muted);
  border: 1px solid var(--border-color);
}

.provider-card.internal-partner .provider-badge {
  background: rgba(0, 240, 255, 0.1);
  color: var(--color-primary);
  border-color: rgba(0, 240, 255, 0.3);
  box-shadow: 0 0 8px rgba(0, 240, 255, 0.15);
}

.provider-description {
  font-size: 13px;
  line-height: 1.5;
  color: var(--color-text-muted);
}

.provider-contacts {
  display: flex;
  flex-direction: column;
  gap: 8px;
  border-top: 1px solid rgba(255, 255, 255, 0.05);
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
  padding: 12px 0;
}

.contact-item {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 13px;
  color: var(--color-text-main);
}

.contact-item svg {
  color: var(--color-primary);
  flex-shrink: 0;
}

.provider-services h4 {
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: var(--color-primary);
  margin-bottom: 8px;
}

.services-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.services-list li {
  font-size: 12px;
  color: var(--color-text-muted);
  display: flex;
  align-items: center;
  gap: 8px;
}

.services-list li::before {
  content: "•";
  color: var(--color-primary);
  font-weight: bold;
}

/* =========================================================================
   📈 Interactive Aging Cards & Buckets
   ========================================================================= */
.bucket {
  cursor: pointer;
  transition: var(--transition-smooth);
  border: 1px solid transparent;
}

.bucket:hover {
  transform: translateY(-2px);
  background: rgba(255, 255, 255, 0.06);
  border-color: rgba(255, 255, 255, 0.05);
  box-shadow: 0 4px 10px rgba(0,0,0,0.15);
}

.bucket.active-filter {
  background: rgba(0, 240, 255, 0.08) !important;
  border-left-width: 8px !important;
  border-color: rgba(0, 240, 255, 0.3) !important;
  box-shadow: 0 0 15px rgba(0, 240, 255, 0.15);
}

.bucket-green.active-filter { border-left-color: var(--success-color) !important; box-shadow: 0 0 15px rgba(16, 185, 129, 0.2); }
.bucket-yellow.active-filter { border-left-color: var(--warning-color) !important; box-shadow: 0 0 15px rgba(245, 158, 11, 0.2); }
.bucket-orange.active-filter { border-left-color: var(--orange-color) !important; box-shadow: 0 0 15px rgba(249, 115, 22, 0.2); }
.bucket-red.active-filter { border-left-color: var(--danger-color) !important; box-shadow: 0 0 15px rgba(239, 68, 68, 0.2); }
.bucket-critical.active-filter { border-left-color: #991b1b !important; box-shadow: 0 0 15px rgba(153, 27, 27, 0.2); }

/* =========================================================================
   🚩 Dashboard Active Filter Banner
   ========================================================================= */
.filter-banner {
  animation: slideInDown 0.3s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

@keyframes slideInDown {
  from { opacity: 0; transform: translateY(-10px); }
  to { opacity: 1; transform: none; }
}

.pulse-indicator {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background-color: var(--color-primary);
  box-shadow: 0 0 0 0 rgba(0, 240, 255, 0.7);
  animation: pulse 1.5s infinite;
}

@keyframes pulse {
  0% {
    transform: scale(0.95);
    box-shadow: 0 0 0 0 rgba(0, 240, 255, 0.7);
  }
  70% {
    transform: scale(1);
    box-shadow: 0 0 0 6px rgba(0, 240, 255, 0);
  }
  100% {
    transform: scale(0.95);
    box-shadow: 0 0 0 0 rgba(0, 240, 255, 0);
  }
}

/* =========================================================================
   📊 Overall Team Summary Status Distribution Breakdown
   ========================================================================= */
.summary-card {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 1.5rem;
}

.status-distribution {
  margin-top: auto;
  padding-top: 1.5rem;
  border-top: 1px solid var(--card-border);
}

.status-distribution h4 {
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--text-muted);
  margin-bottom: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.distribution-bar {
  display: flex;
  height: 12px;
  background: rgba(0, 0, 0, 0.3);
  border-radius: 999px;
  overflow: hidden;
  margin-bottom: 1rem;
  border: 1px solid var(--card-border);
  box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.2);
}

.dist-segment {
  height: 100%;
  transition: width 0.8s cubic-bezier(0.16, 1, 0.3, 1);
  position: relative;
}

.dist-new {
  background: linear-gradient(90deg, #6366f1, #818cf8);
  box-shadow: 0 0 12px rgba(129, 140, 248, 0.4);
}

.dist-working {
  background: linear-gradient(90deg, #f59e0b, #fbbf24);
  box-shadow: 0 0 12px rgba(251, 191, 36, 0.4);
}

.dist-completed {
  background: linear-gradient(90deg, #10b981, #34d399);
  box-shadow: 0 0 12px rgba(52, 211, 153, 0.4);
}

.distribution-legend {
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.legend-item {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.legend-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  flex-shrink: 0;
}

.legend-new {
  background-color: #818cf8;
  box-shadow: 0 0 8px #818cf8;
}

.legend-working {
  background-color: #fbbf24;
  box-shadow: 0 0 8px #fbbf24;
}

.legend-completed {
  background-color: #34d399;
  box-shadow: 0 0 8px #34d399;
}

.legend-text {
  font-size: 0.75rem;
  font-weight: 500;
  color: var(--text-muted);
}

.legend-text span {
  color: var(--text-main);
  font-weight: 600;
}

/* Section Header alignment for titles with action buttons */
.section-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 16px;
  margin-top: 2rem;
}

/* =========================================================================
   ⚡ Clickable Metrics & Cards Interactive Highlights
   ========================================================================= */
.clickable-metric {
  cursor: pointer !important;
  transition: transform 0.2s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.2s ease, border-color 0.2s ease !important;
  position: relative;
}

.clickable-metric:hover {
  transform: translateY(-3px) scale(1.02);
  box-shadow: 0 8px 24px rgba(0, 240, 255, 0.15) !important;
  border-color: rgba(0, 240, 255, 0.3) !important;
}

.clickable-metric::after {
  content: "🔍 Click to filter";
  position: absolute;
  bottom: -22px;
  left: 50%;
  transform: translateX(-50%) translateY(5px);
  font-size: 10px;
  font-weight: 500;
  color: #00f0ff;
  background: rgba(0, 0, 0, 0.85);
  padding: 2px 8px;
  border-radius: 4px;
  border: 1px solid rgba(0, 240, 255, 0.2);
  white-space: nowrap;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.2s ease, transform 0.2s ease;
  z-index: 10;
}

.clickable-metric:hover::after {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}

.clickable-metric.active-filter {
  background: rgba(0, 240, 255, 0.08) !important;
  border-color: #00f0ff !important;
  box-shadow: 0 0 20px rgba(0, 240, 255, 0.35) !important;
}

/* Specific highlight for active workload grid cards */
.workload-grid .glass-card {
  cursor: pointer;
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}
.workload-grid .glass-card:hover {
  transform: translateY(-2px);
  border-color: rgba(0, 240, 255, 0.25);
  box-shadow: 0 6px 16px rgba(0, 240, 255, 0.1);
}
.workload-grid .glass-card.active-filter {
  background: rgba(0, 240, 255, 0.08) !important;
  border-color: #00f0ff !important;
  box-shadow: 0 0 20px rgba(0, 240, 255, 0.3) !important;
}

/* =========================================================================
   📰 Community Noticeboard / Info & Happenings Styles
   ========================================================================= */
.noticeboard-section {
  margin-top: 24px;
  animation: fadeIn 0.4s ease forwards;
}

.notice-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 20px;
  margin-top: 16px;
}

.notice-card {
  background: rgba(13, 27, 42, 0.4) !important;
  border: 1px solid var(--border-color) !important;
  border-radius: 12px;
  padding: 20px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 16px;
  min-height: 220px;
  transition: transform 0.2s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.2s ease, border-color 0.2s ease;
  position: relative;
  overflow: hidden;
}

.notice-card:hover {
  transform: translateY(-3px);
  border-color: rgba(0, 240, 255, 0.2) !important;
  box-shadow: 0 8px 24px rgba(0, 240, 255, 0.08);
}

.notice-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 4px;
  height: 100%;
}

.notice-card.cat-Seminar::before { background-color: #00f0ff; }
.notice-card.cat-Event::before { background-color: var(--success-color); }
.notice-card.cat-Announcement::before { background-color: var(--danger-color); }
.notice-card.cat-Info::before { background-color: var(--warning-color); }

.notice-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 10px;
}

.notice-title {
  font-size: 16px;
  font-weight: 600;
  color: var(--text-color);
  margin: 0;
  line-height: 1.4;
}

.notice-category-badge {
  font-size: 11px;
  font-weight: 600;
  padding: 4px 10px;
  border-radius: 20px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  white-space: nowrap;
}

.cat-Seminar .notice-category-badge { background: rgba(0, 240, 255, 0.1); color: #00f0ff; }
.cat-Event .notice-category-badge { background: rgba(16, 185, 129, 0.1); color: var(--success-color); }
.cat-Announcement .notice-category-badge { background: rgba(239, 68, 68, 0.1); color: var(--danger-color); }
.cat-Info .notice-category-badge { background: rgba(245, 158, 11, 0.1); color: var(--warning-color); }

.notice-body {
  font-size: 13.5px;
  color: var(--text-muted);
  line-height: 1.5;
  margin: 0;
  flex-grow: 1;
  white-space: pre-wrap;
}

.notice-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-top: 1px solid var(--border-color);
  padding-top: 12px;
  margin-top: 4px;
  font-size: 11.5px;
  color: var(--text-muted);
}

.notice-author {
  display: flex;
  align-items: center;
  gap: 6px;
}

.notice-avatar {
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: #00f0ff;
  color: #0b132b;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: bold;
  font-size: 10px;
}

/* Noticeboard Filters / Pills */
.category-pills .pill {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--border-color);
  color: var(--text-muted);
  padding: 6px 14px;
  border-radius: 20px;
  font-size: 12.5px;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.2s ease;
}

.category-pills .pill:hover {
  background: rgba(255, 255, 255, 0.08);
  color: var(--text-color);
  border-color: rgba(255, 255, 255, 0.2);
}

.category-pills .pill.active {
  background: #00f0ff !important;
  color: #0b132b !important;
  border-color: #00f0ff !important;
  font-weight: 600;
  box-shadow: 0 0 10px rgba(0, 240, 255, 0.3);
}

.loading-state {
  grid-column: 1 / -1;
  text-align: center;
  padding: 40px;
  color: var(--text-muted);
  font-size: 14px;
  border: 1px dashed var(--border-color);
  border-radius: 12px;
  background: rgba(255,255,255,0.01);
}

.sla-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
  width: 100%;
}

@media (max-width: 1200px) {
  .sla-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 640px) {
  .sla-grid {
    grid-template-columns: 1fr;
  }
}

.sla-card {
  background: var(--bg-card);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid var(--card-border);
  border-radius: var(--radius-md);
  padding: 20px 16px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  position: relative;
  overflow: hidden;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
  cursor: pointer;
}

.sla-card:active {
  transform: translateY(-2px) scale(0.98);
}

.sla-card-icon {
  margin-bottom: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid rgba(255, 255, 255, 0.05);
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.sla-card:hover .sla-card-icon {
  transform: scale(1.1) rotate(5deg);
  background: rgba(255, 255, 255, 0.06);
}

/* Specific glows for icons matching the metric themes */
.card-received .sla-card-icon {
  color: #a5b4fc;
  filter: drop-shadow(0 0 8px rgba(129, 140, 248, 0.45));
  border-color: rgba(129, 140, 248, 0.25);
}
.card-unresolved .sla-card-icon {
  color: #fcd34d;
  filter: drop-shadow(0 0 8px rgba(251, 191, 36, 0.45));
  border-color: rgba(251, 191, 36, 0.25);
}
.card-resolved .sla-card-icon {
  color: #6ee7b7;
  filter: drop-shadow(0 0 8px rgba(16, 185, 129, 0.45));
  border-color: rgba(16, 185, 129, 0.25);
}
.card-fcr .sla-card-icon {
  color: #00f0ff;
  filter: drop-shadow(0 0 8px rgba(0, 240, 255, 0.5));
  border-color: rgba(0, 240, 255, 0.25);
}
.card-res-compliance .sla-card-icon {
  color: #34d399;
  filter: drop-shadow(0 0 8px rgba(52, 211, 153, 0.45));
  border-color: rgba(52, 211, 153, 0.25);
}
.card-res-time .sla-card-icon {
  color: #f472b6;
  filter: drop-shadow(0 0 8px rgba(244, 114, 182, 0.45));
  border-color: rgba(244, 114, 182, 0.25);
}
.card-resp-compliance .sla-card-icon {
  color: #818cf8;
  filter: drop-shadow(0 0 8px rgba(129, 140, 248, 0.45));
  border-color: rgba(129, 140, 248, 0.25);
}
.card-resp-time .sla-card-icon {
  color: #c084fc;
  filter: drop-shadow(0 0 8px rgba(192, 132, 252, 0.45));
  border-color: rgba(192, 132, 252, 0.25);
}

.sla-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--accent-color), transparent);
  opacity: 0.3;
  transition: opacity 0.3s ease;
}

.sla-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.4);
}

.sla-card:hover::before {
  opacity: 0.8;
}

.sla-card-title {
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.8px;
  color: #cbd5e1;
  margin-bottom: 12px;
  opacity: 1;
}

.sla-card-value {
  font-size: 32px;
  font-weight: 700;
  line-height: 1;
}

/* Specific Card Themes & Glowing Effects */
.card-received .sla-card-value {
  color: #a5b4fc;
  text-shadow: 0 0 12px rgba(129, 140, 248, 0.45);
}
.card-received::before {
  background: linear-gradient(90deg, transparent, #818cf8, transparent);
}
.card-received:hover {
  border-color: rgba(129, 140, 248, 0.4);
  box-shadow: 0 12px 30px rgba(0,0,0,0.4), 0 0 15px rgba(129, 140, 248, 0.15);
}

.card-unresolved .sla-card-value {
  color: #fcd34d;
  text-shadow: 0 0 12px rgba(251, 191, 36, 0.45);
}
.card-unresolved::before {
  background: linear-gradient(90deg, transparent, #fbbf24, transparent);
}
.card-unresolved:hover {
  border-color: rgba(251, 191, 36, 0.4);
  box-shadow: 0 12px 30px rgba(0,0,0,0.4), 0 0 15px rgba(251, 191, 36, 0.15);
}

.card-resolved .sla-card-value {
  color: #6ee7b7;
  text-shadow: 0 0 12px rgba(16, 185, 129, 0.45);
}
.card-resolved::before {
  background: linear-gradient(90deg, transparent, #10b981, transparent);
}
.card-resolved:hover {
  border-color: rgba(16, 185, 129, 0.4);
  box-shadow: 0 12px 30px rgba(0,0,0,0.4), 0 0 15px rgba(16, 185, 129, 0.15);
}

.card-fcr .sla-card-value {
  color: #00f0ff;
  text-shadow: 0 0 12px rgba(0, 240, 255, 0.5);
}
.card-fcr::before {
  background: linear-gradient(90deg, transparent, #00f0ff, transparent);
}
.card-fcr:hover {
  border-color: rgba(0, 240, 255, 0.4);
  box-shadow: 0 12px 30px rgba(0,0,0,0.4), 0 0 15px rgba(0, 240, 255, 0.15);
}

.card-res-compliance .sla-card-value {
  color: #34d399;
  text-shadow: 0 0 12px rgba(52, 211, 153, 0.45);
}
.card-res-compliance::before {
  background: linear-gradient(90deg, transparent, #34d399, transparent);
}
.card-res-compliance:hover {
  border-color: rgba(52, 211, 153, 0.4);
  box-shadow: 0 12px 30px rgba(0,0,0,0.4), 0 0 15px rgba(52, 211, 153, 0.15);
}

.card-res-time .sla-card-value {
  color: #f472b6;
  text-shadow: 0 0 12px rgba(244, 114, 182, 0.45);
}
.card-res-time::before {
  background: linear-gradient(90deg, transparent, #f472b6, transparent);
}
.card-res-time:hover {
  border-color: rgba(244, 114, 182, 0.4);
  box-shadow: 0 12px 30px rgba(0,0,0,0.4), 0 0 15px rgba(244, 114, 182, 0.15);
}

.card-resp-compliance .sla-card-value {
  color: #818cf8;
  text-shadow: 0 0 12px rgba(129, 140, 248, 0.45);
}
.card-resp-compliance::before {
  background: linear-gradient(90deg, transparent, #818cf8, transparent);
}
.card-resp-compliance:hover {
  border-color: rgba(129, 140, 248, 0.4);
  box-shadow: 0 12px 30px rgba(0,0,0,0.4), 0 0 15px rgba(129, 140, 248, 0.15);
}

.card-resp-time .sla-card-value {
  color: #c084fc;
  text-shadow: 0 0 12px rgba(192, 132, 252, 0.45);
}
.card-resp-time::before {
  background: linear-gradient(90deg, transparent, #c084fc, transparent);
}
.card-resp-time:hover {
  border-color: rgba(192, 132, 252, 0.4);
  box-shadow: 0 12px 30px rgba(0,0,0,0.4), 0 0 15px rgba(192, 132, 252, 0.15);
}

/* Legend Item and Clickable Metric Polish */
.legend-item.clickable-metric {
  cursor: pointer;
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
  border: 1px solid transparent;
  user-select: none;
}
.legend-item.clickable-metric:hover {
  background: rgba(255, 255, 255, 0.06) !important;
  border-color: rgba(255, 255, 255, 0.12) !important;
  transform: translateY(-1.5px);
}
.legend-item.clickable-metric:active {
  transform: translateY(0) scale(0.97);
}

/* ==========================================================================
   ✨ Gamuda IT Training Desk Expansion Styles (Leadership Review, Templates, Q&A)
   ========================================================================== */

/* 🚨 Requires Leadership Review Status Support */
.status-leadership {
  background: rgba(239, 68, 68, 0.12) !important;
  color: #fca5a5 !important;
  border: 1px solid rgba(239, 68, 68, 0.25) !important;
  box-shadow: 0 0 12px rgba(239, 68, 68, 0.18) !important;
}
.status-leadership .status-indicator {
  background: #fca5a5 !important;
  box-shadow: 0 0 6px #fca5a5 !important;
}

/* ✍️ Response Template Chips & AI Generator */
.btn-template-chip {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: var(--color-text-muted);
  border-radius: 20px;
  padding: 5px 14px;
  font-size: 11px;
  font-weight: 500;
  cursor: pointer;
  transition: var(--transition-smooth);
}
.btn-template-chip:hover {
  background: rgba(0, 240, 255, 0.12);
  border-color: var(--color-primary);
  color: #fff;
  transform: translateY(-1px);
  box-shadow: 0 4px 10px rgba(0, 240, 255, 0.1);
}
.btn-template-chip:active {
  transform: translateY(0);
}

#btn-ai-draft-trigger {
  box-shadow: 0 0 10px rgba(0, 240, 255, 0.2);
  transition: var(--transition-smooth);
}
#btn-ai-draft-trigger:hover {
  transform: translateY(-1.5px);
  box-shadow: 0 0 18px rgba(0, 240, 255, 0.45);
}
#btn-ai-draft-trigger:active {
  transform: translateY(0);
}

/* 🔍 Search Input Focus Glow */
#article-search-input:focus {
  border-color: var(--color-primary) !important;
  box-shadow: 0 0 12px rgba(0, 240, 255, 0.2) !important;
}

/* 🏷️ Glassmorphic Filter Chips */
.filter-chips .chip {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.08);
  color: var(--color-text-muted);
  border-radius: 20px;
  padding: 6px 16px;
  font-size: 12px;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.2s ease-in-out;
  user-select: none;
}
.filter-chips .chip:hover {
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(255, 255, 255, 0.15);
  color: #fff;
  transform: translateY(-1px);
}
.filter-chips .chip.active {
  background: rgba(0, 240, 255, 0.15) !important;
  border-color: var(--color-primary) !important;
  color: var(--color-primary) !important;
  box-shadow: 0 0 10px rgba(0, 240, 255, 0.15);
}

/* 🚦 High Contrast Stepper Stage Pills */
.stage-step-pill {
  transition: transform 0.2s cubic-bezier(0.4, 0, 0.2, 1), box-shadow 0.2s ease;
  user-select: none;
}
.stage-step-pill:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.5);
  z-index: 2;
}

/* 🎴 Q&A & Articles Grid & Cards */
.articles-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(340px, 1fr));
  gap: 20px;
  margin-top: 10px;
}

.article-card {
  position: relative;
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: 12px;
  padding: 22px;
  backdrop-filter: blur(20px);
  display: flex;
  flex-direction: column;
  gap: 14px;
  transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
  overflow: hidden;
}

.article-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0; height: 3px;
  background: linear-gradient(90deg, transparent, var(--color-primary), transparent);
  opacity: 0;
  transition: opacity 0.2s ease;
}

.article-card:hover {
  transform: translateY(-4px);
  border-color: rgba(0, 240, 255, 0.35);
  box-shadow: 0 15px 35px rgba(0, 0, 0, 0.45), 0 0 15px rgba(0, 240, 255, 0.12);
}

.article-card:hover::before {
  opacity: 1;
}

.article-card-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 12px;
}

.article-card-title {
  font-size: 15px;
  font-weight: 600;
  color: var(--color-text-main);
  margin: 0;
  line-height: 1.4;
}

.article-card-meta {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 11px;
  color: var(--color-text-dark);
}

.article-card-body {
  font-size: 13px;
  color: var(--color-text-muted);
  line-height: 1.5;
  margin: 0;
  white-space: pre-wrap;
}

.article-card-answer {
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid rgba(255, 255, 255, 0.05);
  border-radius: 8px;
  padding: 12px 14px;
  margin-top: 4px;
}

.article-card-answer-title {
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: var(--color-primary);
  font-weight: 700;
  margin-bottom: 6px;
  display: flex;
  align-items: center;
  gap: 6px;
}

.article-card-answer-text {
  font-size: 13px;
  color: var(--color-text-main);
  line-height: 1.5;
  margin: 0;
  white-space: pre-wrap;
}

.article-card-footer {
  margin-top: auto;
  padding-top: 12px;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
  display: flex;
  justify-content: space-between;
  align-items: center;
}

/* 🏷️ Badges & Indicators */
.badge-category {
  font-size: 10px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  padding: 2px 8px;
  border-radius: 4px;
  background: rgba(56, 189, 248, 0.1);
  color: var(--color-accent-blue);
  border: 1px solid rgba(56, 189, 248, 0.2);
}

.badge-status {
  font-size: 10px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  padding: 2px 8px;
  border-radius: 4px;
  display: inline-flex;
  align-items: center;
}

.badge-status.status-pending {
  background: rgba(245, 158, 11, 0.1);
  color: #fcd34d;
  border: 1px solid rgba(245, 158, 11, 0.2);
}

.badge-status.status-answered {
  background: rgba(16, 185, 129, 0.1);
  color: #6ee7b7;
  border: 1px solid rgba(16, 185, 129, 0.2);
}

/* =========================================================================
     🛡️ Auditor Compliance Hub & Document Previewer Styles
     ========================================================================= */

#auditor-container {
  animation: fadeIn 0.3s ease-in-out;
}

.taxonomy-folder-container {
  margin-bottom: 12px;
  border-radius: 8px;
  overflow: hidden;
  background: rgba(15, 23, 42, 0.3);
  border: 1px solid rgba(255, 255, 255, 0.05);
}

.taxonomy-folder-header {
  user-select: none;
  background: rgba(30, 41, 59, 0.45);
  border: 1px solid rgba(255, 255, 255, 0.06);
}

.taxonomy-folder-header:hover {
  background: rgba(30, 41, 59, 0.7);
  border-color: rgba(0, 240, 255, 0.3);
  box-shadow: 0 0 10px rgba(0, 240, 255, 0.1);
}

.taxonomy-folder-content {
  transition: max-height 0.3s cubic-bezier(0.4, 0, 0.2, 1), padding 0.3s ease;
  overflow: hidden;
}

.audit-file-item {
  transition: all 0.2s ease;
}

.audit-file-item:hover {
  background: rgba(255, 255, 255, 0.05) !important;
  border-color: rgba(0, 240, 255, 0.2) !important;
  transform: translateX(4px);
}

/* Simulated A4 Audit Document */
#preview-sheet {
  background: #ffffff;
  color: #0f172a;
  box-shadow: 0 10px 30px rgba(0,0,0,0.15);
  border: 1px solid #cbd5e1;
  position: relative;
  font-family: 'Open Sans', system-ui, sans-serif;
  line-height: 1.5;
}

/* Watermark Seal */
.preview-watermark {
  position: absolute;
  top: 40px;
  right: 40px;
  border: 3px double #ef4444;
  color: #ef4444;
  font-size: 11px;
  font-weight: 800;
  padding: 6px 14px;
  border-radius: 4px;
  transform: rotate(-12deg);
  text-transform: uppercase;
  letter-spacing: 0.12em;
  opacity: 0.75;
  background: rgba(255, 255, 255, 0.9);
  box-shadow: 0 4px 10px rgba(239, 68, 68, 0.1);
  pointer-events: none;
  font-family: 'Courier New', Courier, monospace;
}

.preview-watermark-verified {
  border-color: #10b981;
  color: #10b981;
  box-shadow: 0 4px 10px rgba(16, 185, 129, 0.1);
}

.preview-watermark-pending {
  border-color: #f59e0b;
  color: #f59e0b;
  box-shadow: 0 4px 10px rgba(245, 158, 11, 0.1);
}

.preview-watermark-secure {
  border-color: #3b82f6;
  color: #3b82f6;
  box-shadow: 0 4px 10px rgba(59, 130, 246, 0.1);
}

/* Beautiful A4 Letterhead and Corporate Elements */
.preview-letterhead {
  border-bottom: 2px solid #0f172a;
  padding-bottom: 15px;
  margin-bottom: 25px;
}

.preview-letterhead h1 {
  font-size: 20px;
  font-weight: 800;
  letter-spacing: -0.5px;
  text-transform: uppercase;
  color: #0f172a;
  margin: 0 0 4px 0;
}

.preview-letterhead p {
  font-size: 11px;
  color: #64748b;
  margin: 0;
}

.preview-grid-2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
  margin-bottom: 25px;
}

.preview-meta-label {
  font-size: 10px;
  color: #64748b;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  font-weight: 600;
  display: block;
  margin-bottom: 2px;
}

.preview-meta-value {
  font-size: 13px;
  font-weight: 500;
  color: #0f172a;
}

/* Document Table Styles */
.preview-table {
  width: 100%;
  border-collapse: collapse;
  margin: 25px 0;
}

.preview-table th {
  background: #f1f5f9;
  border-bottom: 1px solid #cbd5e1;
  padding: 8px 12px;
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: #334155;
  text-align: left;
}

.preview-table td {
  padding: 10px 12px;
  border-bottom: 1px solid #f1f5f9;
  font-size: 12px;
  color: #334155;
}

.preview-table tr:last-child td {
  border-bottom: 2px solid #cbd5e1;
}

.preview-total-row {
  font-weight: 700;
  background: #f8fafc;
}

.preview-total-row td {
  border-top: 1px solid #cbd5e1;
  color: #0f172a;
}

/* Sign-off Block */
.preview-signoff-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  margin-top: 40px;
}

.preview-signature-line {
  border-bottom: 1px solid #94a3b8;
  height: 40px;
  margin-bottom: 8px;
  position: relative;
}

.preview-signature-text {
  font-size: 11px;
  color: #64748b;
}

/* Chart/Bar representation inside previews */
.preview-eval-rating {
  font-size: 32px;
  font-weight: 800;
  color: #10b981;
  display: flex;
  align-items: baseline;
  gap: 4px;
}

.preview-eval-bar {
  height: 10px;
  background: #e2e8f0;
  border-radius: 5px;
  overflow: hidden;
  margin-bottom: 12px;
}

.preview-eval-fill {
  height: 100%;
  background: #10b981;
  border-radius: 5px;
}

/* --- askITtrainer Calendar View --- */
.calendar-day-cell {
  background: rgba(15, 23, 42, 0.45);
  border: 1px solid rgba(255,255,255,0.03);
  padding: 8px;
  min-height: 90px;
  display: flex;
  flex-direction: column;
  transition: var(--transition-smooth);
  min-width: 0;
  overflow: hidden;
}
.calendar-day-cell:hover {
  background: rgba(0, 240, 255, 0.05);
  border-color: rgba(0, 240, 255, 0.2);
}
.calendar-day-cell.other-month {
  opacity: 0.35;
}
.calendar-day-cell.today {
  border: 1.5px solid var(--color-primary);
  background: rgba(0, 240, 255, 0.03);
  box-shadow: inset 0 0 10px rgba(0, 240, 255, 0.1);
}
.calendar-day-number {
  font-size: 11px;
  font-weight: 700;
  color: var(--color-text-dark);
  margin-bottom: 6px;
  align-self: flex-end;
}
.calendar-day-cell.today .calendar-day-number {
  color: var(--color-primary);
  text-shadow: 0 0 6px rgba(0,240,255,0.6);
}
.calendar-event-pill {
  font-size: 10px;
  font-weight: 600;
  padding: 3px 6px;
  border-radius: 4px;
  margin-bottom: 4px;
  color: #fff;
  cursor: pointer;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  border-left: 3px solid transparent;
  transition: transform 0.1s ease;
}
.calendar-event-pill:hover {
  transform: translateY(-1px);
  filter: brightness(1.2);
}

/* Minimalist Light Theme Calendar and Modal Overrides */
body.theme-minimalist-light #calendar-event-modal .modal-content {
  background: #ffffff !important;
  border: 1px solid #cbd5e1 !important;
  box-shadow: 0 20px 50px rgba(15, 23, 42, 0.08) !important;
}

body.theme-minimalist-light #calendar-event-modal h4 {
  color: #0f172a !important;
}

body.theme-minimalist-light #calendar-event-modal label {
  color: #475569 !important;
}

body.theme-minimalist-light #calendar-event-modal input,
body.theme-minimalist-light #calendar-event-modal textarea {
  background: #f8fafc !important;
  border: 1px solid #cbd5e1 !important;
  color: #0f172a !important;
}

body.theme-minimalist-light #calendar-event-modal #cancel-calendar-event-btn {
  background: #f1f5f9 !important;
  color: #475569 !important;
  border: 1px solid #cbd5e1 !important;
}

body.theme-minimalist-light #calendar-event-modal #cancel-calendar-event-btn:hover {
  background: #e2e8f0 !important;
}

body.theme-minimalist-light #calendar-event-modal #close-calendar-modal-btn {
  background: #f1f5f9 !important;
  color: #475569 !important;
  border: 1px solid #cbd5e1 !important;
}

body.theme-minimalist-light #calendar-event-modal #close-calendar-modal-btn:hover {
  background: #e2e8f0 !important;
}

body.theme-minimalist-light .calendar-day-cell {
  background: rgba(255,255,255,0.7) !important;
  border-color: rgba(15, 23, 42, 0.05) !important;
}

body.theme-minimalist-light .calendar-day-cell:hover {
  background: #ffffff !important;
}

body.theme-minimalist-light .calendar-day-cell.today {
  border: 1.5px solid #4f46e5 !important;
  background: rgba(79, 70, 229, 0.04) !important;
}

body.theme-minimalist-light .calendar-day-cell.today .calendar-day-number {
  color: #4f46e5 !important;
  text-shadow: none !important;
}


/* =========================================================================
   🍃 Comfy Eyecare Reading Mode Styles for eLearning Planner
   ========================================================================= */

#elearning-container.comfy-mode {
  --comfy-card-bg: rgba(22, 28, 45, 0.95);
  --comfy-card-border: rgba(148, 163, 184, 0.12);
  --comfy-text-main: #e2e8f0;
  --comfy-text-muted: #94a3b8;
  --comfy-accent: #38bdf8;
  --comfy-success: #34d399;
  --comfy-warning: #fcd34d;
}

#elearning-container.comfy-mode,
#elearning-container.comfy-mode .glass-card,
#elearning-container.comfy-mode .elearning-project-row {
  background: var(--comfy-card-bg) !important;
  border: 1px solid var(--comfy-card-border) !important;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.25) !important;
  color: var(--comfy-text-main) !important;
  text-shadow: none !important;
}

#elearning-container.comfy-mode .pulse-indicator {
  animation: none !important;
  box-shadow: none !important;
  background: #34d399 !important;
}

#elearning-container.comfy-mode h2,
#elearning-container.comfy-mode h3,
#elearning-container.comfy-mode h4,
#elearning-container.comfy-mode strong {
  color: #f8fafc !important;
  text-shadow: none !important;
}

#elearning-container.comfy-mode p,
#elearning-container.comfy-mode .subtitle,
#elearning-container.comfy-mode span:not(.status-pill):not(.status-indicator) {
  color: var(--comfy-text-muted) !important;
}

#elearning-container.comfy-mode .btn:not(.btn-primary) {
  background: rgba(148, 163, 184, 0.1) !important;
  border: 1px solid rgba(148, 163, 184, 0.2) !important;
  color: var(--comfy-text-main) !important;
  box-shadow: none !important;
  text-shadow: none !important;
}

#elearning-container.comfy-mode .btn-primary {
  background: linear-gradient(135deg, #0284c7, #4f46e5) !important;
  box-shadow: none !important;
  border: none !important;
}


/* ==========================================================================
   💎 PREMIUM UI/UX SENIOR CRITIC IMPROVEMENTS & TOKENS
   ========================================================================== */

/* --- Premium Typography Overrides --- */
html, body {
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}

body, p, label, select, input, textarea, table, td, th, .btn {
  font-family: var(--font-sans), 'Open Sans', sans-serif !important;
}

h1, h2, h3, h4, h5, h6, .brand-text, .logo-text, .section-header {
  font-family: var(--font-display), 'Open Sans', sans-serif !important;
  font-weight: 700 !important;
  letter-spacing: -0.01em !important;
}

/* --- Translucent Sleek Scrollbars --- */
::-webkit-scrollbar {
  width: 6px !important;
  height: 6px !important;
}
::-webkit-scrollbar-track {
  background: rgba(0, 0, 0, 0.15) !important;
}
::-webkit-scrollbar-thumb {
  background: rgba(255, 255, 255, 0.12) !important;
  border-radius: var(--radius-sm, 8px) !important;
  transition: var(--transition-premium, all 0.3s cubic-bezier(0.16, 1, 0.3, 1)) !important;
}
::-webkit-scrollbar-thumb:hover {
  background: var(--color-primary, #00f0ff) !important;
}

/* --- Modern Hover Transitions & Micro-Interactions --- */
.glass-card, .btn, .nav-item, .pipeline-table tr {
  transition: var(--transition-premium, all 0.3s cubic-bezier(0.16, 1, 0.3, 1)) !important;
}

.glass-card:hover {
  transform: translateY(-4px) !important;
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.3), inset 0 0 1px rgba(255, 255, 255, 0.2) !important;
  border-color: rgba(255, 255, 255, 0.15) !important;
}

/* Smooth Custom Focus Outline */
.form-control:focus, select:focus, input:focus, textarea:focus {
  outline: none !important;
  box-shadow: var(--shadow-focus, 0 0 0 3px rgba(0, 240, 255, 0.25)) !important;
  border-color: var(--color-primary, #00f0ff) !important;
}

/* --- Pulsing Skeleton Loader Animation --- */
@keyframes shimmer {
  0% { background-position: -200% 0; }
  100% { background-position: 200% 0; }
}

.skeleton-shimmer {
  background: linear-gradient(90deg, 
    rgba(255,255,255,0.03) 25%, 
    rgba(255,255,255,0.09) 37%, 
    rgba(255,255,255,0.03) 63%
  ) !important;
  background-size: 200% 100% !important;
  animation: shimmer 1.5s infinite linear !important;
  border-radius: var(--radius-sm, 8px) !important;
  display: inline-block !important;
}

/* --- Fluid Responsive Grids --- */
.grid-responsive-3-2 {
  display: grid !important;
  grid-template-columns: 3fr 2fr !important;
  gap: var(--space-lg, 24px) !important;
}

.grid-responsive-auto-fit {
  display: grid !important;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)) !important;
  gap: var(--space-md, 16px) !important;
}

@media (max-width: 1024px) {
  .grid-responsive-3-2 {
    grid-template-columns: 1fr !important;
  }
}


/* --- SLA Inquiry Cluster Cards (Unified) --- */
.card-inbox-total .sla-card-icon {
  color: #00f0ff !important;
  filter: drop-shadow(0 0 8px rgba(0, 240, 255, 0.45)) !important;
  border-color: rgba(0, 240, 255, 0.25) !important;
}
.card-inbox-total .sla-card-value {
  color: #00f0ff !important;
  text-shadow: 0 0 12px rgba(0, 240, 255, 0.45) !important;
}
.card-inbox-total::before {
  background: linear-gradient(90deg, transparent, #00f0ff, transparent) !important;
}
.card-inbox-total:hover {
  border-color: rgba(0, 240, 255, 0.4) !important;
  box-shadow: 0 12px 30px rgba(0,0,0,0.4), 0 0 15px rgba(0, 240, 255, 0.15) !important;
}

.card-inbox-unassigned .sla-card-icon {
  color: #f87171 !important;
  filter: drop-shadow(0 0 8px rgba(248, 113, 113, 0.45)) !important;
  border-color: rgba(248, 113, 113, 0.25) !important;
}
.card-inbox-unassigned .sla-card-value {
  color: #f87171 !important;
  text-shadow: 0 0 12px rgba(248, 113, 113, 0.45) !important;
}
.card-inbox-unassigned::before {
  background: linear-gradient(90deg, transparent, #f87171, transparent) !important;
}
.card-inbox-unassigned:hover {
  border-color: rgba(248, 113, 113, 0.4) !important;
  box-shadow: 0 12px 30px rgba(0,0,0,0.4), 0 0 15px rgba(248, 113, 113, 0.15) !important;
}

.card-inbox-progress .sla-card-icon {
  color: #fbbf24 !important;
  filter: drop-shadow(0 0 8px rgba(251, 191, 36, 0.45)) !important;
  border-color: rgba(251, 191, 36, 0.25) !important;
}
.card-inbox-progress .sla-card-value {
  color: #fbbf24 !important;
  text-shadow: 0 0 12px rgba(251, 191, 36, 0.45) !important;
}
.card-inbox-progress::before {
  background: linear-gradient(90deg, transparent, #fbbf24, transparent) !important;
}
.card-inbox-progress:hover {
  border-color: rgba(251, 191, 36, 0.4) !important;
  box-shadow: 0 12px 30px rgba(0,0,0,0.4), 0 0 15px rgba(251, 191, 36, 0.15) !important;
}

.card-inbox-resolved .sla-card-icon {
  color: #34d399 !important;
  filter: drop-shadow(0 0 8px rgba(52, 211, 153, 0.45)) !important;
  border-color: rgba(52, 211, 153, 0.25) !important;
}
.card-inbox-resolved .sla-card-value {
  color: #34d399 !important;
  text-shadow: 0 0 12px rgba(52, 211, 153, 0.45) !important;
}
.card-inbox-resolved::before {
  background: linear-gradient(90deg, transparent, #34d399, transparent) !important;
}
.card-inbox-resolved:hover {
  border-color: rgba(52, 211, 153, 0.4) !important;
  box-shadow: 0 12px 30px rgba(0,0,0,0.4), 0 0 15px rgba(52, 211, 153, 0.15) !important;
}

/* =========================================================================
   🚀 IT TRAINING & INITIATIVE ROADMAP - GLASSMORPHISM SYSTEM STYLES
   ========================================================================= */

#elearning-container {
  background: radial-gradient(circle at 12% 12%, rgba(0, 240, 255, 0.07) 0%, transparent 45%),
              radial-gradient(circle at 88% 88%, rgba(99, 102, 241, 0.07) 0%, transparent 45%),
              var(--bg-card, rgba(15, 23, 42, 0.45)) !important;
  border: 1px solid var(--border-color, rgba(255, 255, 255, 0.1)) !important;
  border-radius: var(--radius-xl, 24px) !important;
  backdrop-filter: var(--glass-backdrop, blur(30px) saturate(190%)) !important;
  box-shadow: var(--shadow-diffuse, 0 10px 40px rgba(0, 0, 0, 0.25)) !important;
  padding: var(--space-lg, 24px) !important;
  position: relative;
  overflow: hidden;
  transition: var(--transition-premium);
}

/* Header & Action Pill Buttons */
.elearning-action-btn {
  height: 38px;
  padding: 0 16px;
  font-size: 12px;
  font-weight: 700;
  border-radius: 20px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  transition: var(--transition-smooth);
  cursor: pointer;
  text-decoration: none;
}

.elearning-btn-add {
  background: rgba(16, 185, 129, 0.12);
  border: 1px solid rgba(16, 185, 129, 0.35);
  color: #34d399;
}
.elearning-btn-add:hover {
  background: rgba(16, 185, 129, 0.22);
  border-color: rgba(16, 185, 129, 0.6);
  color: #a7f3d0;
  transform: translateY(-1px);
  box-shadow: 0 4px 15px rgba(16, 185, 129, 0.25);
}

.elearning-btn-comfy {
  background: rgba(148, 163, 184, 0.12);
  border: 1px solid rgba(148, 163, 184, 0.25);
  color: var(--color-text-main, #f8fafc);
}
.elearning-btn-comfy:hover {
  background: rgba(148, 163, 184, 0.2);
  border-color: rgba(255, 255, 255, 0.3);
  color: #ffffff;
  transform: translateY(-1px);
}

.elearning-btn-intake {
  background: linear-gradient(135deg, var(--color-primary, #00f0ff), #00a8ff);
  border: none;
  color: #040b16;
  font-weight: 800;
  box-shadow: 0 0 16px var(--color-primary-glow, rgba(0, 240, 255, 0.25));
}
.elearning-btn-intake:hover {
  filter: brightness(1.15);
  transform: translateY(-1px);
  box-shadow: 0 0 24px rgba(0, 240, 255, 0.45);
}

/* Sub-Navigation Roadmap Tabs */
.roadmap-tab-pill {
  height: 38px;
  padding: 0 20px;
  font-size: 12.5px;
  font-weight: 700;
  border-radius: 20px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  transition: var(--transition-smooth);
  cursor: pointer;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--border-color, rgba(255, 255, 255, 0.1));
  color: var(--color-text-muted, #cbd5e1);
}
.roadmap-tab-pill:hover {
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(0, 240, 255, 0.3);
  color: #ffffff;
  transform: translateY(-1px);
}
.roadmap-tab-pill.active-roadmap-tab {
  background: linear-gradient(135deg, rgba(0, 240, 255, 0.18), rgba(99, 102, 241, 0.18)) !important;
  border: 1px solid var(--color-primary, #00f0ff) !important;
  color: #ffffff !important;
  box-shadow: 0 0 18px rgba(0, 240, 255, 0.3), inset 0 0 8px rgba(0, 240, 255, 0.1) !important;
}

/* Quick Metric Cards Framing */
.elearning-metric-card {
  padding: 18px;
  border-radius: var(--radius-md, 12px);
  background: rgba(15, 23, 42, 0.35);
  border: 1px solid var(--border-color, rgba(255, 255, 255, 0.08));
  display: flex;
  align-items: center;
  gap: 16px;
  transition: var(--transition-smooth);
}
.elearning-metric-card:hover {
  transform: translateY(-2px);
  border-color: rgba(0, 240, 255, 0.4);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.3), inset 0 0 12px rgba(0, 240, 255, 0.05);
}

.elearning-metric-badge {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.elearning-metric-badge-cyan {
  background: linear-gradient(135deg, rgba(0, 240, 255, 0.2), rgba(0, 168, 255, 0.1));
  border: 1px solid rgba(0, 240, 255, 0.35);
  color: var(--color-primary, #00f0ff);
}
.elearning-metric-badge-emerald {
  background: linear-gradient(135deg, rgba(16, 185, 129, 0.2), rgba(5, 150, 105, 0.1));
  border: 1px solid rgba(16, 185, 129, 0.35);
  color: #34d399;
}
.elearning-metric-badge-amber {
  background: linear-gradient(135deg, rgba(245, 158, 11, 0.2), rgba(217, 119, 6, 0.1));
  border: 1px solid rgba(245, 158, 11, 0.35);
  color: #fbbf24;
}

.elearning-metric-label {
  font-family: var(--font-sans);
  font-size: 10.5px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.6px;
  color: var(--color-text-dark, #8ba2b5);
  display: block;
  margin-bottom: 2px;
}
.elearning-metric-value {
  font-family: var(--font-display);
  font-size: 22px;
  font-weight: 800;
  color: var(--color-text-main, #f8fafc);
  line-height: 1.1;
}

/* Card Action Pills & Steppers */
.elearning-card-action-btn {
  height: 32px;
  padding: 0 12px;
  font-size: 11px;
  font-weight: 700;
  border-radius: 16px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  transition: var(--transition-smooth);
  cursor: pointer;
  text-decoration: none;
}
.elearning-card-action-btn:hover {
  transform: translateY(-1px);
  filter: brightness(1.2);
}

.elearning-btn-sheet {
  background: rgba(16, 185, 129, 0.12);
  color: #34d399;
  border: 1px solid rgba(16, 185, 129, 0.3);
}
.elearning-btn-edit {
  background: rgba(245, 158, 11, 0.12);
  color: #fbbf24;
  border: 1px solid rgba(245, 158, 11, 0.3);
}
.elearning-btn-sync {
  background: rgba(0, 240, 255, 0.12);
  color: var(--color-primary, #00f0ff);
  border: 1px solid rgba(0, 240, 255, 0.3);
}
.elearning-btn-delete {
  background: rgba(244, 63, 94, 0.12);
  color: #fb7185;
  border: 1px solid rgba(244, 63, 94, 0.3);
}

.stepper-bar-container {
  display: flex;
  gap: 6px;
  height: 36px;
  background: rgba(0, 0, 0, 0.3);
  border: 1px solid var(--border-color, rgba(255, 255, 255, 0.08));
  border-radius: var(--radius-sm, 8px);
  padding: 4px;
  overflow: hidden;
  align-items: center;
}

/* ==========================================================================
   TICKET MONITORING & VENDOR HUB STYLES
   ========================================================================== */
.badge-modernlms {
  background: rgba(192, 132, 252, 0.15);
  color: #c084fc;
  border: 1px solid rgba(192, 132, 252, 0.35);
  font-weight: 700;
  font-size: 11px;
  padding: 3px 8px;
  border-radius: 6px;
  display: inline-flex;
  align-items: center;
  gap: 5px;
}

.badge-gsd {
  background: rgba(56, 189, 248, 0.15);
  color: #38bdf8;
  border: 1px solid rgba(56, 189, 248, 0.35);
  font-weight: 700;
  font-size: 11px;
  padding: 3px 8px;
  border-radius: 6px;
  display: inline-flex;
  align-items: center;
  gap: 5px;
}

.badge-linked {
  background: rgba(251, 191, 36, 0.15);
  color: #fbbf24;
  border: 1px solid rgba(251, 191, 36, 0.35);
  font-weight: 700;
  font-size: 11px;
  padding: 3px 8px;
  border-radius: 6px;
  display: inline-flex;
  align-items: center;
  gap: 5px;
}

.ticket-matrix-row {
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
  transition: background 0.2s ease, transform 0.2s ease;
}

.ticket-matrix-row:hover {
  background: rgba(255, 255, 255, 0.03);
}

.ticket-audit-timeline-item {
  position: relative;
  padding-bottom: 14px;
}

.ticket-audit-timeline-item::before {
  content: "";
  position: absolute;
  left: -21px;
  top: 4px;
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: var(--color-primary, #00f0ff);
  box-shadow: 0 0 6px var(--color-primary, #00f0ff);
}

.filter-pill {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: var(--color-text-muted);
  cursor: pointer;
  transition: all 0.2s ease;
}

.filter-pill:hover {
  background: rgba(255, 255, 255, 0.08);
  color: #fff;
}

.filter-pill.active {
  background: rgba(0, 240, 255, 0.15) !important;
  border-color: rgba(0, 240, 255, 0.4) !important;
  color: #fff !important;
}

@keyframes spin-sync {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}

.spinning {
  animation: spin-sync 0.8s linear infinite !important;
  transform-origin: center center;
}

/* ==========================================================================
   🛡️ LMS & Portal Audit Hub (ISO/IEC 27001 Compliance) Styles
   ========================================================================== */
.lms-instance-card {
  background: var(--bg-card, rgba(15, 23, 42, 0.65));
  border: 1px solid var(--border-color, rgba(255, 255, 255, 0.08));
  border-radius: 12px;
  padding: 16px;
  cursor: pointer;
  transition: transform 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  position: relative;
  overflow: hidden;
}

.lms-instance-card:hover {
  transform: translateY(-2px);
  border-color: rgba(0, 240, 255, 0.4);
  box-shadow: 0 8px 24px rgba(0, 240, 255, 0.12);
}

.lms-instance-card.selected-instance {
  border-color: #00f0ff;
  background: rgba(0, 240, 255, 0.04);
  box-shadow: 0 0 15px rgba(0, 240, 255, 0.18);
}

.lms-instance-card .instance-score-bar-bg {
  width: 100%;
  height: 6px;
  background: rgba(255, 255, 255, 0.08);
  border-radius: 3px;
  overflow: hidden;
  margin-top: 8px;
}

.lms-instance-card .instance-score-bar-fill {
  height: 100%;
  border-radius: 3px;
  transition: width 0.4s ease;
}

.audit-checklist-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 12px 14px;
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 8px;
  transition: background 0.2s ease;
}

.audit-checklist-item:hover {
  background: rgba(255, 255, 255, 0.04);
}

.audit-status-btn-group {
  display: inline-flex;
  border-radius: 6px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.12);
}

.audit-status-btn {
  padding: 4px 10px;
  font-size: 11px;
  font-weight: 700;
  border: none;
  background: rgba(255, 255, 255, 0.04);
  color: #94a3b8;
  cursor: pointer;
  transition: all 0.15s ease;
}

.audit-status-btn:hover {
  background: rgba(255, 255, 255, 0.1);
  color: #fff;
}

.audit-status-btn.btn-pass-active {
  background: rgba(16, 185, 129, 0.25) !important;
  color: #34d399 !important;
  font-weight: 800;
}

.audit-status-btn.btn-fail-active {
  background: rgba(239, 68, 68, 0.25) !important;
  color: #f87171 !important;
  font-weight: 800;
}

.audit-status-btn.btn-na-active {
  background: rgba(148, 163, 184, 0.25) !important;
  color: #cbd5e1 !important;
}

/* ==========================================================================
   🚀 eLearning Launch Radar & Deployments Dashboard Styles
   ========================================================================== */

.launch-radar-container {
  background: var(--bg-card, rgba(4, 24, 32, 0.58));
  background-image: 
    radial-gradient(circle at 10% 10%, rgba(0, 245, 196, 0.08) 0%, transparent 40%),
    radial-gradient(circle at 90% 90%, rgba(56, 189, 248, 0.06) 0%, transparent 45%);
  border: 1px solid var(--border-color, rgba(45, 212, 191, 0.18));
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.08), 0 12px 40px rgba(0, 0, 0, 0.35);
  backdrop-filter: var(--glass-backdrop, blur(30px) saturate(190%));
  border-radius: var(--radius-xl, 24px);
  padding: 24px;
  margin-bottom: 24px;
  width: 100%;
  max-width: 100%;
  box-sizing: border-box;
  overflow: hidden;
}

.launch-kpi-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 14px;
  margin-bottom: 24px;
  width: 100%;
  box-sizing: border-box;
}

.launch-kpi-card {
  padding: 20px 22px;
  border-radius: 16px;
  background: rgba(15, 23, 42, 0.55);
  border: 1px solid rgba(255, 255, 255, 0.08);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.25);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
  position: relative;
  overflow: hidden;
}

.launch-kpi-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  opacity: 0.6;
  transition: opacity 0.25s ease;
}

.launch-kpi-card:hover {
  transform: translateY(-2px);
  border-color: rgba(0, 245, 196, 0.35);
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.4), 0 0 16px rgba(0, 245, 196, 0.12);
}

.launch-kpi-card:hover::before {
  opacity: 1;
}

.launch-kpi-fleet::before {
  background: linear-gradient(90deg, #00f5c4, #38bdf8);
}
.launch-kpi-countdown::before {
  background: linear-gradient(90deg, #f59e0b, #fbbf24);
}
.launch-kpi-sla::before {
  background: linear-gradient(90deg, #10b981, #34d399);
}
.launch-kpi-learners::before {
  background: linear-gradient(90deg, #6366f1, #818cf8);
}

.launch-kpi-label {
  font-size: 10.5px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.8px;
  margin-bottom: 8px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.launch-kpi-value {
  font-size: 26px;
  font-weight: 800;
  line-height: 1.1;
  color: #f8fafc;
  margin-bottom: 6px;
  letter-spacing: -0.5px;
}

.launch-kpi-subtext {
  font-size: 11.5px;
  font-weight: 600;
  color: #cbd5e1;
  display: flex;
  align-items: center;
  gap: 6px;
}

/* Action Controls Toolbar */
.launch-toolbar {
  padding: 14px 18px;
  border-radius: 14px;
  background: rgba(15, 23, 42, 0.55);
  border: 1px solid rgba(255, 255, 255, 0.08);
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 14px;
  margin-bottom: 24px;
}

.launch-filter-cluster {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
  flex: 1;
}

.launch-filter-select,
.launch-search-input {
  background: rgba(0, 0, 0, 0.4);
  border: 1px solid rgba(255, 255, 255, 0.14);
  color: #f8fafc;
  height: 36px;
  border-radius: 8px;
  padding: 0 10px 0 12px;
  font-size: 12px;
  font-weight: 600;
  transition: all 0.2s ease;
  outline: none;
}

.launch-filter-select:focus,
.launch-search-input:focus {
  border-color: #00f5c4;
  box-shadow: 0 0 0 2px rgba(0, 245, 196, 0.35);
}

.launch-search-input {
  min-width: 200px;
}

.launch-btn-sync {
  background: rgba(0, 240, 255, 0.12) !important;
  border: 1px solid rgba(0, 240, 255, 0.35) !important;
  color: #38bdf8 !important;
  font-weight: 700;
  border-radius: 8px;
  height: 36px;
  padding: 0 14px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  cursor: pointer;
  transition: all 0.2s ease;
}

.launch-btn-sync:hover {
  background: rgba(0, 240, 255, 0.22) !important;
  box-shadow: 0 0 12px rgba(0, 240, 255, 0.3);
}

.launch-btn-gsheet {
  background: rgba(16, 185, 129, 0.12) !important;
  border: 1px solid rgba(16, 185, 129, 0.35) !important;
  color: #34d399 !important;
  font-weight: 700;
  border-radius: 8px;
  height: 36px;
  padding: 0 14px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  text-decoration: none;
  cursor: pointer;
  transition: all 0.2s ease;
}

.launch-btn-gsheet:hover {
  background: rgba(16, 185, 129, 0.22) !important;
  box-shadow: 0 0 12px rgba(16, 185, 129, 0.3);
}

.launch-btn-add {
  background: linear-gradient(135deg, #00f5c4 0%, #00d2ff 100%) !important;
  color: #020d13 !important;
  font-weight: 800;
  border: none !important;
  border-radius: 8px;
  height: 36px;
  padding: 0 16px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  cursor: pointer;
  box-shadow: 0 0 16px rgba(0, 245, 196, 0.3);
  transition: all 0.2s ease;
}

.launch-btn-add:hover {
  transform: translateY(-1px);
  box-shadow: 0 0 22px rgba(0, 245, 196, 0.5);
}

/* Chronological Launch Horizon */
.launch-horizon-card {
  padding: 20px;
  border-radius: 16px;
  background: rgba(15, 23, 42, 0.55);
  border: 1px solid rgba(255, 255, 255, 0.08);
  margin-bottom: 24px;
  width: 100%;
  max-width: 100%;
  box-sizing: border-box;
  overflow: hidden;
}

.launch-horizon-rail {
  display: flex;
  gap: 16px;
  overflow-x: auto;
  padding-bottom: 10px;
  scroll-behavior: smooth;
  width: 100%;
  max-width: 100%;
  box-sizing: border-box;
  -webkit-overflow-scrolling: touch;
}

.launch-horizon-rail::-webkit-scrollbar {
  height: 5px;
}

.launch-horizon-rail::-webkit-scrollbar-thumb {
  background: rgba(0, 245, 196, 0.3);
  border-radius: 3px;
}

.launch-horizon-quarter {
  min-width: 270px;
  flex: 1;
  background: rgba(4, 24, 32, 0.45);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 12px;
  padding: 14px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.launch-horizon-quarter.active-sprint {
  border-color: rgba(0, 245, 196, 0.45);
  box-shadow: inset 0 0 14px rgba(0, 245, 196, 0.06);
}

.launch-horizon-qheader {
  font-size: 12px;
  font-weight: 800;
  color: #f8fafc;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-bottom: 8px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.launch-horizon-chip {
  padding: 10px 12px;
  border-radius: 8px;
  background: rgba(15, 23, 42, 0.7);
  border: 1px solid rgba(255, 255, 255, 0.06);
  font-size: 11.5px;
  transition: all 0.2s ease;
  cursor: pointer;
}

.launch-horizon-chip:hover {
  border-color: rgba(0, 245, 196, 0.4);
  transform: translateX(2px);
  background: rgba(15, 23, 42, 0.95);
}

/* Comprehensive Deployment Data Table */
.launch-table-container {
  overflow-x: auto;
  border-radius: 14px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(4, 24, 32, 0.6);
}

.launch-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 12.5px;
}

.launch-table th {
  background: rgba(4, 24, 32, 0.85);
  color: #94a3b8;
  font-size: 11px;
  text-transform: uppercase;
  font-weight: 700;
  letter-spacing: 0.6px;
  padding: 14px 16px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  text-align: left;
  white-space: nowrap;
  position: sticky;
  top: 0;
  z-index: 2;
}

.launch-table td {
  padding: 14px 16px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.04);
  color: #e2e8f0;
  vertical-align: middle;
}

.launch-table tr:hover td {
  background: rgba(0, 245, 196, 0.035);
}

.launch-avatar {
  width: 26px;
  height: 26px;
  border-radius: 50%;
  background: linear-gradient(135deg, #00f5c4 0%, #38bdf8 100%);
  color: #020d13;
  font-weight: 800;
  font-size: 10px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-right: 8px;
  flex-shrink: 0;
}

.launch-variance-pill {
  font-size: 10px;
  font-weight: 800;
  padding: 2px 7px;
  border-radius: 10px;
  display: inline-block;
  margin-left: 6px;
}

.variance-ahead {
  background: rgba(16, 185, 129, 0.15);
  color: #34d399;
  border: 1px solid rgba(16, 185, 129, 0.3);
}

.variance-slip {
  background: rgba(245, 158, 11, 0.15);
  color: #fbbf24;
  border: 1px solid rgba(245, 158, 11, 0.3);
}

.variance-delayed {
  background: rgba(239, 68, 68, 0.15);
  color: #f87171;
  border: 1px solid rgba(239, 68, 68, 0.3);
}

.spinning-icon {
  animation: spin 1s linear infinite;
}

@keyframes spin {
  100% {
    transform: rotate(360deg);
  }
}

/* Responsive Launch Modal Form Grid */
.launch-modal-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  margin-bottom: 16px;
}

@media (max-width: 640px) {
  .launch-modal-grid {
    grid-template-columns: 1fr !important;
  }
}

/* Workload Member Card & Interactive Drilldown Pills */
.workload-member-card {
  cursor: pointer;
  position: relative;
  transition: transform 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease, background 0.2s ease !important;
}

.workload-member-card:hover {
  transform: translateY(-3px) !important;
  border-color: rgba(0, 240, 255, 0.4) !important;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.5), 0 0 15px rgba(0, 240, 255, 0.1) !important;
  background: rgba(15, 23, 42, 0.7) !important;
}

.member-drilldown-pill {
  cursor: pointer !important;
  position: relative;
  user-select: none;
  font-family: inherit;
  transition: transform 0.15s ease, filter 0.15s ease, box-shadow 0.15s ease, background 0.15s ease, border-color 0.15s ease !important;
}

.member-drilldown-pill:hover {
  transform: translateY(-2px) scale(1.05) !important;
  filter: brightness(1.25) !important;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.45) !important;
}

.member-drilldown-pill:active {
  transform: translateY(0) scale(0.97) !important;
}

.member-drilldown-pill.pill-elearning:hover {
  background: rgba(0, 240, 255, 0.25) !important;
  border-color: #00f0ff !important;
  box-shadow: 0 4px 14px rgba(0, 240, 255, 0.35) !important;
}

.member-drilldown-pill.pill-requests:hover {
  background: rgba(168, 85, 247, 0.25) !important;
  border-color: #c084fc !important;
  box-shadow: 0 4px 14px rgba(168, 85, 247, 0.35) !important;
}

.member-drilldown-pill.pill-inbox:hover {
  background: rgba(59, 130, 246, 0.25) !important;
  border-color: #60a5fa !important;
  box-shadow: 0 4px 14px rgba(59, 130, 246, 0.35) !important;
}

.member-task-item-card:hover {
  border-color: rgba(255, 255, 255, 0.2) !important;
  background: rgba(30, 41, 59, 0.65) !important;
}

/* ==========================================================================
   🌐 Regional Rollout & Completion Tracker (Manager & Admin View)
   ========================================================================== */

.regional-course-card {
  background: rgba(15, 23, 42, 0.55);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 16px;
  padding: 22px;
  transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.25);
  width: 100%;
  max-width: 100%;
  box-sizing: border-box;
}

.regional-course-card:hover {
  border-color: rgba(0, 245, 196, 0.3);
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.35);
}

.regional-course-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 18px;
  flex-wrap: wrap;
  gap: 14px;
}

.regional-course-title {
  font-size: 16px;
  font-weight: 800;
  color: #fff;
  margin: 0 0 6px 0;
  display: flex;
  align-items: center;
  gap: 10px;
}

.regional-course-meta {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 12px;
  color: #94a3b8;
  flex-wrap: wrap;
}

.regional-table-wrapper {
  width: 100%;
  max-width: 100%;
  overflow-x: auto;
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.06);
  background: rgba(10, 15, 28, 0.4);
  -webkit-overflow-scrolling: touch;
}

.regional-table {
  width: 100%;
  min-width: 880px;
  border-collapse: collapse;
  font-size: 12.5px;
}

.regional-table th {
  background: rgba(15, 23, 42, 0.85);
  color: #94a3b8;
  font-weight: 700;
  text-transform: uppercase;
  font-size: 11px;
  letter-spacing: 0.5px;
  padding: 13px 16px;
  text-align: left;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  white-space: nowrap;
}

.regional-table td {
  padding: 14px 16px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.04);
  vertical-align: middle;
  color: #e2e8f0;
}

.regional-table tr:last-child td {
  border-bottom: none;
}

.regional-table tr:hover td {
  background: rgba(255, 255, 255, 0.02);
}

.country-cell {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 700;
  color: #f8fafc;
  min-width: 220px;
}

.country-code-pill {
  font-size: 11px;
  font-weight: 800;
  padding: 2px 7px;
  border-radius: 5px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.12);
  color: #cbd5e1;
  letter-spacing: 0.5px;
  white-space: nowrap;
}

.weekly-snapshot-strip {
  display: flex;
  align-items: center;
  gap: 6px;
  flex-wrap: wrap;
}

.snapshot-chip {
  padding: 3px 8px;
  border-radius: 6px;
  font-size: 11px;
  font-weight: 700;
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-width: 48px;
  text-align: center;
  transition: all 0.2s ease;
  cursor: default;
}

.snapshot-chip:hover {
  transform: translateY(-2px);
  filter: brightness(1.2);
}

.snapshot-chip .snap-date {
  font-size: 9px;
  opacity: 0.75;
  font-weight: 600;
  white-space: nowrap;
}

.snapshot-chip .snap-rate {
  font-size: 11.5px;
  font-weight: 800;
}

.snap-100 {
  background: rgba(16, 185, 129, 0.2);
  border: 1px solid rgba(16, 185, 129, 0.4);
  color: #34d399;
}

.snap-high {
  background: rgba(56, 189, 248, 0.2);
  border: 1px solid rgba(56, 189, 248, 0.4);
  color: #38bdf8;
}

.snap-med {
  background: rgba(245, 158, 11, 0.2);
  border: 1px solid rgba(245, 158, 11, 0.4);
  color: #fbbf24;
}

.snap-low {
  background: rgba(239, 68, 68, 0.15);
  border: 1px solid rgba(239, 68, 68, 0.3);
  color: #f87171;
}

.completion-bar-outer {
  width: 120px;
  height: 7px;
  background: rgba(255, 255, 255, 0.08);
  border-radius: 4px;
  overflow: hidden;
  display: inline-block;
  vertical-align: middle;
  margin-right: 8px;
}

.completion-bar-inner {
  height: 100%;
  border-radius: 4px;
  transition: width 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}











/* Permanent Viewport Overflow Clamp */
html, body {
  max-width: 100%;
  overflow-x: hidden !important;
}
.app-layout {
  width: 100% !important;
  max-width: 100% !important;
  overflow-x: hidden !important;
}
.main-content {
  flex: 1 1 0% !important;
  min-width: 0 !important;
  width: calc(100% - var(--sidebar-width, 260px)) !important;
  max-width: calc(100% - var(--sidebar-width, 260px)) !important;
  overflow-x: hidden !important;
  box-sizing: border-box !important;
}
.dashboard-container, .dashboard-section, .glass-card, #team-sync-cadence-banner, .admin-telemetry-card {
  max-width: 100% !important;
  min-width: 0 !important;
  box-sizing: border-box !important;
}
