/**
 * ANALYX Battery Manufacturing Suite
 * Enterprise Portal & Authentication Stylesheet
 * 
 * Features:
 * - High-end B2B dual-pane authentication portal with live industrial telemetry preview
 * - Quick role switcher pills (Admin / Operator / Viewer) for instant testing
 * - Modern collapsible enterprise sidebar with Supabase live status & active indicator bar
 * - Topbar with real-time date/shift indicator, ⌘K search shortcut & notification badge
 * - Executive KPI summary banner (Compliance, Plan vs Actual, Defect Rate, Critical Tasks)
 * - Enterprise application tiles with subtle border glow, SVG icon badges & direct quick links
 * - Modern Global Settings modal styling
 * - Full responsive breakpoints (3 col desktop, 2 col tablet, 1 col mobile)
 */

/* ==========================================================================
   1. DESIGN TOKENS & SYSTEM VARIABLES
   ========================================================================== */
:root {
  /* Brand & Theme Colors */
  --ax-primary: #0f766e;
  --ax-primary-hover: #0d5f58;
  --ax-primary-light: rgba(15, 118, 110, 0.08);
  --ax-primary-glow: rgba(15, 118, 110, 0.25);
  
  --ax-accent: #2563eb;
  --ax-accent-hover: #1d4ed8;
  --ax-accent-light: rgba(37, 99, 235, 0.08);
  --ax-accent-glow: rgba(37, 99, 235, 0.22);
  
  --ax-dark: #0f172a;
  --ax-dark-card: #1e293b;
  --ax-slate: #1e293b;
  --ax-slate-light: #334155;
  --ax-slate-lighter: #475569;
  
  --ax-emerald: #10b981;
  --ax-emerald-dark: #047857;
  --ax-emerald-bg: #ecfdf5;
  --ax-emerald-glow: rgba(16, 185, 129, 0.2);
  
  --ax-amber: #f59e0b;
  --ax-amber-bg: #fffbeb;
  --ax-amber-dark: #b45309;
  
  --ax-rose: #ef4444;
  --ax-rose-bg: #fef2f2;
  --ax-rose-dark: #b91c1c;
  
  --ax-indigo: #6366f1;
  --ax-indigo-bg: #eef2ff;
  
  /* Neutral Scale */
  --ax-bg: #f8fafc;
  --ax-surface: #ffffff;
  --ax-surface-subtle: #f1f5f9;
  --ax-border: #e2e8f0;
  --ax-border-light: #f1f5f9;
  --ax-border-hover: #cbd5e1;
  --ax-border-focus: #3b82f6;
  
  --ax-text-main: #0f172a;
  --ax-text-muted: #64748b;
  --ax-text-light: #94a3b8;
  
  /* Elevation Shadows */
  --ax-shadow-xs: 0 1px 2px 0 rgba(15, 23, 42, 0.05);
  --ax-shadow-sm: 0 1px 3px 0 rgba(15, 23, 42, 0.08), 0 1px 2px -1px rgba(15, 23, 42, 0.04);
  --ax-shadow-md: 0 4px 6px -1px rgba(15, 23, 42, 0.08), 0 2px 4px -2px rgba(15, 23, 42, 0.04);
  --ax-shadow-lg: 0 10px 15px -3px rgba(15, 23, 42, 0.08), 0 4px 6px -4px rgba(15, 23, 42, 0.04);
  --ax-shadow-xl: 0 20px 25px -5px rgba(15, 23, 42, 0.10), 0 8px 10px -6px rgba(15, 23, 42, 0.04);
  --ax-shadow-2xl: 0 25px 50px -12px rgba(15, 23, 42, 0.22);
  --ax-shadow-glow: 0 0 20px rgba(37, 99, 235, 0.18);
  
  /* Layout Dimensions */
  --ax-sidebar-width: 270px;
  --ax-sidebar-collapsed-width: 76px;
  --ax-topbar-height: 72px;
  --ax-radius-sm: 6px;
  --ax-radius-md: 10px;
  --ax-radius-lg: 14px;
  --ax-radius-xl: 20px;
  --ax-radius-full: 9999px;
  
  /* Transitions */
  --ax-transition-fast: 0.15s cubic-bezier(0.4, 0, 0.2, 1);
  --ax-transition-normal: 0.25s cubic-bezier(0.4, 0, 0.2, 1);
  --ax-transition-slow: 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

/* ==========================================================================
   2. AUTHENTICATION & LOGIN SCREEN (#login-screen)
   ========================================================================== */
#login-screen {
  position: fixed;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 99999;
  background: 
    radial-gradient(circle at 15% 20%, rgba(15, 118, 110, 0.08) 0%, transparent 45%),
    radial-gradient(circle at 85% 80%, rgba(37, 99, 235, 0.08) 0%, transparent 50%),
    linear-gradient(135deg, #09131f 0%, #0d1e30 50%, #0a1726 100%);
  padding: 1.5rem;
  overflow-y: auto;
  backdrop-filter: blur(8px);
}

#login-screen[style*="display: none"],
#login-screen.hidden {
  display: none !important;
}

/* Dual-Pane Login Card Container */
.login-dual-pane,
#login-screen .login-shell {
  display: flex;
  width: 100%;
  max-width: 1080px;
  min-height: 640px;
  background: var(--ax-surface);
  border-radius: var(--ax-radius-xl);
  border: 1px solid rgba(255, 255, 255, 0.12);
  box-shadow: 0 25px 60px -10px rgba(0, 0, 0, 0.4), 0 0 0 1px rgba(255, 255, 255, 0.05);
  overflow: hidden;
  animation: axLoginFadeIn 0.45s ease-out;
}

@keyframes axLoginFadeIn {
  from {
    opacity: 0;
    transform: translateY(14px) scale(0.985);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

/* In case existing markup only has .login-left without .login-dual-pane wrapper */
#login-screen:not(:has(.login-right)) .login-left {
  max-width: 480px !important;
  margin: 0 auto !important;
  border-radius: var(--ax-radius-xl);
  box-shadow: var(--ax-shadow-2xl);
  border: 1px solid var(--ax-border);
}

/* Left Pane: Clean Enterprise Auth Form */
.login-left {
  flex: 1 1 480px;
  max-width: 520px;
  background: #ffffff;
  padding: 3rem 3.25rem;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  position: relative;
  box-shadow: none !important;
  margin: 0 !important;
}

/* Company Brand in Auth */
.login-brand {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  margin-bottom: 2rem;
  align-self: flex-start;
}

.login-brand-icon {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  background: linear-gradient(135deg, var(--ax-primary) 0%, var(--ax-accent) 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #ffffff;
  font-family: var(--mono, 'IBM Plex Mono', monospace);
  font-weight: 700;
  font-size: 1.1rem;
  letter-spacing: -0.5px;
  box-shadow: 0 4px 14px var(--ax-primary-glow);
  position: relative;
}

.login-brand-icon::after {
  content: '';
  position: absolute;
  inset: -2px;
  border-radius: 14px;
  border: 1px solid rgba(255, 255, 255, 0.4);
  pointer-events: none;
}

.login-brand-info {
  display: flex;
  flex-direction: column;
}

.login-brand-name {
  font-size: 1.35rem;
  font-weight: 800;
  color: var(--ax-dark);
  letter-spacing: -0.02em;
  line-height: 1.1;
}

.login-brand-sub {
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 1.2px;
  font-weight: 700;
  color: var(--ax-primary);
  margin-top: 2px;
}

/* Welcome Titles */
.login-welcome {
  font-size: 1.65rem;
  font-weight: 800;
  color: var(--ax-dark);
  letter-spacing: -0.03em;
  line-height: 1.25;
  margin-bottom: 0.35rem;
  text-align: left;
}

.login-sub {
  font-size: 0.88rem;
  color: var(--ax-text-muted);
  line-height: 1.5;
  margin-bottom: 1.75rem;
  text-align: left;
}

/* Quick Role Switcher Pills */
.login-role-pills {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  margin-bottom: 1.75rem;
  background: var(--ax-surface-subtle);
  padding: 0.75rem;
  border-radius: var(--ax-radius-lg);
  border: 1px solid var(--ax-border);
}

.login-role-pills-label {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.7rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.8px;
  color: var(--ax-slate-lighter);
  margin-bottom: 0.25rem;
  padding: 0 0.25rem;
}

.login-role-pills-label .hint {
  font-size: 0.65rem;
  color: var(--ax-accent);
  font-weight: 600;
  text-transform: none;
}

.role-pills-wrap {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.45rem;
}

.role-pill {
  appearance: none;
  border: 1px solid var(--ax-border);
  background: #ffffff;
  border-radius: var(--ax-radius-md);
  padding: 0.55rem 0.4rem;
  font-family: inherit;
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--ax-slate);
  cursor: pointer;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 2px;
  transition: all var(--ax-transition-fast);
  position: relative;
}

.role-pill span.role-title {
  font-weight: 700;
  font-size: 0.8rem;
}

.role-pill span.role-badge {
  font-size: 0.62rem;
  color: var(--ax-text-muted);
  font-weight: 500;
}

.role-pill:hover {
  border-color: var(--ax-accent);
  background: var(--ax-accent-light);
  color: var(--ax-accent);
  transform: translateY(-1px);
}

.role-pill.active {
  border-color: var(--ax-accent);
  background: #ffffff;
  color: var(--ax-accent);
  box-shadow: 0 2px 8px var(--ax-accent-glow);
}

.role-pill.active::after {
  content: '';
  position: absolute;
  bottom: -1px;
  left: 20%;
  right: 20%;
  height: 2px;
  background: var(--ax-accent);
  border-radius: 2px;
}

/* Modern Input Fields with Icons */
.login-form-area {
  width: 100%;
}

.lf {
  margin-bottom: 1.25rem;
  position: relative;
}

.lf label {
  display: block;
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--ax-dark);
  margin-bottom: 0.45rem;
  letter-spacing: 0.01em;
}

.lf label span.req {
  color: var(--ax-rose);
  margin-left: 2px;
}

.lf .input-wrap {
  position: relative;
  display: flex;
  align-items: center;
}

.lf .input-icon {
  position: absolute;
  left: 1rem;
  top: 50%;
  transform: translateY(-50%);
  color: var(--ax-text-light);
  font-size: 1rem;
  display: flex;
  align-items: center;
  justify-content: center;
  pointer-events: none;
  transition: color var(--ax-transition-fast);
  z-index: 2;
}

.lf input {
  width: 100%;
  background: #ffffff;
  border: 1.5px solid var(--ax-border);
  color: var(--ax-dark);
  padding: 0.75rem 1rem 0.75rem 2.75rem;
  border-radius: var(--ax-radius-md);
  font-family: inherit;
  font-size: 0.92rem;
  font-weight: 500;
  outline: none;
  transition: all var(--ax-transition-fast);
  box-shadow: var(--ax-shadow-xs);
}

.lf input:focus {
  border-color: var(--ax-accent);
  background: #ffffff;
  box-shadow: 0 0 0 4px var(--ax-accent-light);
}

.lf input:focus + .input-icon,
.lf .input-wrap:focus-within .input-icon {
  color: var(--ax-accent);
}

.lf input::placeholder {
  color: var(--ax-text-light);
  font-weight: 400;
}

/* Password Toggle Visibility */
.pwd-toggle-btn {
  position: absolute;
  right: 0.85rem;
  top: 50%;
  transform: translateY(-50%);
  background: transparent;
  border: none;
  color: var(--ax-text-light);
  cursor: pointer;
  padding: 4px;
  font-size: 0.9rem;
  border-radius: 4px;
  transition: color var(--ax-transition-fast);
}

.pwd-toggle-btn:hover {
  color: var(--ax-slate);
}

/* Smooth Sign-in Button with Loading State */
.login-btn {
  width: 100%;
  background: linear-gradient(135deg, var(--ax-primary) 0%, #0d9488 100%);
  color: #ffffff;
  border: none;
  padding: 0.85rem 1.25rem;
  border-radius: var(--ax-radius-md);
  font-weight: 700;
  font-size: 0.95rem;
  cursor: pointer;
  letter-spacing: 0.01em;
  transition: all var(--ax-transition-normal);
  margin-top: 0.5rem;
  box-shadow: 0 4px 14px var(--ax-primary-glow);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  position: relative;
  overflow: hidden;
}

.login-btn:hover {
  background: linear-gradient(135deg, var(--ax-primary-hover) 0%, #0f766e 100%);
  box-shadow: 0 6px 20px rgba(15, 118, 110, 0.35);
  transform: translateY(-1px);
}

.login-btn:active {
  transform: translateY(0);
}

/* Loading State */
.login-btn.loading {
  color: transparent !important;
  pointer-events: none;
}

.login-btn.loading::after {
  content: '';
  position: absolute;
  width: 20px;
  height: 20px;
  border: 2.5px solid rgba(255, 255, 255, 0.4);
  border-top-color: #ffffff;
  border-radius: 50%;
  animation: axSpin 0.75s linear infinite;
}

@keyframes axSpin {
  to { transform: rotate(360deg); }
}

/* Error Notification Box */
.login-err {
  color: var(--ax-rose-dark);
  font-size: 0.82rem;
  font-weight: 600;
  margin-top: 0.85rem;
  display: none;
  background: var(--ax-rose-bg);
  border: 1px solid rgba(239, 68, 68, 0.3);
  border-radius: var(--ax-radius-md);
  padding: 0.65rem 0.95rem;
  text-align: left;
  animation: axShake 0.35s ease-in-out;
}

.login-err.visible,
.login-err[style*="display: block"] {
  display: flex !important;
  align-items: center;
  gap: 0.5rem;
}

@keyframes axShake {
  0%, 100% { transform: translateX(0); }
  20%, 60% { transform: translateX(-4px); }
  40%, 80% { transform: translateX(4px); }
}

/* Auth Footer & Credential Helper */
.login-divider {
  height: 1px;
  background: var(--ax-border);
  margin: 1.5rem 0 1rem;
}

.login-footer-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 0.72rem;
  color: var(--ax-text-muted);
  margin-top: auto;
  padding-top: 1rem;
  border-top: 1px solid var(--ax-border-light);
}

.login-footer-security {
  display: flex;
  align-items: center;
  gap: 0.35rem;
  color: var(--ax-emerald-dark);
  font-weight: 600;
}

/* ==========================================================================
   3. RIGHT PANE: INDUSTRIAL MANUFACTURING GRAPHIC & SHOWCASE (.login-right)
   ========================================================================== */
.login-right {
  flex: 1 1 540px;
  background: linear-gradient(145deg, #071926 0%, #0d2737 40%, #081d2c 70%, #0a2538 100%);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 3rem 2.75rem;
  position: relative;
  overflow: hidden;
  color: #ffffff;
}

/* High-Tech Blueprint & Mesh Pattern Overlay */
.login-right::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image: 
    radial-gradient(rgba(45, 212, 191, 0.12) 1px, transparent 1px),
    linear-gradient(to right, rgba(255, 255, 255, 0.03) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(255, 255, 255, 0.03) 1px, transparent 1px);
  background-size: 28px 28px, 56px 56px, 56px 56px;
  pointer-events: none;
  opacity: 0.85;
}

.login-right::after {
  content: '';
  position: absolute;
  top: -20%;
  right: -20%;
  width: 480px;
  height: 480px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(13, 148, 136, 0.25) 0%, transparent 65%);
  filter: blur(50px);
  pointer-events: none;
}

/* Plant Telemetry Header */
.login-right-header {
  position: relative;
  z-index: 2;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.plant-status-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: rgba(16, 185, 129, 0.12);
  border: 1px solid rgba(16, 185, 129, 0.35);
  border-radius: var(--ax-radius-full);
  padding: 0.35rem 0.85rem;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  color: #34d399;
}

.pulse-led {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #10b981;
  box-shadow: 0 0 10px #10b981;
  animation: axLedPulse 2s infinite ease-in-out;
}

@keyframes axLedPulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.4; transform: scale(0.85); }
}

.plant-system-tag {
  font-family: var(--mono, monospace);
  font-size: 0.7rem;
  color: rgba(255, 255, 255, 0.5);
  letter-spacing: 1px;
}

/* Manufacturing Dashboard Showcase Cards */
.login-showcase-body {
  position: relative;
  z-index: 2;
  margin: 2rem 0;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.showcase-hero-card {
  background: rgba(15, 23, 42, 0.55);
  border: 1px solid rgba(45, 212, 191, 0.25);
  border-radius: var(--ax-radius-lg);
  padding: 1.4rem 1.6rem;
  backdrop-filter: blur(14px);
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.3);
  position: relative;
  overflow: hidden;
}

.showcase-hero-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: linear-gradient(90deg, #14b8a6, #3b82f6);
}

.showcase-meta-row {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  margin-bottom: 0.4rem;
}

.showcase-label {
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 1.2px;
  color: rgba(255, 255, 255, 0.65);
  font-weight: 700;
}

.showcase-badge-good {
  font-size: 0.68rem;
  color: #34d399;
  background: rgba(16, 185, 129, 0.15);
  padding: 0.15rem 0.5rem;
  border-radius: var(--ax-radius-full);
  font-weight: 700;
  font-family: var(--mono, monospace);
}

.showcase-value-large {
  font-size: 2.25rem;
  font-weight: 800;
  letter-spacing: -0.03em;
  color: #ffffff;
  display: flex;
  align-items: baseline;
  gap: 0.4rem;
  font-family: var(--mono, monospace);
}

.showcase-value-large small {
  font-size: 0.9rem;
  color: rgba(255, 255, 255, 0.55);
  font-weight: 500;
}

/* Metric Progress Bar */
.showcase-progress-wrap {
  margin-top: 0.85rem;
}

.showcase-progress-bar {
  height: 6px;
  background: rgba(255, 255, 255, 0.1);
  border-radius: var(--ax-radius-full);
  overflow: hidden;
  position: relative;
}

.showcase-progress-fill {
  height: 100%;
  width: 99.4%;
  background: linear-gradient(90deg, #14b8a6, #2dd4bf);
  border-radius: var(--ax-radius-full);
  box-shadow: 0 0 12px rgba(45, 212, 191, 0.6);
}

.showcase-spec-labels {
  display: flex;
  justify-content: space-between;
  margin-top: 0.35rem;
  font-size: 0.65rem;
  color: rgba(255, 255, 255, 0.45);
  font-family: var(--mono, monospace);
}

/* Telemetry Grid of Mini Metrics */
.showcase-mini-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0.85rem;
}

.showcase-mini-card {
  background: rgba(15, 23, 42, 0.45);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: var(--ax-radius-md);
  padding: 0.9rem 1.1rem;
  backdrop-filter: blur(8px);
}

.showcase-mini-card:hover {
  border-color: rgba(45, 212, 191, 0.3);
  background: rgba(15, 23, 42, 0.6);
}

.mini-card-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 0.35rem;
}

.mini-card-title {
  font-size: 0.68rem;
  color: rgba(255, 255, 255, 0.6);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.mini-card-icon {
  font-size: 0.85rem;
}

.mini-card-val {
  font-size: 1.15rem;
  font-weight: 700;
  color: #ffffff;
  font-family: var(--mono, monospace);
}

.mini-card-sub {
  font-size: 0.65rem;
  color: #38bdf8;
  margin-top: 0.2rem;
  font-weight: 500;
}

/* Plant Telemetry Footer Graphic */
.login-right-footer {
  position: relative;
  z-index: 2;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  padding-top: 1.25rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.plant-spec-item {
  display: flex;
  flex-direction: column;
}

.plant-spec-item span.lbl {
  font-size: 0.62rem;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: rgba(255, 255, 255, 0.4);
}

.plant-spec-item span.val {
  font-size: 0.8rem;
  font-weight: 700;
  color: #e2e8f0;
  font-family: var(--mono, monospace);
}

/* ==========================================================================
   4. MODULE LAUNCHER PORTAL SCREEN (#launcher-screen)
   ========================================================================== */
#launcher-screen {
  position: fixed;
  inset: 0;
  background: var(--ax-bg);
  display: none;
  flex-direction: row;
  z-index: 9998;
  overflow: hidden;
  color: var(--ax-text-main);
  font-family: var(--sans, 'IBM Plex Sans', sans-serif);
}

#launcher-screen.open {
  display: flex !important;
}

/* ==========================================================================
   5. SLEEK MODERN SIDEBAR (.launcher-sidebar)
   ========================================================================== */
.launcher-sidebar {
  width: var(--ax-sidebar-width);
  background: #ffffff;
  border-right: 1px solid var(--ax-border);
  display: flex;
  flex-direction: column;
  flex-shrink: 0;
  overflow-y: auto;
  overflow-x: hidden;
  transition: width var(--ax-transition-normal), transform var(--ax-transition-normal);
  z-index: 100;
  box-shadow: 1px 0 3px rgba(0, 0, 0, 0.02);
  position: relative;
}

/* Collapsed Sidebar State */
.launcher-sidebar.collapsed {
  width: var(--ax-sidebar-collapsed-width);
}

.launcher-sidebar.collapsed .launcher-sidebar-title,
.launcher-sidebar.collapsed .launcher-sidebar-sub,
.launcher-sidebar.collapsed .launcher-live-status-card,
.launcher-sidebar.collapsed .launcher-nav-section,
.launcher-sidebar.collapsed .launcher-nav-item span:not(.launcher-nav-icon),
.launcher-sidebar.collapsed .launcher-nav-badge,
.launcher-sidebar.collapsed .launcher-user-info,
.launcher-sidebar.collapsed .sidebar-toggle-text {
  display: none !important;
}

.launcher-sidebar.collapsed .launcher-sidebar-brand {
  justify-content: center;
  padding: 1.25rem 0.5rem;
}

.launcher-sidebar.collapsed .launcher-nav-item {
  justify-content: center;
  padding: 0.75rem 0;
  margin: 0.2rem 0.5rem;
}

.launcher-sidebar.collapsed .launcher-user-card {
  justify-content: center;
  padding: 0.6rem;
}

/* Brand Section */
.launcher-sidebar-brand {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  padding: 1.25rem 1.4rem;
  border-bottom: 1px solid var(--ax-border-light);
  position: relative;
}

.launcher-logo-icon {
  width: 40px;
  height: 40px;
  border-radius: var(--ax-radius-md);
  background: linear-gradient(135deg, var(--ax-primary) 0%, var(--ax-accent) 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #ffffff;
  font-family: var(--mono, monospace);
  font-weight: 700;
  font-size: 1rem;
  letter-spacing: -0.5px;
  box-shadow: 0 4px 12px var(--ax-primary-glow);
  flex-shrink: 0;
}

.launcher-sidebar-title {
  font-size: 1.12rem;
  font-weight: 800;
  color: var(--ax-dark);
  letter-spacing: -0.02em;
  line-height: 1.1;
}

.launcher-sidebar-sub {
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.8px;
  color: var(--ax-text-muted);
  font-weight: 600;
  margin-top: 1px;
}

/* Sidebar Collapse Toggle Button */
.sidebar-collapse-btn {
  background: var(--ax-surface-subtle);
  border: 1px solid var(--ax-border);
  color: var(--ax-text-muted);
  border-radius: var(--ax-radius-sm);
  width: 26px;
  height: 26px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  margin-left: auto;
  font-size: 0.75rem;
  transition: all var(--ax-transition-fast);
}

.sidebar-collapse-btn:hover {
  background: var(--ax-border);
  color: var(--ax-dark);
}

/* Live Status Indicator ("Connected to Supabase") */
.launcher-live-status-card {
  margin: 0.85rem 1.15rem 0.5rem;
  padding: 0.65rem 0.85rem;
  background: #f0fdf4;
  border: 1px solid #bbf7d0;
  border-radius: var(--ax-radius-md);
  display: flex;
  align-items: center;
  gap: 0.6rem;
}

.launcher-live-status-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #16a34a;
  box-shadow: 0 0 0 3px rgba(22, 163, 74, 0.2);
  flex-shrink: 0;
  animation: axPulseDot 2s infinite ease-in-out;
}

@keyframes axPulseDot {
  0%, 100% { transform: scale(1); opacity: 1; }
  50% { transform: scale(1.15); opacity: 0.6; }
}

.launcher-live-status-text {
  font-size: 0.72rem;
  font-weight: 700;
  color: #15803d;
  line-height: 1.2;
}

.launcher-live-status-sub {
  font-size: 0.62rem;
  color: #166534;
  font-weight: 500;
  display: block;
}

/* Nav Sections */
.launcher-nav-section {
  padding: 1.15rem 1.4rem 0.45rem;
  font-size: 0.65rem;
  text-transform: uppercase;
  letter-spacing: 1.2px;
  font-weight: 700;
  color: var(--ax-text-light);
  font-family: inherit;
}

/* Nav Item with Left Active Indicator Bar */
.launcher-nav-item {
  display: flex;
  align-items: center;
  gap: 0.8rem;
  padding: 0.65rem 1.15rem;
  margin: 0.15rem 0.75rem;
  border-radius: var(--ax-radius-md);
  color: var(--ax-slate-lighter);
  font-size: 0.88rem;
  font-weight: 600;
  cursor: pointer;
  transition: all var(--ax-transition-fast);
  position: relative;
  text-decoration: none;
}

.launcher-nav-item:hover {
  background: var(--ax-surface-subtle);
  color: var(--ax-dark);
}

.launcher-nav-item.active {
  background: var(--ax-accent-light);
  color: var(--ax-accent);
  font-weight: 700;
}

/* Active vertical bar on left */
.launcher-nav-item.active::before {
  content: '';
  position: absolute;
  left: -0.75rem;
  top: 15%;
  bottom: 15%;
  width: 3.5px;
  background: var(--ax-accent);
  border-radius: 0 4px 4px 0;
}

.launcher-nav-icon {
  width: 32px;
  height: 32px;
  border-radius: 8px;
  background: var(--ax-surface-subtle);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.05rem;
  flex-shrink: 0;
  transition: all var(--ax-transition-fast);
}

.launcher-nav-item:hover .launcher-nav-icon {
  background: #ffffff;
  box-shadow: var(--ax-shadow-xs);
  transform: scale(1.05);
}

.launcher-nav-item.active .launcher-nav-icon {
  background: #ffffff;
  color: var(--ax-accent);
  box-shadow: 0 2px 6px var(--ax-accent-glow);
}

/* Status Badges */
.launcher-nav-badge,
.module-badge {
  margin-left: auto;
  padding: 0.18rem 0.55rem;
  border-radius: var(--ax-radius-full);
  font-size: 0.62rem;
  font-weight: 700;
  letter-spacing: 0.4px;
  text-transform: uppercase;
}

.badge-active {
  background: var(--ax-emerald-bg);
  color: var(--ax-emerald-dark);
  border: 1px solid rgba(16, 185, 129, 0.25);
}

.badge-live {
  background: #fef2f2;
  color: #dc2626;
  border: 1px solid rgba(220, 38, 38, 0.25);
  animation: axPulseBadge 2s infinite ease-in-out;
}

@keyframes axPulseBadge {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.65; }
}

.badge-dev {
  background: var(--ax-amber-bg);
  color: var(--ax-amber-dark);
  border: 1px solid rgba(245, 158, 11, 0.25);
}

.badge-new {
  background: var(--ax-indigo-bg);
  color: var(--ax-indigo);
  border: 1px solid rgba(99, 102, 241, 0.25);
}

/* Sidebar Footer & User Profile */
.launcher-sidebar-footer {
  margin-top: auto;
  padding: 1rem 1.15rem;
  border-top: 1px solid var(--ax-border-light);
  background: #ffffff;
}

.launcher-user-card {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.65rem 0.85rem;
  background: var(--ax-surface-subtle);
  border: 1px solid var(--ax-border);
  border-radius: var(--ax-radius-lg);
  transition: all var(--ax-transition-fast);
}

.launcher-user-card:hover {
  border-color: var(--ax-border-hover);
  background: #ffffff;
  box-shadow: var(--ax-shadow-xs);
}

.launcher-user-avatar {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--ax-primary) 0%, var(--ax-accent) 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #ffffff;
  font-weight: 700;
  font-size: 0.85rem;
  flex-shrink: 0;
  box-shadow: 0 2px 6px var(--ax-primary-glow);
}

.launcher-user-info {
  flex: 1;
  min-width: 0;
}

.launcher-user-name {
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--ax-dark);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.launcher-user-role {
  font-size: 0.68rem;
  color: var(--ax-text-muted);
  font-weight: 500;
  display: flex;
  align-items: center;
  gap: 4px;
}

.launcher-user-role::before {
  content: '';
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--ax-emerald);
}

/* ==========================================================================
   6. MAIN LAUNCHER CONTENT AREA (.launcher-content)
   ========================================================================== */
.launcher-content {
  flex: 1;
  overflow-y: auto;
  padding: 1.75rem clamp(1.25rem, 3vw, 2.75rem);
  display: flex;
  flex-direction: column;
  background: var(--ax-bg);
}

/* Top Bar */
.launcher-topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 1.75rem;
  background: #ffffff;
  border: 1px solid var(--ax-border);
  border-radius: var(--ax-radius-lg);
  padding: 1rem 1.5rem;
  box-shadow: var(--ax-shadow-sm);
  flex-wrap: wrap;
  gap: 1rem;
}

.launcher-topbar-left {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}

.launcher-greeting-row {
  display: flex;
  align-items: center;
  gap: 0.65rem;
}

.launcher-greeting {
  font-size: 1.45rem;
  font-weight: 800;
  color: var(--ax-dark);
  letter-spacing: -0.025em;
  line-height: 1.2;
}

.launcher-shift-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  background: var(--ax-primary-light);
  border: 1px solid rgba(15, 118, 110, 0.2);
  color: var(--ax-primary);
  font-size: 0.72rem;
  font-weight: 700;
  padding: 0.22rem 0.65rem;
  border-radius: var(--ax-radius-full);
}

.launcher-shift-badge::before {
  content: '';
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--ax-primary);
}

.launcher-greeting-sub {
  font-size: 0.85rem;
  color: var(--ax-text-muted);
}

/* Topbar Actions */
.launcher-actions {
  display: flex;
  gap: 0.85rem;
  align-items: center;
}

/* Quick Search with ⌘K Shortcut Hint */
.launcher-search-wrap {
  position: relative;
  display: flex;
  align-items: center;
}

.launcher-search {
  background: var(--ax-surface-subtle);
  border: 1.5px solid var(--ax-border);
  border-radius: var(--ax-radius-md);
  padding: 0.6rem 3.2rem 0.6rem 2.5rem;
  font-size: 0.85rem;
  width: 260px;
  outline: none;
  color: var(--ax-dark);
  font-family: inherit;
  font-weight: 500;
  transition: all var(--ax-transition-fast);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' fill='%2364748b' viewBox='0 0 16 16'%3E%3Cpath d='M11.742 10.344a6.5 6.5 0 1 0-1.397 1.398h-.001l3.85 3.85a1 1 0 0 0 1.415-1.414l-3.85-3.85zm-5.242.156a5 5 0 1 1 0-10 5 5 0 0 1 0 10z'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: 0.85rem center;
}

.launcher-search:focus {
  background: #ffffff;
  border-color: var(--ax-accent);
  box-shadow: 0 0 0 4px var(--ax-accent-light);
  width: 300px;
}

.launcher-search-shortcut {
  position: absolute;
  right: 0.75rem;
  top: 50%;
  transform: translateY(-50%);
  background: #ffffff;
  border: 1px solid var(--ax-border);
  border-radius: 4px;
  padding: 2px 6px;
  font-size: 0.65rem;
  font-family: var(--mono, monospace);
  font-weight: 700;
  color: var(--ax-text-muted);
  pointer-events: none;
  box-shadow: var(--ax-shadow-xs);
}

/* Notification Bell with Badge */
.launcher-notif {
  width: 40px;
  height: 40px;
  background: var(--ax-surface-subtle);
  border: 1.5px solid var(--ax-border);
  border-radius: var(--ax-radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  font-size: 1.1rem;
  color: var(--ax-slate);
  transition: all var(--ax-transition-fast);
  position: relative;
}

.launcher-notif:hover {
  background: #ffffff;
  border-color: var(--ax-accent);
  color: var(--ax-accent);
  box-shadow: var(--ax-shadow-xs);
}

.launcher-notif-badge {
  position: absolute;
  top: -4px;
  right: -4px;
  background: var(--ax-rose);
  color: #ffffff;
  font-size: 0.62rem;
  font-weight: 800;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 2px solid #ffffff;
  box-shadow: 0 2px 4px rgba(239, 68, 68, 0.4);
}

/* ==========================================================================
   7. EXECUTIVE KPI SUMMARY BANNER (.exec-kpi-banner)
   ========================================================================== */
.exec-kpi-banner {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.1rem;
  margin-bottom: 2rem;
}

.exec-kpi-card {
  background: #ffffff;
  border: 1px solid var(--ax-border);
  border-radius: var(--ax-radius-lg);
  padding: 1.25rem 1.4rem;
  box-shadow: var(--ax-shadow-sm);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  transition: all var(--ax-transition-normal);
  position: relative;
  overflow: hidden;
}

.exec-kpi-card:hover {
  border-color: var(--ax-border-hover);
  box-shadow: var(--ax-shadow-md);
  transform: translateY(-2px);
}

.exec-kpi-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: var(--ax-border);
}

.exec-kpi-card.kpi-compliance::before { background: var(--ax-emerald); }
.exec-kpi-card.kpi-production::before { background: var(--ax-primary); }
.exec-kpi-card.kpi-quality::before { background: var(--ax-accent); }
.exec-kpi-card.kpi-tasks::before { background: var(--ax-amber); }

.exec-kpi-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 0.65rem;
}

.exec-kpi-title {
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.8px;
  color: var(--ax-text-muted);
}

.exec-kpi-icon {
  width: 28px;
  height: 28px;
  border-radius: 6px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.95rem;
}

.kpi-compliance .exec-kpi-icon { background: var(--ax-emerald-bg); color: var(--ax-emerald-dark); }
.kpi-production .exec-kpi-icon { background: var(--ax-primary-light); color: var(--ax-primary); }
.kpi-quality .exec-kpi-icon { background: var(--ax-accent-light); color: var(--ax-accent); }
.kpi-tasks .exec-kpi-icon { background: var(--ax-amber-bg); color: var(--ax-amber-dark); }

.exec-kpi-value-row {
  display: flex;
  align-items: baseline;
  gap: 0.5rem;
  margin-bottom: 0.5rem;
}

.exec-kpi-value {
  font-size: 1.65rem;
  font-weight: 800;
  color: var(--ax-dark);
  letter-spacing: -0.03em;
  font-family: var(--mono, monospace);
  line-height: 1;
}

.exec-kpi-tag {
  font-size: 0.68rem;
  font-weight: 700;
  padding: 0.15rem 0.45rem;
  border-radius: 4px;
}

.tag-good { background: #dcfce7; color: #15803d; }
.tag-normal { background: #e0f2fe; color: #0369a1; }
.tag-alert { background: #fee2e2; color: #b91c1c; }
.tag-warning { background: #fef3c7; color: #b45309; }

/* Progress / Mini Bar in KPI Card */
.exec-kpi-bar-wrap {
  width: 100%;
  height: 6px;
  background: var(--ax-surface-subtle);
  border-radius: var(--ax-radius-full);
  overflow: hidden;
  margin-top: 0.25rem;
}

.exec-kpi-bar-fill {
  height: 100%;
  border-radius: var(--ax-radius-full);
}

.kpi-compliance .exec-kpi-bar-fill { width: 98.7%; background: var(--ax-emerald); }
.kpi-production .exec-kpi-bar-fill { width: 95.7%; background: linear-gradient(90deg, var(--ax-primary), var(--ax-accent)); }
.kpi-quality .exec-kpi-bar-fill { width: 32%; background: var(--ax-accent); }
.kpi-tasks .exec-kpi-bar-fill { width: 65%; background: var(--ax-amber); }

.exec-kpi-sub {
  font-size: 0.72rem;
  color: var(--ax-text-muted);
  margin-top: 0.45rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.exec-kpi-sub strong {
  color: var(--ax-dark);
  font-family: var(--mono, monospace);
}

/* ==========================================================================
   8. MODULE GRID & ENTERPRISE APPLICATION TILES (.module-grid, .module-card)
   ========================================================================== */
.launcher-section-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 1.15rem;
}

.launcher-section-title {
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  color: var(--ax-text-muted);
  font-family: var(--mono, monospace);
  font-weight: 700;
}

.launcher-section-count {
  font-size: 0.72rem;
  color: var(--ax-text-light);
  font-weight: 600;
}

/* Responsive Grid (3 columns desktop) */
.module-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1.25rem;
  width: 100%;
  margin-bottom: 2rem;
}

/* Enterprise Application Tiles */
.module-card {
  background: #ffffff;
  border: 1px solid var(--ax-border);
  border-radius: var(--ax-radius-lg);
  padding: 1.5rem;
  cursor: pointer;
  transition: all var(--ax-transition-normal);
  position: relative;
  overflow: hidden;
  box-shadow: var(--ax-shadow-sm);
  display: flex;
  flex-direction: column;
}

.module-card:hover {
  border-color: var(--ax-border-focus);
  box-shadow: 0 0 0 1px var(--ax-border-focus), var(--ax-shadow-lg);
  transform: translateY(-3px);
}

.module-card.disabled {
  cursor: not-allowed;
  opacity: 0.65;
  background: #fafafa;
}

.module-card.disabled:hover {
  transform: none;
  border-color: var(--ax-border);
  box-shadow: var(--ax-shadow-sm);
}

/* Tile Top Header: Icon + Status Badge */
.module-card-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  margin-bottom: 1.15rem;
}

.module-icon {
  width: 48px;
  height: 48px;
  border-radius: var(--ax-radius-md);
  background: var(--ax-surface-subtle);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.45rem;
  transition: all var(--ax-transition-fast);
  box-shadow: inset 0 0 0 1px rgba(0, 0, 0, 0.04);
}

.module-card:hover .module-icon {
  transform: scale(1.08);
  background: #ffffff;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
}

.module-name {
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--ax-dark);
  letter-spacing: -0.015em;
  margin-bottom: 0.4rem;
  line-height: 1.25;
}

.module-tagline {
  font-size: 0.72rem;
  font-weight: 700;
  color: var(--ax-primary);
  text-transform: uppercase;
  letter-spacing: 0.6px;
  margin-bottom: 0.5rem;
}

.module-desc {
  font-size: 0.85rem;
  color: var(--ax-text-muted);
  line-height: 1.55;
  margin-bottom: 1.25rem;
  flex: 1;
}

/* Quick Action Links Footer */
.module-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 1rem;
  border-top: 1px solid var(--ax-border-light);
  margin-top: auto;
}

.module-action-link {
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--ax-accent);
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  transition: gap var(--ax-transition-fast);
}

.module-card:hover .module-action-link {
  gap: 0.55rem;
  color: var(--ax-accent-hover);
}

.module-arrow {
  position: static !important;
  font-size: 1rem;
  color: var(--ax-text-light);
  transition: transform var(--ax-transition-fast), color var(--ax-transition-fast);
}

.module-card:hover .module-arrow {
  color: var(--ax-accent);
  transform: translateX(4px);
}

/* Custom Module Card Accent Variants - Uniform Clean Enterprise */
.screening-card,
.production-card {
  background: #ffffff !important;
  border-color: var(--ax-border) !important;
}

.screening-card:hover,
.production-card:hover {
  border-color: #cbd5e1 !important;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05) !important;
}

.module-card[onclick*="openModule('oxide')"] .module-icon {
  background: #e0f2fe;
}

.module-card[onclick*="openModule('tasks')"] .module-icon {
  background: #fef3c7;
}

.module-card[onclick*="openModule('rejection')"] .module-icon {
  background: #ede9fe;
}

/* ==========================================================================
   9. GLOBAL SETTINGS MODAL STYLING (#global-settings-modal, .gs-modal)
   ========================================================================== */
#global-settings-modal {
  background: rgba(15, 23, 42, 0.65) !important;
  backdrop-filter: blur(10px) !important;
}

.modal.gs-modal {
  background: #ffffff !important;
  border: 1px solid var(--ax-border) !important;
  border-radius: var(--ax-radius-xl) !important;
  box-shadow: var(--ax-shadow-2xl) !important;
  padding: 2rem !important;
  animation: axModalSlideUp 0.3s ease-out;
}

@keyframes axModalSlideUp {
  from {
    opacity: 0;
    transform: translateY(20px) scale(0.98);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

.gs-tabs {
  border-bottom: 1.5px solid var(--ax-border) !important;
  gap: 0.35rem !important;
  margin-bottom: 1.75rem !important;
}

.gs-tab {
  padding: 0.65rem 1.15rem !important;
  font-size: 0.82rem !important;
  font-weight: 700 !important;
  color: var(--ax-text-muted) !important;
  border-radius: var(--ax-radius-md) var(--ax-radius-md) 0 0 !important;
  border-bottom: 2px solid transparent !important;
  transition: all var(--ax-transition-fast) !important;
}

.gs-tab:hover {
  color: var(--ax-dark) !important;
  background: var(--ax-surface-subtle) !important;
}

.gs-tab.active {
  color: var(--ax-accent) !important;
  border-bottom-color: var(--ax-accent) !important;
  background: transparent !important;
}

.gs-section-head {
  background: var(--ax-surface-subtle);
  border: 1px solid var(--ax-border);
  border-radius: var(--ax-radius-md);
  padding: 0.85rem 1.15rem;
  margin-bottom: 1.5rem;
}

.gs-section-head strong {
  display: block;
  font-size: 0.92rem;
  font-weight: 700;
  color: var(--ax-dark);
}

.gs-section-head span {
  font-size: 0.78rem;
  color: var(--ax-text-muted);
}

.gs-form-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.25rem;
  margin-bottom: 1.75rem;
}

.gs-form-grid .frow {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}

.gs-form-grid .frow label {
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--ax-dark);
}

.gs-form-grid input,
.gs-form-grid select {
  padding: 0.65rem 0.85rem;
  border: 1.5px solid var(--ax-border);
  border-radius: var(--ax-radius-md);
  font-family: inherit;
  font-size: 0.88rem;
  outline: none;
  transition: all var(--ax-transition-fast);
}

.gs-form-grid input:focus,
.gs-form-grid select:focus {
  border-color: var(--ax-accent);
  box-shadow: 0 0 0 3px var(--ax-accent-light);
}

.gs-switch-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1rem 1.15rem;
  background: #ffffff;
  border: 1px solid var(--ax-border);
  border-radius: var(--ax-radius-md);
  margin-bottom: 0.75rem;
  cursor: pointer;
  transition: border-color var(--ax-transition-fast);
}

.gs-switch-row:hover {
  border-color: var(--ax-border-hover);
  background: var(--ax-surface-subtle);
}

.btn-save,
.gs-save-btn {
  background: var(--ax-accent) !important;
  color: #ffffff !important;
  border: none !important;
  border-radius: var(--ax-radius-md) !important;
  padding: 0.75rem 1.4rem !important;
  font-weight: 700 !important;
  font-size: 0.88rem !important;
  cursor: pointer !important;
  box-shadow: 0 4px 12px var(--ax-accent-glow) !important;
  transition: all var(--ax-transition-fast) !important;
}

.btn-save:hover,
.gs-save-btn:hover {
  background: var(--ax-accent-hover) !important;
  box-shadow: 0 6px 16px rgba(37, 99, 235, 0.3) !important;
  transform: translateY(-1px);
}

/* ==========================================================================
   10. RESPONSIVE BREAKPOINTS (Desktop, Tablet, Mobile)
   ========================================================================== */

/* Tablet & Intermediate Desktops (<= 1100px) */
@media (max-width: 1100px) {
  .exec-kpi-banner {
    grid-template-columns: repeat(2, 1fr);
  }

  .module-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

/* Tablets (<= 900px) */
@media (max-width: 900px) {
  .login-dual-pane,
  #login-screen .login-shell {
    flex-direction: column;
    max-width: 520px;
  }

  .login-right {
    padding: 2rem 1.75rem;
  }

  .showcase-mini-grid {
    grid-template-columns: 1fr;
  }

  .launcher-sidebar {
    position: fixed;
    top: 0;
    bottom: 0;
    left: 0;
    transform: translateX(-100%);
    box-shadow: var(--ax-shadow-2xl);
  }

  .launcher-sidebar.open-mobile {
    transform: translateX(0);
  }

  .launcher-topbar {
    flex-direction: column;
    align-items: flex-start;
  }

  .launcher-actions {
    width: 100%;
    justify-content: space-between;
  }

  .launcher-search {
    width: 100%;
  }

  .launcher-search:focus {
    width: 100%;
  }
}

/* Mobile Devices (<= 680px) */
@media (max-width: 680px) {
  #login-screen {
    padding: 0.75rem;
  }

  .login-left {
    padding: 2rem 1.5rem;
  }

  .login-right {
    display: none; /* Hide showcase graphic on small phones to focus on auth */
  }

  .exec-kpi-banner {
    grid-template-columns: 1fr;
    gap: 0.75rem;
  }

  .module-grid {
    grid-template-columns: 1fr;
    gap: 0.9rem;
  }

  .gs-form-grid {
    grid-template-columns: 1fr;
  }

  .role-pills-wrap {
    grid-template-columns: 1fr;
  }
}
