/* ==========================================================================
   TASKPANDA CINEMATIC EXPERIENCE STYLESHEET
   Elite Visual Direction, Canvas Particle Constellation, Kinetic Typography
   ========================================================================== */

:root {
  --cinematic-bg: #070b14;
  --cinematic-surface: rgba(15, 23, 42, 0.75);
  --cinematic-surface-elevated: rgba(30, 41, 59, 0.85);
  --cinematic-border: rgba(255, 255, 255, 0.1);
  --cinematic-border-glow: rgba(56, 189, 248, 0.4);
  --cinematic-primary: #0052cc;
  --cinematic-cyan: #38bdf8;
  --cinematic-emerald: #10b981;
  --cinematic-purple: #a855f7;
  --cinematic-text: #f8fafc;
  --cinematic-muted: #94a3b8;
}

.cinematic-body {
  background-color: var(--cinematic-bg);
  color: var(--cinematic-text);
  overflow-x: hidden;
  position: relative;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  min-height: 100vh;
}

/* --- Atmospheric Canvas & Radial Ambient Glow --- */
.cinematic-canvas-wrapper {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100vh;
  min-height: 700px;
  pointer-events: auto;
  z-index: 1;
  overflow: hidden;
}

#cinematicWorkflowCanvas {
  display: block;
  width: 100%;
  height: 100%;
  opacity: 0.85;
}

.ambient-radial-glow {
  position: absolute;
  top: -15%;
  left: 50%;
  transform: translateX(-50%);
  width: 900px;
  height: 600px;
  background: radial-gradient(circle, rgba(0, 82, 204, 0.28) 0%, rgba(56, 189, 248, 0.12) 40%, transparent 70%);
  filter: blur(80px);
  pointer-events: none;
  z-index: 0;
}

.ambient-secondary-glow {
  position: absolute;
  top: 45%;
  right: -10%;
  width: 650px;
  height: 500px;
  background: radial-gradient(circle, rgba(168, 85, 247, 0.15) 0%, transparent 65%);
  filter: blur(90px);
  pointer-events: none;
  z-index: 0;
}

/* --- Navigation Header --- */
.cinematic-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(7, 11, 20, 0.75);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  padding: 0.85rem 1.75rem;
}

.cinematic-logo {
  font-size: 1.25rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  color: #ffffff;
  text-decoration: none;
  display: flex;
  align-items: center;
  gap: 0.65rem;
}

.cinematic-logo span {
  background: linear-gradient(135deg, #38bdf8 0%, #60a5fa 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

/* --- Hero Section & Kinetic Typography --- */
.cinematic-hero-section {
  position: relative;
  z-index: 10;
  padding: 6.5rem 1.5rem 4rem;
  text-align: center;
}

.cinematic-badge-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.35rem 0.95rem;
  border-radius: 9999px;
  background: rgba(56, 189, 248, 0.1);
  border: 1px solid rgba(56, 189, 248, 0.3);
  color: var(--cinematic-cyan);
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  margin-bottom: 1.5rem;
  box-shadow: 0 0 20px rgba(56, 189, 248, 0.2);
  animation: badgePulse 3s ease-in-out infinite alternate;
}

@keyframes badgePulse {
  0% {
    box-shadow: 0 0 12px rgba(56, 189, 248, 0.15);
  }
  100% {
    box-shadow: 0 0 26px rgba(56, 189, 248, 0.35);
  }
}

.cinematic-headline {
  font-size: clamp(2.4rem, 5.5vw, 4.2rem);
  font-weight: 800;
  line-height: 1.1;
  letter-spacing: -0.035em;
  color: #ffffff;
  max-width: 960px;
  margin: 0 auto 1.5rem;
}

.cinematic-headline .gradient-text {
  background: linear-gradient(135deg, #ffffff 10%, #60a5fa 50%, #38bdf8 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.cinematic-subtext {
  font-size: clamp(1rem, 2vw, 1.2rem);
  color: var(--cinematic-muted);
  max-width: 680px;
  margin: 0 auto 2.5rem;
  line-height: 1.6;
}

.cinematic-action-dock {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 1rem;
  flex-wrap: wrap;
  margin-bottom: 3.5rem;
}

.btn-cinematic-primary {
  background: linear-gradient(135deg, #0052cc 0%, #2563eb 100%);
  color: #ffffff;
  font-weight: 600;
  font-size: 0.95rem;
  padding: 0.75rem 1.75rem;
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  box-shadow: 0 10px 30px -5px rgba(0, 82, 204, 0.5), inset 0 1px 0 rgba(255, 255, 255, 0.25);
  transition: all 0.24s cubic-bezier(0.16, 1, 0.3, 1);
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
}

.btn-cinematic-primary:hover {
  transform: translateY(-2px) scale(1.02);
  box-shadow: 0 16px 36px -4px rgba(0, 82, 204, 0.7), inset 0 1px 0 rgba(255, 255, 255, 0.4);
  color: #ffffff;
}

.btn-cinematic-secondary {
  background: rgba(15, 23, 42, 0.6);
  backdrop-filter: blur(12px);
  color: #e2e8f0;
  font-weight: 600;
  font-size: 0.95rem;
  padding: 0.75rem 1.75rem;
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  transition: all 0.24s cubic-bezier(0.16, 1, 0.3, 1);
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
}

.btn-cinematic-secondary:hover {
  background: rgba(30, 41, 59, 0.8);
  border-color: rgba(56, 189, 248, 0.4);
  color: #ffffff;
  transform: translateY(-2px);
}

/* --- Live Telemetry Strip --- */
.telemetry-strip {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 1.25rem;
  max-width: 1040px;
  margin: 0 auto;
}

.telemetry-card {
  background: rgba(15, 23, 42, 0.65);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 14px;
  padding: 1.25rem;
  text-align: left;
  transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
  position: relative;
  overflow: hidden;
}

.telemetry-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--cinematic-cyan), transparent);
  opacity: 0;
  transition: opacity 0.25s ease;
}

.telemetry-card:hover {
  transform: translateY(-3px);
  border-color: rgba(56, 189, 248, 0.35);
  box-shadow: 0 14px 34px -4px rgba(0, 0, 0, 0.4);
}

.telemetry-card:hover::before {
  opacity: 1;
}

.telemetry-val {
  font-size: 2rem;
  font-weight: 800;
  color: #ffffff;
  line-height: 1.2;
}

.telemetry-lbl {
  font-size: 0.76rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--cinematic-muted);
  font-weight: 600;
  margin-top: 0.35rem;
}

/* --- Interactive 5-Stage Delivery Pipeline Section --- */
.pipeline-section {
  position: relative;
  z-index: 10;
  padding: 5rem 1.5rem;
  max-width: 1140px;
  margin: 0 auto;
}

.pipeline-header {
  text-align: center;
  margin-bottom: 3.5rem;
}

.pipeline-nav {
  display: flex;
  justify-content: space-between;
  position: relative;
  margin-bottom: 2.5rem;
  gap: 0.75rem;
  flex-wrap: wrap;
}

.pipeline-stage-btn {
  flex: 1 1 180px;
  background: rgba(15, 23, 42, 0.6);
  border: 1px solid rgba(255, 255, 255, 0.09);
  border-radius: 12px;
  padding: 1.1rem 1rem;
  color: var(--cinematic-muted);
  text-align: left;
  cursor: pointer;
  transition: all 0.22s cubic-bezier(0.16, 1, 0.3, 1);
  display: flex;
  align-items: center;
  gap: 0.85rem;
}

.pipeline-stage-btn:hover {
  background: rgba(30, 41, 59, 0.7);
  color: #ffffff;
  border-color: rgba(56, 189, 248, 0.3);
}

.pipeline-stage-btn.active {
  background: rgba(30, 41, 59, 0.95);
  border-color: var(--cinematic-cyan);
  color: #ffffff;
  box-shadow: 0 0 20px rgba(56, 189, 248, 0.25), inset 0 0 12px rgba(56, 189, 248, 0.1);
  transform: translateY(-2px);
}

.stage-num-badge {
  width: 32px;
  height: 32px;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.06);
  color: var(--cinematic-cyan);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 0.88rem;
  flex-shrink: 0;
}

.pipeline-stage-btn.active .stage-num-badge {
  background: var(--cinematic-primary);
  color: #ffffff;
  box-shadow: 0 0 10px rgba(0, 82, 204, 0.5);
}

.pipeline-display-card {
  background: rgba(15, 23, 42, 0.8);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 18px;
  padding: 2.5rem;
  box-shadow: 0 25px 60px -15px rgba(0, 0, 0, 0.6);
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

/* --- Multi-Role Lens Selector --- */
.role-lenses-section {
  position: relative;
  z-index: 10;
  padding: 4rem 1.5rem 6rem;
  max-width: 1140px;
  margin: 0 auto;
}

.role-pill-nav {
  display: flex;
  justify-content: center;
  gap: 0.5rem;
  flex-wrap: wrap;
  margin-bottom: 2.5rem;
}

.role-pill-btn {
  background: rgba(15, 23, 42, 0.7);
  border: 1px solid rgba(255, 255, 255, 0.08);
  color: var(--cinematic-muted);
  border-radius: 9999px;
  padding: 0.55rem 1.25rem;
  font-size: 0.85rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
}

.role-pill-btn:hover {
  color: #ffffff;
  border-color: rgba(255, 255, 255, 0.2);
}

.role-pill-btn.active {
  background: var(--cinematic-primary);
  color: #ffffff;
  border-color: #3b82f6;
  box-shadow: 0 4px 16px rgba(0, 82, 204, 0.4);
}

.role-feature-card {
  background: rgba(15, 23, 42, 0.75);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 16px;
  padding: 2rem;
  transition: all 0.25s ease;
}

/* --- Reduced Motion Accessibility --- */
@media (prefers-reduced-motion: reduce) {
  *,
  ::before,
  ::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
  #cinematicWorkflowCanvas {
    display: none !important;
  }
  .pipeline-stage-btn:hover,
  .btn-cinematic-primary:hover,
  .telemetry-card:hover {
    transform: none !important;
  }
}

/* ==========================================================================
   TASKPANDA ELITE CINEMATIC GLASSMORPHISM & FUTURISTIC DESIGN SYSTEM
   Luminous Frosted Glass, Ambient Bioluminescent Sheen, Precision Specular Edges
   ========================================================================== */

:root {
  /* Crystal Frost Surfaces (Light Mode) */
  --glass-bg: rgba(255, 255, 255, 0.72);
  --glass-bg-hover: rgba(255, 255, 255, 0.88);
  --glass-header-bg: rgba(255, 255, 255, 0.78);
  --glass-sidebar-bg: rgba(255, 255, 255, 0.84);
  --glass-border: rgba(255, 255, 255, 0.85);
  --glass-border-subtle: rgba(226, 232, 240, 0.7);
  --glass-border-glow: rgba(0, 114, 255, 0.35);
  --glass-shadow: 0 8px 32px 0 rgba(31, 38, 135, 0.06);
  --glass-shadow-hover: 0 16px 40px 0 rgba(31, 38, 135, 0.12);
  --glass-rim: inset 0 1px 1px 0 rgba(255, 255, 255, 0.95);
  --neon-cyan: #0284c7;
  --neon-blue: #0052cc;
  --neon-purple: #7928ca;
  --neon-emerald: #10b981;
  --neon-coral: #ef4444;
  --neon-amber: #f59e0b;
}

[data-bs-theme="dark"] {
  /* Deep Obsidian Cyber-Glass Surfaces (Dark Mode) */
  --glass-bg: rgba(15, 23, 42, 0.62);
  --glass-bg-hover: rgba(30, 41, 59, 0.72);
  --glass-header-bg: rgba(9, 14, 29, 0.76);
  --glass-sidebar-bg: rgba(7, 11, 22, 0.82);
  --glass-border: rgba(255, 255, 255, 0.12);
  --glass-border-subtle: rgba(255, 255, 255, 0.08);
  --glass-border-glow: rgba(56, 189, 248, 0.45);
  --glass-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.45);
  --glass-shadow-hover: 0 20px 48px -10px rgba(0, 0, 0, 0.65), 0 0 20px rgba(56, 189, 248, 0.15);
  --glass-rim: inset 0 1px 0 0 rgba(255, 255, 255, 0.16);
  --neon-cyan: #38bdf8;
  --neon-blue: #3b82f6;
  --neon-purple: #c084fc;
  --neon-emerald: #34d399;
  --neon-coral: #f87171;
  --neon-amber: #fbbf24;
}

/* --- Atmospheric Ambient Canvas Mesh --- */
body {
  background-color: var(--bg-page);
  background-image: 
    radial-gradient(at 0% 0%, rgba(0, 82, 204, 0.04) 0px, transparent 50%),
    radial-gradient(at 100% 100%, rgba(139, 92, 246, 0.04) 0px, transparent 50%),
    radial-gradient(at 50% 50%, rgba(56, 189, 248, 0.02) 0px, transparent 50%);
  background-attachment: fixed;
  background-size: cover;
}

[data-bs-theme="dark"] body {
  background-color: #070b16 !important;
  background-image: 
    radial-gradient(at 5% 5%, rgba(0, 82, 204, 0.16) 0px, transparent 45%),
    radial-gradient(at 95% 95%, rgba(168, 85, 247, 0.14) 0px, transparent 45%),
    radial-gradient(at 50% 30%, rgba(14, 165, 233, 0.09) 0px, transparent 50%) !important;
  background-attachment: fixed !important;
  background-size: cover !important;
}

/* --- Glassmorphism Core Surfaces --- */
.card,
.kpi-card {
  background: var(--glass-bg) !important;
  backdrop-filter: blur(16px) saturate(180%) !important;
  -webkit-backdrop-filter: blur(16px) saturate(180%) !important;
  border: 1px solid var(--glass-border) !important;
  box-shadow: var(--glass-rim), var(--glass-shadow) !important;
  border-radius: 14px !important;
  transition: transform 0.28s cubic-bezier(0.16, 1, 0.3, 1),
              box-shadow 0.28s cubic-bezier(0.16, 1, 0.3, 1),
              border-color 0.24s ease !important;
}

.card:hover,
.kpi-card:hover {
  background: var(--glass-bg-hover) !important;
  transform: translateY(-4px) translateZ(0) !important;
  border-color: var(--glass-border-glow) !important;
  box-shadow: var(--glass-rim), var(--glass-shadow-hover) !important;
}

.card-header {
  background: transparent !important;
  border-bottom: 1px solid var(--glass-border-subtle) !important;
  backdrop-filter: blur(8px);
}

/* --- Floating Glass Header --- */
.app-header {
  background: var(--glass-header-bg) !important;
  backdrop-filter: blur(20px) saturate(190%) !important;
  -webkit-backdrop-filter: blur(20px) saturate(190%) !important;
  border-bottom: 1px solid var(--glass-border) !important;
  box-shadow: 0 4px 24px 0 rgba(0, 0, 0, 0.04) !important;
}

/* --- Frosted Glass Sidebar --- */
.app-sidebar {
  background: var(--glass-sidebar-bg) !important;
  backdrop-filter: blur(24px) saturate(190%) !important;
  -webkit-backdrop-filter: blur(24px) saturate(190%) !important;
  border-right: 1px solid var(--glass-border) !important;
  box-shadow: 4px 0 24px 0 rgba(0, 0, 0, 0.05) !important;
}

.sidebar-header {
  border-bottom: 1px solid var(--glass-border-subtle) !important;
}

.sidebar-nav-item {
  border-radius: 10px !important;
  margin: 0.2rem 0.65rem !important;
  transition: all 0.22s cubic-bezier(0.16, 1, 0.3, 1) !important;
  font-weight: 500;
}

.sidebar-nav-item:hover {
  background: rgba(0, 82, 204, 0.08) !important;
  transform: translateX(4px) !important;
}

[data-bs-theme="dark"] .sidebar-nav-item:hover {
  background: rgba(56, 189, 248, 0.12) !important;
  color: var(--neon-cyan) !important;
}

.sidebar-nav-item.active,
.app-sidebar .sidebar-nav-item.active,
:root:not([data-bs-theme="dark"]) .app-sidebar .sidebar-nav-item.active,
[data-bs-theme="light"] .app-sidebar .sidebar-nav-item.active,
[data-bs-theme="dark"] .app-sidebar .sidebar-nav-item.active {
  background: linear-gradient(135deg, #0052cc 0%, #2563eb 100%) !important;
  color: #ffffff !important;
  font-weight: 600 !important;
  border-left: none !important;
  box-shadow: 0 4px 16px rgba(0, 82, 204, 0.38) !important;
}

.sidebar-nav-item.active i,
.app-sidebar .sidebar-nav-item.active i,
:root:not([data-bs-theme="dark"]) .app-sidebar .sidebar-nav-item.active i,
[data-bs-theme="light"] .app-sidebar .sidebar-nav-item.active i,
[data-bs-theme="dark"] .app-sidebar .sidebar-nav-item.active i {
  color: #ffffff !important;
}

/* --- Glass Modals & Dialogs --- */
.modal-content,
.dropdown-menu {
  background: var(--glass-bg) !important;
  backdrop-filter: blur(24px) saturate(200%) !important;
  -webkit-backdrop-filter: blur(24px) saturate(200%) !important;
  border: 1px solid var(--glass-border) !important;
  box-shadow: var(--glass-rim), 0 24px 64px -12px rgba(0, 0, 0, 0.35) !important;
  border-radius: 16px !important;
}

.modal-header,
.modal-footer {
  border-color: var(--glass-border-subtle) !important;
  background: transparent !important;
}

.modal-backdrop.show {
  backdrop-filter: blur(8px) !important;
  -webkit-backdrop-filter: blur(8px) !important;
  background-color: rgba(7, 11, 22, 0.65) !important;
}

/* --- Futuristic Glass Inputs --- */
.form-control,
.form-select {
  background-color: rgba(255, 255, 255, 0.65) !important;
  backdrop-filter: blur(10px) !important;
  -webkit-backdrop-filter: blur(10px) !important;
  border: 1px solid var(--glass-border-subtle) !important;
  border-radius: 10px !important;
  transition: all 0.22s ease !important;
}

[data-bs-theme="dark"] .form-control,
[data-bs-theme="dark"] .form-select {
  background-color: rgba(15, 23, 42, 0.55) !important;
  color: #f8fafc !important;
  border-color: rgba(255, 255, 255, 0.12) !important;
}

.form-control:focus,
.form-select:focus {
  background-color: var(--glass-bg-hover) !important;
  border-color: var(--neon-cyan) !important;
  box-shadow: 0 0 0 3px rgba(2, 132, 199, 0.22) !important;
}

/* ==========================================================================
   HIGH CONTRAST BUTTON & INTERACTIVE STATES (LIGHT & DARK THEMES)
   ========================================================================== */

/* Primary Action Buttons */
.btn-primary,
.btn-primary:focus,
.btn-primary:active,
.btn-primary.active,
.btn-primary.show {
  background: linear-gradient(135deg, #0052cc 0%, #0284c7 100%) !important;
  border: 1px solid rgba(255, 255, 255, 0.25) !important;
  box-shadow: 0 4px 14px rgba(0, 82, 204, 0.35) !important;
  border-radius: 10px !important;
  color: #ffffff !important;
  font-weight: 600 !important;
  transition: all 0.24s cubic-bezier(0.16, 1, 0.3, 1) !important;
}

.btn-primary:hover {
  background: linear-gradient(135deg, #0065ff 0%, #0ea5e9 100%) !important;
  box-shadow: 0 8px 24px rgba(2, 132, 199, 0.45) !important;
  color: #ffffff !important;
  transform: translateY(-2px) !important;
}

.btn-primary i,
.btn-primary span,
.btn-primary:hover i,
.btn-primary:focus i {
  color: #ffffff !important;
}

/* Secondary Buttons */
.btn-secondary {
  background: #64748b !important;
  border: 1px solid #64748b !important;
  color: #ffffff !important;
  font-weight: 600 !important;
  border-radius: 9px !important;
}

.btn-secondary:hover {
  background: #475569 !important;
  border-color: #475569 !important;
  color: #ffffff !important;
  box-shadow: 0 4px 12px rgba(100, 116, 139, 0.3) !important;
}

.btn-secondary i,
.btn-secondary:hover i {
  color: #ffffff !important;
}

[data-bs-theme="dark"] .btn-secondary {
  background: rgba(255, 255, 255, 0.12) !important;
  border: 1px solid rgba(255, 255, 255, 0.2) !important;
  color: #f8fafc !important;
}

[data-bs-theme="dark"] .btn-secondary:hover {
  background: rgba(255, 255, 255, 0.22) !important;
  border-color: rgba(255, 255, 255, 0.32) !important;
  color: #ffffff !important;
}

/* Light Surface Buttons (.btn-light) */
.btn-light {
  background: #ffffff !important;
  border: 1px solid #cbd5e1 !important;
  color: #1e293b !important;
  font-weight: 600 !important;
  border-radius: 9px !important;
}

.btn-light:hover {
  background: #f1f5f9 !important;
  border-color: #94a3b8 !important;
  color: #0f172a !important;
}

.btn-light i {
  color: #475569 !important;
}

.btn-light:hover i {
  color: #0f172a !important;
}

[data-bs-theme="dark"] .btn-light {
  background: rgba(255, 255, 255, 0.08) !important;
  border: 1px solid rgba(255, 255, 255, 0.16) !important;
  color: #f8fafc !important;
}

[data-bs-theme="dark"] .btn-light:hover {
  background: rgba(255, 255, 255, 0.18) !important;
  border-color: rgba(255, 255, 255, 0.28) !important;
  color: #ffffff !important;
}

[data-bs-theme="dark"] .btn-light i {
  color: #cbd5e1 !important;
}

[data-bs-theme="dark"] .btn-light:hover i {
  color: #ffffff !important;
}

/* Outline Primary */
.btn-outline-primary {
  border: 1px solid #0052cc !important;
  color: #0052cc !important;
  background: rgba(0, 82, 204, 0.04) !important;
  border-radius: 9px !important;
  font-weight: 600 !important;
}

.btn-outline-primary:hover {
  background: #0052cc !important;
  color: #ffffff !important;
  box-shadow: 0 4px 16px rgba(0, 82, 204, 0.3) !important;
}

.btn-outline-primary i {
  color: #0052cc !important;
}

.btn-outline-primary:hover i {
  color: #ffffff !important;
}

[data-bs-theme="dark"] .btn-outline-primary {
  border: 1px solid #38bdf8 !important;
  color: #38bdf8 !important;
  background: rgba(56, 189, 248, 0.08) !important;
}

[data-bs-theme="dark"] .btn-outline-primary:hover {
  background: #0284c7 !important;
  border-color: #0284c7 !important;
  color: #ffffff !important;
  box-shadow: 0 4px 16px rgba(2, 132, 199, 0.35) !important;
}

[data-bs-theme="dark"] .btn-outline-primary i {
  color: #38bdf8 !important;
}

[data-bs-theme="dark"] .btn-outline-primary:hover i {
  color: #ffffff !important;
}

/* Outline Secondary */
.btn-outline-secondary {
  border: 1px solid #94a3b8 !important;
  color: #334155 !important;
  background: #ffffff !important;
  border-radius: 9px !important;
  font-weight: 600 !important;
}

.btn-outline-secondary:hover {
  background: #f1f5f9 !important;
  border-color: #64748b !important;
  color: #0f172a !important;
}

.btn-outline-secondary i {
  color: #475569 !important;
}

.btn-outline-secondary:hover i {
  color: #0f172a !important;
}

[data-bs-theme="dark"] .btn-outline-secondary {
  border: 1px solid rgba(255, 255, 255, 0.22) !important;
  color: #e2e8f0 !important;
  background: rgba(255, 255, 255, 0.05) !important;
}

[data-bs-theme="dark"] .btn-outline-secondary:hover {
  background: rgba(255, 255, 255, 0.16) !important;
  border-color: rgba(255, 255, 255, 0.35) !important;
  color: #ffffff !important;
}

[data-bs-theme="dark"] .btn-outline-secondary i {
  color: #cbd5e1 !important;
}

[data-bs-theme="dark"] .btn-outline-secondary:hover i {
  color: #ffffff !important;
}

/* Outline Success, Danger, Warning, Info */
.btn-outline-success {
  border: 1px solid #16a34a !important;
  color: #15803d !important;
  background: rgba(22, 163, 74, 0.05) !important;
  font-weight: 600 !important;
}
.btn-outline-success:hover {
  background: #16a34a !important;
  color: #ffffff !important;
}
.btn-outline-success i { color: #15803d !important; }
.btn-outline-success:hover i { color: #ffffff !important; }

[data-bs-theme="dark"] .btn-outline-success {
  border: 1px solid #22c55e !important;
  color: #4ade80 !important;
  background: rgba(34, 197, 94, 0.1) !important;
}
[data-bs-theme="dark"] .btn-outline-success:hover {
  background: #16a34a !important;
  color: #ffffff !important;
}
[data-bs-theme="dark"] .btn-outline-success i { color: #4ade80 !important; }
[data-bs-theme="dark"] .btn-outline-success:hover i { color: #ffffff !important; }

.btn-outline-danger {
  border: 1px solid #dc2626 !important;
  color: #b91c1c !important;
  background: rgba(220, 38, 38, 0.05) !important;
  font-weight: 600 !important;
}
.btn-outline-danger:hover {
  background: #dc2626 !important;
  color: #ffffff !important;
}
.btn-outline-danger i { color: #b91c1c !important; }
.btn-outline-danger:hover i { color: #ffffff !important; }

[data-bs-theme="dark"] .btn-outline-danger {
  border: 1px solid #ef4444 !important;
  color: #f87171 !important;
  background: rgba(239, 68, 68, 0.1) !important;
}
[data-bs-theme="dark"] .btn-outline-danger:hover {
  background: #dc2626 !important;
  color: #ffffff !important;
}
[data-bs-theme="dark"] .btn-outline-danger i { color: #f87171 !important; }
[data-bs-theme="dark"] .btn-outline-danger:hover i { color: #ffffff !important; }

.btn-outline-warning {
  border: 1px solid #d97706 !important;
  color: #b45309 !important;
  background: rgba(217, 119, 6, 0.05) !important;
  font-weight: 600 !important;
}
.btn-outline-warning:hover {
  background: #d97706 !important;
  color: #ffffff !important;
}
.btn-outline-warning i { color: #b45309 !important; }
.btn-outline-warning:hover i { color: #ffffff !important; }

[data-bs-theme="dark"] .btn-outline-warning {
  border: 1px solid #f59e0b !important;
  color: #fbbf24 !important;
  background: rgba(245, 158, 11, 0.1) !important;
}
[data-bs-theme="dark"] .btn-outline-warning:hover {
  background: #d97706 !important;
  color: #ffffff !important;
}
[data-bs-theme="dark"] .btn-outline-warning i { color: #fbbf24 !important; }
[data-bs-theme="dark"] .btn-outline-warning:hover i { color: #ffffff !important; }

.btn-outline-info {
  border: 1px solid #0284c7 !important;
  color: #0369a1 !important;
  background: rgba(2, 132, 199, 0.05) !important;
  font-weight: 600 !important;
}
.btn-outline-info:hover {
  background: #0284c7 !important;
  color: #ffffff !important;
}
.btn-outline-info i { color: #0369a1 !important; }
.btn-outline-info:hover i { color: #ffffff !important; }

[data-bs-theme="dark"] .btn-outline-info {
  border: 1px solid #38bdf8 !important;
  color: #38bdf8 !important;
  background: rgba(56, 189, 248, 0.1) !important;
}
[data-bs-theme="dark"] .btn-outline-info:hover {
  background: #0284c7 !important;
  color: #ffffff !important;
}
[data-bs-theme="dark"] .btn-outline-info i { color: #38bdf8 !important; }
[data-bs-theme="dark"] .btn-outline-info:hover i { color: #ffffff !important; }

/* Solid State Action Colors */
.btn-success,
.btn-danger,
.btn-info,
.btn-dark {
  color: #ffffff !important;
  font-weight: 600 !important;
}
.btn-success i,
.btn-danger i,
.btn-info i,
.btn-dark i {
  color: #ffffff !important;
}

.btn-warning {
  color: #0f172a !important;
  font-weight: 600 !important;
}
.btn-warning i {
  color: #0f172a !important;
}

/* Modal Action Buttons */
.btn-modal-save {
  background: linear-gradient(135deg, #0052cc 0%, #2563eb 100%) !important;
  border: 1px solid #0052cc !important;
  color: #ffffff !important;
  font-weight: 600 !important;
  box-shadow: 0 4px 14px rgba(0, 82, 204, 0.35) !important;
}
.btn-modal-save:hover {
  background: linear-gradient(135deg, #0065ff 0%, #1d4ed8 100%) !important;
  color: #ffffff !important;
}
.btn-modal-save i { color: #ffffff !important; }

.btn-modal-cancel-slate {
  background: #64748b !important;
  border: 1px solid #64748b !important;
  color: #ffffff !important;
  font-weight: 600 !important;
}
.btn-modal-cancel-slate:hover {
  background: #475569 !important;
  color: #ffffff !important;
}
.btn-modal-cancel-slate i { color: #ffffff !important; }

.btn-modal-reset {
  background: #ffffff !important;
  border: 1px solid #cbd5e1 !important;
  color: #334155 !important;
  font-weight: 600 !important;
}
.btn-modal-reset:hover {
  background: #f1f5f9 !important;
  color: #0f172a !important;
}
.btn-modal-reset i { color: #475569 !important; }

[data-bs-theme="dark"] .btn-modal-reset {
  background: rgba(255, 255, 255, 0.08) !important;
  border: 1px solid rgba(255, 255, 255, 0.2) !important;
  color: #f8fafc !important;
}
[data-bs-theme="dark"] .btn-modal-reset:hover {
  background: rgba(255, 255, 255, 0.18) !important;
  color: #ffffff !important;
}
[data-bs-theme="dark"] .btn-modal-reset i { color: #cbd5e1 !important; }

/* Calendar & Custom View Pill Switchers */
.calendar-view-group .btn,
.btn-group .btn.rounded-pill {
  font-weight: 600 !important;
}
[data-bs-theme="dark"] .btn-group .btn.text-muted {
  color: #94a3b8 !important;
}
[data-bs-theme="dark"] .btn-group .btn.text-muted:hover {
  color: #ffffff !important;
}

/* Nav Pills & Nav Tabs Active & Inactive Contrast */
.nav-pills .nav-link.active {
  background: linear-gradient(135deg, #0052cc 0%, #2563eb 100%) !important;
  color: #ffffff !important;
  font-weight: 600 !important;
}
.nav-pills .nav-link.active i {
  color: #ffffff !important;
}

.nav-pills .nav-link {
  color: #475569 !important;
  font-weight: 500;
}
.nav-pills .nav-link:hover {
  color: #0f172a !important;
  background: #f1f5f9 !important;
}

[data-bs-theme="dark"] .nav-pills .nav-link {
  color: #94a3b8 !important;
}
[data-bs-theme="dark"] .nav-pills .nav-link:hover {
  color: #ffffff !important;
  background: rgba(255, 255, 255, 0.08) !important;
}

.nav-tabs .nav-link.active {
  color: #0052cc !important;
  font-weight: 600 !important;
  border-bottom: 2px solid #0052cc !important;
}
[data-bs-theme="dark"] .nav-tabs .nav-link.active {
  color: #38bdf8 !important;
  border-bottom: 2px solid #38bdf8 !important;
}

/* Pagination High Contrast */
.pagination .page-item.active .page-link {
  background: linear-gradient(135deg, #0052cc 0%, #2563eb 100%) !important;
  border-color: #0052cc !important;
  color: #ffffff !important;
  font-weight: 600 !important;
}
.pagination .page-link {
  color: #1e293b !important;
  font-weight: 500;
}
[data-bs-theme="dark"] .pagination .page-link {
  color: #e2e8f0 !important;
  background: rgba(255, 255, 255, 0.06) !important;
  border-color: rgba(255, 255, 255, 0.16) !important;
}

/* --- Data-Dense Futuristic Tables --- */
.table thead th {
  background: rgba(0, 82, 204, 0.04) !important;
  border-bottom: 1px solid var(--glass-border-subtle) !important;
  font-size: 0.76rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--text-muted);
}

[data-bs-theme="dark"] .table thead th {
  background: rgba(255, 255, 255, 0.04) !important;
  color: #94a3b8 !important;
}

.table-hover tbody tr:hover td {
  background: rgba(0, 82, 204, 0.05) !important;
  transition: background 0.18s ease;
}

[data-bs-theme="dark"] .table-hover tbody tr:hover td {
  background: rgba(56, 189, 248, 0.08) !important;
}

/* --- KPI Glass Elements --- */
.kpi-icon {
  border-radius: 12px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
}

.kpi-clickable-count:hover {
  color: var(--neon-cyan) !important;
  transform: scale(1.05);
  display: inline-block;
  transition: all 0.2s ease;
}

/* --- Agile Kanban Glass Columns --- */
.kanban-col,
.board-column {
  background: var(--glass-bg) !important;
  backdrop-filter: blur(14px) !important;
  border: 1px solid var(--glass-border) !important;
  border-radius: 14px !important;
}

.kanban-card {
  background: var(--glass-bg-hover) !important;
  backdrop-filter: blur(10px) !important;
  border: 1px solid var(--glass-border) !important;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.06) !important;
  border-radius: 10px !important;
  transition: all 0.22s ease !important;
}

.kanban-card:hover {
  transform: translateY(-3px) !important;
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.12) !important;
}

/* ==========================================================================
   MODULE-SPECIFIC GLASSMORPHIC ENHANCEMENTS
   ========================================================================== */

/* --- Project Navigation Tabs --- */
.project-nav-tabs,
.nav-tabs {
  border-bottom: 1px solid var(--glass-border-subtle) !important;
  background: var(--glass-bg) !important;
  backdrop-filter: blur(12px) !important;
  -webkit-backdrop-filter: blur(12px) !important;
  border-radius: 12px 12px 0 0;
  padding: 0.5rem 0.75rem 0 0.75rem !important;
}

.project-nav-tabs .nav-link,
.nav-tabs .nav-link {
  border: 1px solid transparent !important;
  border-radius: 8px 8px 0 0 !important;
  color: var(--text-muted) !important;
  font-weight: 600;
  transition: all 0.22s ease !important;
  padding: 0.6rem 1.1rem !important;
}

.project-nav-tabs .nav-link:hover,
.nav-tabs .nav-link:hover {
  color: var(--neon-cyan) !important;
  background: rgba(2, 132, 199, 0.08) !important;
}

.project-nav-tabs .nav-link.active,
.nav-tabs .nav-link.active {
  color: var(--neon-cyan) !important;
  background: var(--glass-bg-hover) !important;
  border-bottom: 2px solid var(--neon-cyan) !important;
  box-shadow: 0 -2px 12px rgba(2, 132, 199, 0.15) !important;
}

/* --- Kanban Board Tactical Glass HUD --- */
.kanban-controls-bar {
  background: var(--glass-bg) !important;
  backdrop-filter: blur(16px) !important;
  -webkit-backdrop-filter: blur(16px) !important;
  border: 1px solid var(--glass-border) !important;
  border-radius: 12px !important;
  box-shadow: var(--glass-shadow) !important;
}

.kanban-column {
  background: var(--glass-bg) !important;
  backdrop-filter: blur(16px) saturate(180%) !important;
  -webkit-backdrop-filter: blur(16px) saturate(180%) !important;
  border: 1px solid var(--glass-border) !important;
  border-radius: 14px !important;
  box-shadow: var(--glass-shadow) !important;
}

.kanban-column-header {
  border-bottom: 1px solid var(--glass-border-subtle) !important;
  padding-bottom: 0.75rem;
  margin-bottom: 0.75rem;
}

.kanban-card {
  background: var(--glass-bg-hover) !important;
  backdrop-filter: blur(12px) !important;
  -webkit-backdrop-filter: blur(12px) !important;
  border: 1px solid var(--glass-border) !important;
  box-shadow: var(--glass-rim), 0 4px 14px rgba(0, 0, 0, 0.05) !important;
  border-radius: 10px !important;
  transition: transform 0.24s cubic-bezier(0.16, 1, 0.3, 1),
              box-shadow 0.24s cubic-bezier(0.16, 1, 0.3, 1),
              border-color 0.2s ease !important;
}

.kanban-card:hover {
  transform: translateY(-3px) scale(1.005) !important;
  border-color: var(--glass-border-glow) !important;
  box-shadow: var(--glass-rim), 0 12px 28px rgba(0, 82, 204, 0.18) !important;
}

.kanban-card-key {
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace !important;
  font-weight: 700 !important;
  color: var(--neon-cyan) !important;
  text-decoration: none;
}

/* --- Calendar Futuristic Grid --- */
.calendar-card {
  background: var(--glass-bg) !important;
  backdrop-filter: blur(18px) !important;
  -webkit-backdrop-filter: blur(18px) !important;
  border: 1px solid var(--glass-border) !important;
  border-radius: 16px !important;
  box-shadow: var(--glass-shadow) !important;
}

.calendar-cell {
  min-width: 0 !important;
  width: 100% !important;
  box-sizing: border-box !important;
  overflow: hidden !important;
  transition: all 0.2s ease !important;
}

.calendar-cell.today .calendar-day-circle,
.calendar-cell.is-today .calendar-day-circle {
  background: #0052cc !important;
  color: #ffffff !important;
  box-shadow: 0 2px 6px rgba(0, 82, 204, 0.35) !important;
}

.calendar-event-pill,
.calendar-event-card {
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.06) !important;
  border-radius: 5px !important;
  font-weight: 600 !important;
  min-width: 0 !important;
}

/* --- Searchable Project Filter & Dropdowns --- */
.project-search-dropdown,
.searchable-project-dropdown-menu {
  background: var(--glass-bg-hover) !important;
  backdrop-filter: blur(24px) saturate(200%) !important;
  -webkit-backdrop-filter: blur(24px) saturate(200%) !important;
  border: 1px solid var(--glass-border) !important;
  box-shadow: var(--glass-rim), 0 20px 48px -8px rgba(0, 0, 0, 0.3) !important;
  border-radius: 12px !important;
}

.project-opt-item {
  background: transparent !important;
  transition: background 0.16s ease !important;
}

.project-opt-item:hover,
.project-opt-item.active {
  background: rgba(2, 132, 199, 0.15) !important;
  color: var(--neon-cyan) !important;
}

/* --- Header Search Bar Glow & Hotkey --- */
.header-search .form-control {
  background: rgba(255, 255, 255, 0.6) !important;
  backdrop-filter: blur(10px) !important;
  border: 1px solid var(--glass-border-subtle) !important;
  border-radius: 10px !important;
  transition: all 0.22s ease !important;
}

[data-bs-theme="dark"] .header-search .form-control {
  background: rgba(15, 23, 42, 0.6) !important;
  color: #f8fafc !important;
  border-color: rgba(255, 255, 255, 0.12) !important;
}

.header-search .form-control:focus {
  border-color: var(--neon-cyan) !important;
  box-shadow: 0 0 0 3px rgba(2, 132, 199, 0.25), 0 0 16px rgba(2, 132, 199, 0.2) !important;
}

.search-shortcut-badge {
  background: rgba(0, 0, 0, 0.06);
  border: 1px solid var(--glass-border-subtle);
  border-radius: 6px;
  font-family: ui-monospace, monospace;
}

[data-bs-theme="dark"] .search-shortcut-badge {
  background: rgba(255, 255, 255, 0.08);
  color: #cbd5e1;
}

/* --- Futuristic Thin Scrollbars --- */
::-webkit-scrollbar {
  width: 6px;
  height: 6px;
}

::-webkit-scrollbar-track {
  background: transparent;
}

::-webkit-scrollbar-thumb {
  background: rgba(148, 163, 184, 0.35);
  border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
  background: var(--neon-cyan);
}

[data-bs-theme="dark"] ::-webkit-scrollbar-thumb {
  background: rgba(255, 255, 255, 0.18);
}


/* ==========================================================================
   BADGES & UTILITIES CONTRAST ENHANCEMENT (LIGHT & DARK THEMES)
   ========================================================================== */

.text-indigo {
  color: #4f46e5 !important;
}
[data-bs-theme="dark"] .text-indigo {
  color: #818cf8 !important;
}

.text-purple {
  color: #7c3aed !important;
}
[data-bs-theme="dark"] .text-purple {
  color: #a78bfa !important;
}

/* Light theme badges */
:root:not([data-bs-theme="dark"]) .badge.bg-light,
[data-bs-theme="light"] .badge.bg-light {
  background-color: #f1f5f9 !important;
  color: #334155 !important;
  border: 1px solid #cbd5e1 !important;
}

:root:not([data-bs-theme="dark"]) .badge.text-dark,
[data-bs-theme="light"] .badge.text-dark {
  color: #0f172a !important;
}

:root:not([data-bs-theme="dark"]) .badge.text-muted,
[data-bs-theme="light"] .badge.text-muted {
  color: #64748b !important;
}

/* Dark theme badges - Ensure minimum 5:1 contrast */
[data-bs-theme="dark"] .badge.bg-light {
  background-color: rgba(255, 255, 255, 0.1) !important;
  color: #f8fafc !important;
  border: 1px solid rgba(255, 255, 255, 0.18) !important;
}

[data-bs-theme="dark"] .badge.text-dark {
  color: #f8fafc !important;
}

[data-bs-theme="dark"] .badge.text-muted {
  color: #cbd5e1 !important;
}

[data-bs-theme="dark"] .badge.text-secondary {
  color: #cbd5e1 !important;
}

[data-bs-theme="dark"] .badge.bg-primary-subtle,
[data-bs-theme="dark"] .badge[class*="bg-primary-subtle"] {
  background-color: rgba(56, 189, 248, 0.16) !important;
  color: #38bdf8 !important;
  border: 1px solid rgba(56, 189, 248, 0.3) !important;
}

[data-bs-theme="dark"] .badge.bg-success-subtle,
[data-bs-theme="dark"] .badge[class*="bg-success-subtle"] {
  background-color: rgba(34, 197, 94, 0.16) !important;
  color: #4ade80 !important;
  border: 1px solid rgba(34, 197, 94, 0.3) !important;
}

[data-bs-theme="dark"] .badge.bg-danger-subtle,
[data-bs-theme="dark"] .badge[class*="bg-danger-subtle"] {
  background-color: rgba(239, 68, 68, 0.16) !important;
  color: #f87171 !important;
  border: 1px solid rgba(239, 68, 68, 0.3) !important;
}

[data-bs-theme="dark"] .badge.bg-warning-subtle,
[data-bs-theme="dark"] .badge[class*="bg-warning-subtle"] {
  background-color: rgba(245, 158, 11, 0.16) !important;
  color: #fbbf24 !important;
  border: 1px solid rgba(245, 158, 11, 0.3) !important;
}

[data-bs-theme="dark"] .badge.bg-info-subtle,
[data-bs-theme="dark"] .badge[class*="bg-info-subtle"] {
  background-color: rgba(56, 189, 248, 0.16) !important;
  color: #38bdf8 !important;
  border: 1px solid rgba(56, 189, 248, 0.3) !important;
}

[data-bs-theme="dark"] .badge.bg-secondary-subtle,
[data-bs-theme="dark"] .badge[class*="bg-secondary-subtle"] {
  background-color: rgba(255, 255, 255, 0.08) !important;
  color: #cbd5e1 !important;
  border: 1px solid rgba(255, 255, 255, 0.18) !important;
}

[data-bs-theme="dark"] .badge.bg-purple-subtle,
[data-bs-theme="dark"] .badge[class*="bg-purple-subtle"] {
  background-color: rgba(168, 85, 247, 0.16) !important;
  color: #c084fc !important;
  border: 1px solid rgba(168, 85, 247, 0.3) !important;
}

/* User profile button & dark mode header widgets */
.app-header-user-btn {
  background: #ffffff !important;
  color: #1e293b !important;
}
.app-header-user-btn .text-dark {
  color: #1e293b !important;
}
[data-bs-theme="dark"] .app-header-user-btn {
  background: rgba(255, 255, 255, 0.08) !important;
  color: #f8fafc !important;
  border-color: rgba(255, 255, 255, 0.16) !important;
}
[data-bs-theme="dark"] .app-header-user-btn .text-dark {
  color: #f8fafc !important;
}

/* Eye toggle password button */
#togglePasswordBtn {
  color: #64748b !important;
}
#togglePasswordBtn:hover {
  color: #0052cc !important;
}
[data-bs-theme="dark"] #togglePasswordBtn {
  color: #94a3b8 !important;
}
[data-bs-theme="dark"] #togglePasswordBtn:hover {
  color: #38bdf8 !important;
}
