/* ═══════════════════════════════════════════════════════════════════════════
   Call Center — Premium Dark UI
   Design: Dark glassmorphism, teal/emerald accent, smooth animations
   ═══════════════════════════════════════════════════════════════════════════ */

/* ─── Google Fonts ─────────────────────────────────────────────────────────── */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;800&family=JetBrains+Mono:wght@400;500&display=swap');

/* ─── CSS Variables ─────────────────────────────────────────────────────────── */
/* ─── Global & Structural Variables (Default Light Mode) ─── */
:root {
  color-scheme: light dark;

  /* Spacing */
  --sidebar-width: 200px;
  --sidebar-collapsed-width: 64px;
  --header-height: 64px;
  --radius-sm: 6px;
  --radius-md: 10px;
  --radius-lg: 16px;

  /* Transitions */
  --transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
  --transition-slow: all 0.35s cubic-bezier(0.4, 0, 0.2, 1);

  /* Default/White Mode Configurations */
  --bg-primary: #dde3e9;
  --bg-secondary: #f1f5f9;
  --bg-card: #ffffff;
  --bg-card-hover: #f1f5f9;
  --bg-glass: rgba(255, 255, 255, 0.85);

  /* Accent Colors */
  --accent-teal: #0d9488;
  --accent-teal-dark: #115e59;
  --accent-blue: #2563eb;
  --accent-purple: #7c3aed;

  /* Status Colors */
  --status-available: #16a34a;
  --status-busy: #dc2626;
  --status-acw: #ea580c;
  --status-away: #ca8a04;
  --status-offline: #4b5563;
  --status-break: #7c3aed;

  /* Text */
  --text-primary: #0f172a;
  --text-secondary: #475569;
  --text-muted: #64748b;

  /* Borders */
  --border: rgba(51, 65, 85, 0.12);
  --border-accent: rgba(13, 148, 136, 0.3);

  /* Shadows */
  --shadow-sm: 0 1px 3px rgba(15, 23, 42, 0.05);
  --shadow-md: 0 4px 20px rgba(15, 23, 42, 0.08);
  --shadow-lg: 0 8px 40px rgba(15, 23, 42, 0.12);
  --glow-teal: 0 0 20px rgba(13, 148, 136, 0.15);

}

/* ─── Dark Mode Configurations ─── */
[data-theme="dark"] {
  --bg-primary: #0a0e1a;
  --bg-secondary: #111827;
  --bg-card: #1a2235;
  --bg-card-hover: #1e2a40;
  --bg-glass: rgba(26, 34, 53, 0.85);
  --bs-secondary-color: #94a3b8;
  /* Accent Colors */
  --accent-teal: #14b8a6;
  --accent-teal-dark: #0d9488;
  --accent-blue: #3b82f6;
  --accent-purple: #8b5cf6;

  /* Status Colors */
  --status-available: #22c55e;
  --status-busy: #ef4444;
  --status-acw: #f97316;
  --status-away: #eab308;
  --status-offline: #6b7280;
  --status-break: #8b5cf6;

  /* Text */
  --text-primary: #f1f5f9;
  --text-secondary: #94a3b8;
  --text-muted: #64748b;

  /* Borders */
  --border: rgba(148, 163, 184, 0.12);
  --border-accent: rgba(20, 184, 166, 0.3);

  /* Shadows */
  --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.4);
  --shadow-md: 0 4px 20px rgba(0, 0, 0, 0.5);
  --shadow-lg: 0 8px 40px rgba(0, 0, 0, 0.6);
  --glow-teal: 0 0 20px rgba(20, 184, 166, 0.3);
}
/* ─── Reset & Base ────────────────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html { font-size: 15px; scroll-behavior: smooth; }

body {
  font-family: 'Inter', -apple-system, sans-serif;
  background: var(--bg-primary);
  color: var(--text-primary);
  line-height: 1.6;
  min-height: 100vh;
  -webkit-font-smoothing: antialiased;
}

/* ─── Scrollbar ────────────────────────────────────────────────────────────── */
::-webkit-scrollbar { width: 6px; height: 6px; }
::-webkit-scrollbar-track { background: var(--bg-secondary); }
::-webkit-scrollbar-thumb { background: var(--border); border-radius: 3px; }
::-webkit-scrollbar-thumb:hover { background: var(--text-muted); }

/* ─── Layout ────────────────────────────────────────────────────────────────── */
.layout { display: flex; min-height: 100vh; }

/* ─── Sidebar ───────────────────────────────────────────────────────────────── */
.sidebar {
  width: var(--sidebar-width);
  background: var(--bg-secondary);
  border-right: 1px solid var(--border);
  display: flex;
  flex-direction: column;
  position: fixed;
  top: 0; left: 0;
  height: 100vh;
  z-index: 100;
  overflow: hidden;
  transition: width 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.sidebar-logo {
  padding: 20px 20px 16px;
  border-bottom: 1px solid var(--border);
  display: flex;
  align-items: center;
  gap: 10px;
}

.sidebar-logo .logo-icon {
  width: 36px; height: 36px;
  background: linear-gradient(135deg, var(--accent-teal), var(--accent-blue));
  border-radius: var(--radius-sm);
  display: flex; align-items: center; justify-content: center;
  font-size: 18px;
}

.sidebar-logo .logo-text {
  font-size: 16px;
  font-weight: 700;
  color: var(--text-primary);
  letter-spacing: -0.3px;
}

.sidebar-logo .logo-sub {
  font-size: 10px;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 1px;
}

.sidebar-nav {
  flex: 1;
  padding: 12px 0;
  overflow-y: auto;
}

.nav-section-label {
  font-size: 10px;
  font-weight: 600;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 1.2px;
  padding: 12px 20px 6px;
}

.nav-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 9px 20px;
  color: var(--text-secondary);
  text-decoration: none;
  font-size: 13.5px;
  font-weight: 500;
  transition: var(--transition);
  border-left: 2px solid transparent;
  position: relative;
}

.nav-item:hover {
  color: var(--text-primary);
  background: rgba(255,255,255,0.04);
}

.nav-item.active {
  color: var(--accent-teal);
  background: rgba(20, 184, 166, 0.08);
  border-left-color: var(--accent-teal);
}

.nav-item .nav-icon {
  width: 18px;
  text-align: center;
  font-size: 15px;
  opacity: 0.8;
}

.nav-item .nav-badge {
  margin-left: auto;
  background: var(--accent-teal);
  color: #000;
  font-size: 10px;
  font-weight: 700;
  padding: 1px 6px;
  border-radius: 10px;
}

/* ─── Nav Group (collapsible submenu) ───────────────────────────────────────── */
.nav-group-toggle {
  width: 100%;
  background: none;
  border: none;
  cursor: pointer;
  text-align: left;
  font-family: inherit;
}

.nav-group-toggle .nav-arrow {
  margin-left: auto;
  font-size: 11px;
  opacity: 0.6;
  transition: transform 0.2s ease;
}

.nav-group.expanded .nav-group-toggle .nav-arrow {
  transform: rotate(180deg);
}

.nav-group.expanded .nav-group-toggle {
  color: var(--text-primary);
}

.nav-sub {
  overflow: hidden;
  transition: max-height 0.25s ease;
}

.nav-sub-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 7px 20px 7px 48px;
  color: var(--text-secondary);
  text-decoration: none;
  font-size: 13px;
  font-weight: 500;
  border-left: 2px solid transparent;
  transition: var(--transition);
}

.nav-sub-item .nav-icon {
  width: 18px;
  text-align: center;
  font-size: 13px;
  opacity: 0.6;
}

.nav-sub-item:hover {
  color: var(--text-primary);
  background: rgba(255, 255, 255, 0.04);
}

.nav-sub-item.active {
  color: var(--accent-teal);
  background: rgba(20, 184, 166, 0.08);
  border-left-color: var(--accent-teal);
}

/* Sidebar footer */
.sidebar-footer {
  border-top: 1px solid var(--border);
  padding: 16px 20px;
}

.agent-card-mini {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px;
  border-radius: var(--radius-sm);
  background: var(--bg-card);
  cursor: pointer;
  transition: var(--transition);
}

.agent-card-mini:hover { background: var(--bg-card-hover); }

.agent-avatar {
  width: 32px; height: 32px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--accent-teal), var(--accent-blue));
  display: flex; align-items: center; justify-content: center;
  font-size: 13px;
  font-weight: 700;
  color: #fff;
  position: relative;
  flex-shrink: 0;
}

.agent-avatar .status-dot {
  position: absolute;
  bottom: 0; right: 0;
  width: 9px; height: 9px;
  border-radius: 50%;
  border: 2px solid var(--bg-card);
}

.agent-info .agent-name {
  font-size: 12px;
  font-weight: 600;
  color: var(--text-primary);
  line-height: 1.2;
}

.agent-info .agent-ext {
  font-size: 11px;
  color: var(--text-muted);
}

/* ─── Sidebar Collapsed ──────────────────────────────────────────────────────── */
html[data-sidebar="collapsed"] .sidebar {
  width: var(--sidebar-collapsed-width);
}

html[data-sidebar="collapsed"] .sidebar .sidebar-logo .logo-text,
html[data-sidebar="collapsed"] .sidebar .sidebar-logo .logo-sub,
html[data-sidebar="collapsed"] .sidebar .nav-section-label,
html[data-sidebar="collapsed"] .sidebar .nav-item span:not(.nav-icon),
html[data-sidebar="collapsed"] .sidebar .nav-item .nav-badge,
html[data-sidebar="collapsed"] .sidebar .nav-group .nav-arrow,
html[data-sidebar="collapsed"] .sidebar .nav-sub,
html[data-sidebar="collapsed"] .sidebar .agent-info,
html[data-sidebar="collapsed"] .sidebar .sidebar-logout {
  display: none;
}

html[data-sidebar="collapsed"] .sidebar .sidebar-logo {
  justify-content: center;
  padding: 16px 0;
}

html[data-sidebar="collapsed"] .sidebar .sidebar-logo .logo-icon {
  width: 32px; height: 32px;
  font-size: 16px;
}

html[data-sidebar="collapsed"] .sidebar .nav-item {
  justify-content: center;
  padding: 10px 0;
  border-left: none;
  position: relative;
}

html[data-sidebar="collapsed"] .sidebar .nav-group-toggle {
  padding: 10px 0;
}

html[data-sidebar="collapsed"] .sidebar .nav-item.active {
  border-left: none;
  background: rgba(20, 184, 166, 0.12);
}

html[data-sidebar="collapsed"] .sidebar .nav-item .nav-icon {
  width: auto;
}

html[data-sidebar="collapsed"] .sidebar .sidebar-footer {
  padding: 12px;
}

html[data-sidebar="collapsed"] .sidebar .agent-card-mini {
  justify-content: center;
  padding: 8px 4px;
}

html[data-sidebar="collapsed"] .sidebar .agent-avatar {
  width: 28px; height: 28px;
  font-size: 11px;
}

html[data-sidebar="collapsed"] .main-content {
  margin-left: var(--sidebar-collapsed-width);
}

/* ─── Mobile Sidebar Overlay ─────────────────────────────────────────────────── */
.sidebar-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.4);
  z-index: 99;
  transition: opacity 0.2s ease;
}

body.sidebar-mobile-open .sidebar-overlay {
  display: block;
}

body.sidebar-mobile-open .sidebar {
  width: var(--sidebar-width);
  z-index: 101;
}

@media (max-width: 768px) {
  .sidebar {
    transform: translateX(-100%);
  }

  .main-content {
    margin-left: 0 !important;
  }

  body.sidebar-mobile-open .sidebar {
    transform: translateX(0);
    width: var(--sidebar-width);
  }
}

/* ─── Main Content ──────────────────────────────────────────────────────────── */
.main-content {
  margin-left: var(--sidebar-width);
  flex: 1;
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}

/* ─── Header ────────────────────────────────────────────────────────────────── */
.header {
  height: var(--header-height);
  background: var(--bg-secondary);
  border-bottom: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 24px;
  position: sticky;
  top: 0;
  z-index: 50;
}

.header-left {
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
  flex: 1 1 auto;
}

.page-title {
  font-size: 18px;
  font-weight: 700;
  color: var(--text-primary);
  letter-spacing: -0.3px;
  margin: 0;
  line-height: 1;
}

.breadcrumb {
  font-size: 12px;
  color: var(--text-muted);
}

.header-right {
  display: flex;
  align-items: center;
  gap: 12px;
}

/* ─── Theme Dropdown ─────────────────────────────────────────────────────────── */
.theme-trigger {
  background: none;
  border: none;
  padding: 4px 6px;
  color: var(--text-secondary);
  font-size: 20px;
  line-height: 1;
  cursor: pointer;
  transition: color var(--transition);
}

.theme-trigger:hover,
.theme-trigger:focus-visible {
  color: var(--text-primary);
  outline: none;
}

/* Hide the Bootstrap caret */
.theme-trigger.dropdown-toggle::after {
  display: none;
}

/* Tint the active/selected option */
.dropdown-item.theme-option.active {
  background: rgba(13, 148, 136, 0.12);
  color: var(--accent-teal);
  font-weight: 500;
}

/* Theme the Bootstrap dropdown-menu with CSS vars so it adapts to dark mode */
[data-theme] .dropdown-menu {
  background-color: var(--bg-card);
  border-color: var(--border);
  box-shadow: var(--shadow-md);
  color: var(--text-primary);
}

[data-theme] .dropdown-item {
  color: var(--text-secondary);
}

[data-theme] .dropdown-item:hover,
[data-theme] .dropdown-item:focus {
  background-color: var(--bg-secondary);
  color: var(--text-primary);
}
/* Connection indicator */
.connection-badge {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 5px 10px;
  border-radius: 20px;
  font-size: 12px;
  font-weight: 500;
  background: rgba(34, 197, 94, 0.1);
  color: var(--status-available);
  border: 1px solid rgba(34, 197, 94, 0.2);
  transition: var(--transition);
}

.connection-badge.disconnected {
  background: rgba(239, 68, 68, 0.1);
  color: var(--status-busy);
  border-color: rgba(239, 68, 68, 0.2);
}

.connection-badge .pulse-dot {
  width: 7px; height: 7px;
  border-radius: 50%;
  background: currentColor;
  animation: pulse 2s infinite;
}

@keyframes pulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.5; transform: scale(0.8); }
}

/* Header buttons */
.btn-icon {
  width: 36px; height: 36px;
  border-radius: var(--radius-sm);
  background: var(--bg-card);
  border: 1px solid var(--border);
  color: var(--text-secondary);
  display: inline-flex; align-items: center; justify-content: center;
  cursor: pointer;
  transition: var(--transition);
  text-decoration: none;
  font-size: 14px;
}

.btn-icon:hover {
  background: var(--bg-card-hover);
  color: var(--text-primary);
  border-color: var(--border-accent);
}

/* ─── Page Content ──────────────────────────────────────────────────────────── */
.page-content {
  padding: 24px;
  flex: 1;
}

/* ─── Stats Grid / Dashboard Grid ──────────────────────────────────────────── */
/* Layout now uses Bootstrap grid (row/col) in dashboard/index.html.
   Stat-card theming and dashboard overrides live in css/pages/dashboard.css. */

/* Panel / Card — now handled by Bootstrap .card (see app.css).
   Agent grid — now handled by Bootstrap row/col in dashboard. */

.status-badge {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 3px 8px;
  border-radius: 20px;
  font-size: 11px;
  font-weight: 600;
  text-transform: capitalize;
}

.status-badge::before {
  content: '';
  width: 6px; height: 6px;
  border-radius: 50%;
  background: currentColor;
}

.status-available { background: rgba(34,197,94,0.1);  color: var(--status-available); }
.status-busy      { background: rgba(239,68,68,0.1);  color: var(--status-busy); }
.status-acw       { background: rgba(249,115,22,0.1); color: var(--status-acw); }
.status-away      { background: rgba(234,179,8,0.1);  color: var(--status-away); }
.status-offline   { background: rgba(107,114,128,0.1);color: var(--status-offline); }
.status-on_break  { background: rgba(139,92,246,0.1); color: var(--status-break); }

/* ─── Live Call Feed ─────────────────────────────────────────────────────────── */
.call-feed { max-height: 400px; overflow-y: auto; }

.call-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 16px;
  border-bottom: 1px solid var(--border);
  transition: var(--transition);
  animation: slideInLeft 0.3s ease;
}

@keyframes slideInLeft {
  from { transform: translateX(-20px); opacity: 0; }
  to   { transform: translateX(0);     opacity: 1; }
}

.call-item:hover { background: rgba(255,255,255,0.03); }
.call-item:last-child { border-bottom: none; }

.call-icon {
  width: 36px; height: 36px;
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: 14px;
  flex-shrink: 0;
}

.call-icon.ringing  { background: rgba(234,179,8,0.15); color: var(--status-away); }
.call-icon.answered { background: rgba(34,197,94,0.15); color: var(--status-available); }
.call-icon.bridged  { background: rgba(59,130,246,0.15); color: var(--accent-blue); }

.call-info .caller   { font-size: 13px; font-weight: 600; color: var(--text-primary); }
.call-info .queue    { font-size: 11px; color: var(--text-muted); }
.call-timer {
  margin-left: auto;
  font-family: 'JetBrains Mono', monospace;
  font-size: 12px;
  color: var(--text-muted);
}

/* ─── Queue Panel ────────────────────────────────────────────────────────────── */
.queue-item {
  padding: 12px 16px;
  border-bottom: 1px solid var(--border);
}

.queue-item:last-child { border-bottom: none; }

.queue-name {
  font-size: 13px;
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: 6px;
}

.queue-meta {
  display: flex;
  gap: 12px;
}

.queue-stat {
  display: flex;
  align-items: center;
  gap: 4px;
  font-size: 11px;
  color: var(--text-muted);
}

.queue-stat span { color: var(--text-secondary); font-weight: 600; }

.queue-bar {
  height: 3px;
  background: var(--border);
  border-radius: 2px;
  margin-top: 8px;
  overflow: hidden;
}

.queue-bar-fill {
  height: 100%;
  background: linear-gradient(90deg, var(--accent-teal), var(--accent-blue));
  border-radius: 2px;
  transition: width 0.5s ease;
}

/* ─── Table ──────────────────────────────────────────────────────────────────── */
/* .table-container and .data-table replaced by Bootstrap .table (see app.css). */

.mono { font-family: 'JetBrains Mono', monospace; font-size: 12px; }

/* Disposition badges */
.disp-badge {
  padding: 2px 8px;
  border-radius: 10px;
  font-size: 11px;
  font-weight: 600;
  text-transform: capitalize;
}
.disp-answered   { background: rgba(34,197,94,0.1);  color: var(--status-available); }
.disp-missed     { background: rgba(239,68,68,0.1);  color: var(--status-busy); }
.disp-abandoned  { background: rgba(249,115,22,0.1); color: var(--status-acw); }
.disp-voicemail  { background: rgba(139,92,246,0.1); color: var(--status-break); }

/* ─── Forms / Filters ────────────────────────────────────────────────────────── */
/* .filter-bar and .data-table replaced by Bootstrap .card/.table (see app.css).
   .form-input/.form-select replaced by Bootstrap .form-control/.form-select. */

.form-input::placeholder { color: var(--text-muted); }

/* ─── Buttons ────────────────────────────────────────────────────────────────── */
/* Button styles now live in app.css with Bootstrap theme overrides. */

/* ─── Softphone ──────────────────────────────────────────────────────────────── */
.softphone-panel {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 28px;
  max-width: 340px;
  margin: 0 auto;
  box-shadow: var(--shadow-lg);
}

.softphone-display {
  background: var(--bg-secondary);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 20px;
  text-align: center;
  margin-bottom: 20px;
  min-height: 80px;
}

.softphone-number {
  font-size: 28px;
  font-family: 'JetBrains Mono', monospace;
  font-weight: 700;
  color: var(--text-primary);
  letter-spacing: 2px;
}

.softphone-status {
  font-size: 12px;
  color: var(--text-muted);
  margin-top: 4px;
}

.dialpad {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
  margin-bottom: 16px;
}

.dialpad-btn {
  background: var(--bg-secondary);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 14px;
  text-align: center;
  cursor: pointer;
  transition: var(--transition);
  user-select: none;
}

.dialpad-btn:hover {
  background: var(--bg-card-hover);
  border-color: var(--border-accent);
  color: var(--accent-teal);
}

.dialpad-btn:active { transform: scale(0.95); }

.dialpad-btn .digit {
  font-size: 18px;
  font-weight: 700;
  color: var(--text-primary);
  font-family: 'JetBrains Mono', monospace;
}

.dialpad-btn .letters {
  font-size: 9px;
  color: var(--text-muted);
  letter-spacing: 1px;
  margin-top: 2px;
}

.softphone-controls {
  display: flex;
  gap: 10px;
}

.btn-call {
  flex: 1;
  background: var(--status-available);
  color: #fff;
  border: none;
  border-radius: var(--radius-md);
  padding: 14px;
  font-size: 22px;
  cursor: pointer;
  transition: var(--transition);
}

.btn-call:hover {
  background: #16a34a;
  box-shadow: 0 0 20px rgba(34,197,94,0.4);
}

.btn-hangup {
  flex: 1;
  background: var(--status-busy);
  color: #fff;
  border: none;
  border-radius: var(--radius-md);
  padding: 14px;
  font-size: 22px;
  cursor: pointer;
  transition: var(--transition);
  display: none;
}

.btn-hangup:hover {
  background: #dc2626;
  box-shadow: 0 0 20px rgba(239,68,68,0.4);
}

.btn-hangup.active { display: flex; align-items: center; justify-content: center; }

/* ─── Login Page ─────────────────────────────────────────────────────────────── */
.login-page {
  min-height: 100vh;
  background: var(--bg-primary);
  display: flex;
  align-items: center;
  justify-content: center;
  background-image: radial-gradient(ellipse at 20% 50%, rgba(20,184,166,0.08) 0%, transparent 60%),
                    radial-gradient(ellipse at 80% 20%, rgba(59,130,246,0.06) 0%, transparent 50%);
}

.login-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 40px;
  width: 100%;
  max-width: 400px;
  box-shadow: var(--shadow-lg);
}

.login-logo {
  text-align: center;
  margin-bottom: 28px;
}

.login-logo .logo-mark {
  width: 52px; height: 52px;
  background: linear-gradient(135deg, var(--accent-teal), var(--accent-blue));
  border-radius: var(--radius-md);
  display: inline-flex; align-items: center; justify-content: center;
  font-size: 24px;
  margin-bottom: 12px;
  box-shadow: var(--glow-teal);
}

.login-logo h1 {
  font-size: 22px;
  font-weight: 800;
  color: var(--text-primary);
}

.login-logo p {
  font-size: 13px;
  color: var(--text-muted);
  margin-top: 4px;
}

.form-group { margin-bottom: 16px; }
.form-label {
  display: block;
  font-size: 12px;
  font-weight: 600;
  color: var(--text-secondary);
  margin-bottom: 6px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.form-input-lg {
  width: 100%;
  background: var(--bg-secondary);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  color: var(--text-primary);
  padding: 11px 14px;
  font-size: 14px;
  font-family: 'Inter', sans-serif;
  transition: var(--transition);
  outline: none;
}

.form-input-lg:focus {
  border-color: var(--accent-teal);
  box-shadow: 0 0 0 3px rgba(20,184,166,0.12);
}

.btn-login {
  width: 100%;
  background: linear-gradient(135deg, var(--accent-teal), var(--accent-blue));
  color: #fff;
  border: none;
  border-radius: var(--radius-md);
  padding: 12px;
  font-size: 15px;
  font-weight: 600;
  cursor: pointer;
  font-family: 'Inter', sans-serif;
  transition: var(--transition);
  margin-top: 8px;
}

.btn-login:hover {
  opacity: 0.9;
  box-shadow: 0 0 24px rgba(20,184,166,0.4);
  transform: translateY(-1px);
}

/* ─── Notifications Toast (Bootstrap, top-center) ──────────────────────────────── */
#toast-container {
  position: fixed;
  top: 1rem;
  left: 0;
  right: 0;
  margin: 0 auto;
  z-index: 3000;
  width: max-content;
  max-width: calc(100vw - 2rem);
  display: flex;
  flex-direction: column-reverse;
  align-items: center;
  gap: 4px;
  pointer-events: none;
}

#toast-container .toast {
  pointer-events: auto;
  border: 1px solid var(--border-accent);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-lg);
  color: #fff;
  min-width: 320px;
  max-width: 100%;
  border-left: 3px solid rgba(255, 255, 255, 0.9);
  animation: toastInTop 0.28s ease;
}

@keyframes toastInTop {
  from { transform: translateY(-16px); opacity: 0; }
  to   { transform: translateY(0);     opacity: 1; }
}

#toast-container .toast .toast-body {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13.5px;
  font-weight: 600;
}

#toast-container .toast .toast-msg-text {
  flex: 1 1 auto;
  min-width: 0;
}

.toast-msg-icon { font-size: 16px; line-height: 1; }

/* Variants: success / failure / info */
.toast-success { background: linear-gradient(135deg, #16a34a, #15803d); }
.toast-failure { background: linear-gradient(135deg, #dc2626, #b91c1c); }
.toast-info    { background: linear-gradient(135deg, #2563eb, #1e40af); }
.toast-warn    { background: linear-gradient(135deg, #d97706, #b45309); }


/* ─── Session Timer Card ───────────────────────────────────────────────────────── */
.session-timer-card {
    position: fixed;
    top: 10px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 9999;
    border: 1px solid var(--status-busy);
    padding: 10px 20px;
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-lg);
    display: flex;
    align-items: center;
    gap: 12px;
    animation: slideDown 0.3s ease-out;
    transition: opacity 0.5s ease;
}

.session-timer-card i {
    color: var(--status-busy);
    font-size: 1.2rem;
}

.session-timer-text {
    font-weight: 600;
    color: var(--text-primary);
    font-size: 14px;
}

.session-timer-value {
    color: var(--status-busy);
    font-weight: 800;
    font-family: 'JetBrains Mono', monospace;
}

@keyframes slideDown {
    from { transform: translate(-50%, -20px); opacity: 0; }
    to { transform: translate(-50%, 0); opacity: 1; }
}

