/* -------------------------------------------------------------
 * Speech Fluency & Stuttering Tracker (FluencyTally)
 * Clinical Mobile-First Console (Top %SS HUD & 6 Disfluency Taxonomy)
 * Version 4.0.0
 * ------------------------------------------------------------- */

:root {
  /* Core Colors */
  --bg-main: #090d16;
  --bg-card: rgba(18, 26, 46, 0.85);
  --bg-card-hover: rgba(26, 38, 66, 0.95);
  --border-glass: rgba(255, 255, 255, 0.09);
  --border-focus: rgba(2, 132, 199, 0.5);
  
  --primary: #0284c7; /* Electric Cyan */
  --primary-glow: rgba(2, 132, 199, 0.35);
  
  /* Clinical Status */
  --fluent-green: #10b981;
  --fluent-green-glow: rgba(16, 185, 129, 0.35);
  --fluent-border: rgba(16, 185, 129, 0.45);
  
  --stutter-red: #f43f5e;
  --stutter-red-glow: rgba(244, 63, 94, 0.35);
  --stutter-border: rgba(244, 63, 94, 0.45);
  
  --amber-warn: #f59e0b;
  --danger: #ef4444;
  
  --text-primary: #f8fafc;
  --text-secondary: #94a3b8;
  --text-muted: #64748b;
  
  /* Fonts */
  --font-display: 'Plus Jakarta Sans', sans-serif;
  --font-body: 'Outfit', sans-serif;
  --font-mono: 'JetBrains Mono', monospace;
  
  /* Radii & Dimensions */
  --radius-lg: 16px;
  --radius-md: 12px;
  --radius-sm: 8px;
  --nav-height: 64px;
}

/* Global Reset */
* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
  -webkit-tap-highlight-color: transparent;
}

a, button, input, select, textarea, .nav-item, .type-tag-btn, .checkbox-tag, .tally-giant-btn, .dur-chip-btn {
  touch-action: manipulation;
}

html {
  background-color: var(--bg-main);
  height: 100%;
}

body {
  background-color: var(--bg-main);
  color: var(--text-primary);
  font-family: var(--font-body);
  font-size: 14px;
  line-height: 1.4;
  overflow-x: hidden;
  overflow-y: auto;
  min-height: 100vh;
  min-height: -webkit-fill-available;
  display: flex;
  flex-direction: column;
  -webkit-overflow-scrolling: touch;
}

body.dark-theme {
  background-attachment: fixed;
  background-image: 
    radial-gradient(at 0% 0%, rgba(2, 132, 199, 0.12) 0px, transparent 50%),
    radial-gradient(at 100% 100%, rgba(16, 185, 129, 0.08) 0px, transparent 50%);
}

#app-container {
  display: flex;
  flex-direction: column;
  flex: 1;
  max-width: 1200px;
  width: 100%;
  margin: 0 auto;
  padding: 8px 10px calc(var(--nav-height) + 24px + env(safe-area-inset-bottom)) 10px;
  min-height: 100vh;
  position: relative;
}

/* Views Management */
.view {
  display: none;
  flex-direction: column;
  gap: 10px;
  animation: fadeIn 0.2s ease-in-out;
  overflow-y: visible;
}

.view.active {
  display: flex;
}

@keyframes fadeIn {
  from { opacity: 0; transform: translateY(4px); }
  to { opacity: 1; transform: translateY(0); }
}

/* Headers */
.app-header {
  margin-bottom: 2px;
  text-align: left;
}

.logo {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 2px;
}

.logo-icon {
  color: #38bdf8;
  filter: drop-shadow(0 0 8px rgba(56, 189, 248, 0.4));
}

.logo h1 {
  font-family: var(--font-display);
  font-size: 22px;
  font-weight: 700;
  letter-spacing: -0.5px;
  background: linear-gradient(135deg, #ffffff 30%, #38bdf8 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.subtitle {
  font-size: 12px;
  color: var(--text-secondary);
}

.version-badge {
  display: inline-block;
  font-size: 10px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  background: rgba(2, 132, 199, 0.15);
  color: #38bdf8;
  border: 1px solid rgba(2, 132, 199, 0.3);
  padding: 1px 6px;
  border-radius: 12px;
}

/* Cards & Panels */
.glass-panel, .card {
  background: var(--bg-card);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid var(--border-glass);
  border-radius: var(--radius-md);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.3);
  padding: 12px;
}

.panel-header, .panel-header-sm {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 6px;
}

.panel-header h2, .card h2 {
  font-family: var(--font-display);
  font-size: 14px;
  font-weight: 600;
}

.panel-header-sm h3, .card h3 {
  font-family: var(--font-display);
  font-size: 12px;
  font-weight: 600;
  color: var(--text-secondary);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.hint-text {
  font-size: 10px;
  color: var(--text-muted);
}

.section-subtext {
  font-size: 11px;
  color: var(--text-muted);
  margin-bottom: 6px;
}

/* Forms & Inputs */
.input-group {
  display: flex;
  flex-direction: column;
  gap: 4px;
  margin-bottom: 8px;
}

.input-group label {
  font-size: 11px;
  font-weight: 500;
  color: var(--text-secondary);
}

input[type="text"], input[type="date"], select, textarea {
  width: 100%;
  background: rgba(15, 23, 42, 0.75);
  border: 1px solid var(--border-glass);
  border-radius: var(--radius-sm);
  padding: 7px 9px;
  color: var(--text-primary);
  font-family: var(--font-body);
  font-size: 12.5px;
  outline: none;
  transition: border-color 0.2s, box-shadow 0.2s;
}

input:focus, select:focus, textarea:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 3px var(--primary-glow);
}

textarea {
  resize: vertical;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 8px 12px;
  font-family: var(--font-display);
  font-size: 12.5px;
  font-weight: 600;
  border-radius: var(--radius-sm);
  cursor: pointer;
  border: none;
  transition: all 0.12s ease;
  user-select: none;
  touch-action: manipulation;
}

.primary-btn {
  background: linear-gradient(135deg, #0284c7 0%, #0369a1 100%);
  color: #ffffff;
  box-shadow: 0 4px 12px var(--primary-glow);
}

.primary-btn:active {
  transform: scale(0.97);
}

.secondary-btn {
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid var(--border-glass);
  color: var(--text-primary);
}

.secondary-btn:active {
  background: rgba(255, 255, 255, 0.14);
}

.secondary-btn-sm {
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid var(--border-glass);
  color: var(--text-primary);
  padding: 4px 8px;
  font-size: 11px;
}

.danger-btn-sm {
  background: rgba(239, 68, 68, 0.15);
  border: 1px solid rgba(239, 68, 68, 0.3);
  color: #f87171;
  padding: 3px 7px;
  font-size: 11px;
  cursor: pointer;
  border-radius: var(--radius-sm);
}

.icon-btn-sm {
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid var(--border-glass);
  color: var(--text-secondary);
  padding: 5px 8px;
  border-radius: var(--radius-sm);
  cursor: pointer;
}

/* Client Setup Grid */
.setup-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}

@media (max-width: 768px) {
  .setup-grid {
    grid-template-columns: 1fr;
  }
}

.clients-list {
  display: flex;
  flex-direction: column;
  gap: 6px;
  max-height: 380px;
  overflow-y: auto;
}

.client-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 9px;
  background: rgba(15, 23, 42, 0.5);
  border: 1px solid var(--border-glass);
  border-radius: var(--radius-sm);
  cursor: pointer;
}

.client-item:hover, .client-item:active {
  background: rgba(2, 132, 199, 0.15);
  border-color: rgba(2, 132, 199, 0.4);
}

.client-info-left {
  display: flex;
  align-items: center;
  gap: 8px;
}

.avatar-letter {
  width: 30px;
  height: 30px;
  border-radius: 15px;
  background: linear-gradient(135deg, #0284c7 0%, #10b981 100%);
  color: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 13px;
}

.client-meta h4 {
  font-size: 12.5px;
  font-weight: 600;
}

.client-meta p {
  font-size: 10.5px;
  color: var(--text-secondary);
}

/* Session Header Bar */
.session-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-bottom: 4px;
  border-bottom: 1px solid var(--border-glass);
}

.client-badge {
  display: flex;
  align-items: center;
  gap: 8px;
}

.client-details h3 {
  font-size: 14px;
  font-weight: 600;
}

.client-details p {
  font-size: 10.5px;
  color: var(--text-secondary);
}

/* -------------------------------------------------------------
 * PROMINENT TOP %SS LIVE HUD BANNER (Directly Above Buttons)
 * ------------------------------------------------------------- */
.ss-top-hud {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  padding: 10px 14px;
  background: linear-gradient(135deg, rgba(15, 23, 42, 0.95) 0%, rgba(30, 41, 59, 0.85) 100%);
  border: 1px solid rgba(2, 132, 199, 0.35);
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.4);
}

.ss-hud-left {
  flex: 1.2;
}

.ss-hud-title {
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  color: var(--text-secondary);
  letter-spacing: 0.5px;
}

.ss-hud-val-wrap {
  display: flex;
  align-items: baseline;
  gap: 4px;
  margin: 1px 0 4px 0;
}

.ss-hud-num {
  font-family: var(--font-display);
  font-size: 32px;
  font-weight: 800;
  color: #f8fafc;
  line-height: 1;
}

.ss-hud-pct {
  font-size: 14px;
  font-weight: 700;
  color: var(--text-muted);
}

.severity-badge {
  font-size: 10px;
  font-weight: 700;
  text-transform: uppercase;
  padding: 2px 7px;
  border-radius: 8px;
  margin-left: 6px;
}

.severity-badge.normal { background: rgba(16, 185, 129, 0.25); color: #34d399; }
.severity-badge.mild { background: rgba(245, 158, 11, 0.25); color: #fbbf24; }
.severity-badge.moderate { background: rgba(249, 115, 22, 0.25); color: #fb923c; }
.severity-badge.severe { background: rgba(244, 63, 94, 0.25); color: #fb7185; }

.meter-bar-track {
  width: 100%;
  height: 6px;
  background: rgba(255, 255, 255, 0.08);
  border-radius: 3px;
  overflow: hidden;
}

.meter-bar-fill {
  height: 100%;
  width: 0%;
  transition: width 0.2s ease;
}

.meter-bar-fill.normal { background: #10b981; }
.meter-bar-fill.mild { background: #f59e0b; }
.meter-bar-fill.moderate { background: #f97316; }
.meter-bar-fill.severe { background: #f43f5e; }

.ss-hud-right {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 4px;
}

.task-selector-wrap {
  display: flex;
  align-items: center;
  gap: 6px;
}

.task-selector-wrap label {
  font-size: 11px;
  font-weight: 600;
  color: var(--text-secondary);
}

.task-selector-wrap select {
  padding: 4px 6px;
  font-size: 11px;
  background: rgba(15, 23, 42, 0.85);
}

.hud-counts-line {
  font-size: 11px;
  color: var(--text-secondary);
  display: flex;
  gap: 8px;
}

/* -------------------------------------------------------------
 * MAIN TALLY GRID & SIDE-BY-SIDE BUTTON CONSOLE
 * ------------------------------------------------------------- */
.fluency-grid {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 10px;
}

@media (max-width: 900px) {
  .fluency-grid {
    grid-template-columns: 1fr;
    gap: 10px;
  }
}

.tally-card-container {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

/* DUAL COUNTERS: FORCED 2 COLUMNS SIDE-BY-SIDE */
.dual-counter-grid {
  display: grid !important;
  grid-template-columns: 1fr 1fr !important;
  gap: 8px !important;
}

.tally-giant-btn {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 12px 6px;
  border-radius: var(--radius-md);
  cursor: pointer;
  user-select: none;
  transition: transform 0.08s ease, box-shadow 0.08s ease;
  outline: none;
  border: 2px solid transparent;
  min-height: 115px;
  position: relative;
  touch-action: manipulation;
}

.tally-giant-btn:active, .tally-giant-btn.active-press {
  transform: scale(0.94);
}

.fluent-btn {
  background: linear-gradient(180deg, rgba(16, 185, 129, 0.22) 0%, rgba(16, 185, 129, 0.07) 100%);
  border-color: var(--fluent-border);
  box-shadow: 0 4px 14px var(--fluent-green-glow);
}

.disfluent-btn {
  background: linear-gradient(180deg, rgba(244, 63, 94, 0.22) 0%, rgba(244, 63, 94, 0.07) 100%);
  border-color: var(--stutter-border);
  box-shadow: 0 4px 14px var(--stutter-red-glow);
}

.btn-top-info {
  display: flex;
  align-items: center;
  gap: 4px;
  margin-bottom: 1px;
}

.btn-label {
  font-family: var(--font-display);
  font-size: 13px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.fluent-btn .btn-label { color: #34d399; }
.disfluent-btn .btn-label { color: #fb7185; }

.key-badge {
  font-family: var(--font-mono);
  font-size: 8.5px;
  color: var(--text-secondary);
  background: rgba(0, 0, 0, 0.4);
  padding: 1px 3px;
  border-radius: 3px;
}

.tally-count {
  font-family: var(--font-display);
  font-size: 36px;
  font-weight: 800;
  line-height: 1.1;
  color: #ffffff;
  margin: 1px 0;
}

.btn-subtext {
  font-size: 9.5px;
  color: var(--text-secondary);
}

/* Undo & Clear Row */
.counter-actions-bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 8px;
  padding: 1px 0;
}

.recent-action-indicator {
  font-size: 11px;
  color: var(--text-secondary);
  font-style: italic;
}

/* -------------------------------------------------------------
 * 6 DISFLUENCY TYPOLOGY QUICK BAR (SLD RED vs. NORMAL GREEN)
 * ------------------------------------------------------------- */
.disfluency-taxonomy-card {
  padding: 8px 10px;
}

.typology-grid-6 {
  display: grid !important;
  grid-template-columns: repeat(6, 1fr) !important; /* 6 COLUMNS SIDE-BY-SIDE */
  gap: 4px !important;
  margin-top: 4px;
}

@media (max-width: 480px) {
  .typology-grid-6 {
    grid-template-columns: repeat(3, 1fr) !important; /* 2 Rows of 3 on Small Phones */
  }
}

.type-tag-btn {
  padding: 6px 2px;
  border-radius: var(--radius-sm);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 1px;
  cursor: pointer;
  transition: transform 0.08s ease;
  touch-action: manipulation;
  min-height: 50px;
}

.type-tag-btn:active {
  transform: scale(0.92);
}

/* Red Stuttering-Like Disfluencies (PWR, PRO, BLK) */
.type-tag-btn.sld-red {
  background: rgba(244, 63, 94, 0.12);
  border: 1px solid rgba(244, 63, 94, 0.35);
  color: #fecdd3;
}

.type-tag-btn.sld-red .type-abbr {
  color: #fb7185;
}

/* Green Normal Disfluencies (WWR, INT, LDF) */
.type-tag-btn.normal-green {
  background: rgba(16, 185, 129, 0.12);
  border: 1px solid rgba(16, 185, 129, 0.35);
  color: #a7f3d0;
}

.type-tag-btn.normal-green .type-abbr {
  color: #34d399;
}

.type-abbr {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 12px;
  line-height: 1;
}

.type-sub-label {
  font-size: 8.5px;
  color: var(--text-muted);
  line-height: 1;
}

.type-count {
  font-family: var(--font-mono);
  font-size: 10px;
  background: rgba(0, 0, 0, 0.5);
  color: #ffffff;
  padding: 1px 4px;
  border-radius: 3px;
  font-weight: 700;
  margin-top: 2px;
}

/* -------------------------------------------------------------
 * PROLONGATION & BLOCK DURATION SECTION (0.5s units)
 * ------------------------------------------------------------- */
.duration-card {
  padding: 8px 10px;
}

.duration-stats-badge {
  font-family: var(--font-mono);
  font-size: 10.5px;
  font-weight: 600;
  color: #38bdf8;
  background: rgba(2, 132, 199, 0.15);
  padding: 2px 6px;
  border-radius: 4px;
}

.duration-chips-grid {
  display: grid;
  grid-template-columns: repeat(8, 1fr);
  gap: 4px;
  margin-bottom: 6px;
}

@media (max-width: 600px) {
  .duration-chips-grid {
    grid-template-columns: repeat(4, 1fr);
  }
}

.dur-chip-btn {
  background: rgba(244, 63, 94, 0.1);
  border: 1px solid rgba(244, 63, 94, 0.3);
  color: #fecdd3;
  padding: 6px 2px;
  border-radius: var(--radius-sm);
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 700;
  cursor: pointer;
  text-align: center;
  transition: all 0.1s ease;
}

.dur-chip-btn:active {
  background: rgba(244, 63, 94, 0.3);
  transform: scale(0.93);
}

.durations-log-row {
  display: flex;
  align-items: center;
  gap: 6px;
  background: rgba(9, 13, 22, 0.5);
  padding: 4px 6px;
  border-radius: 4px;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}

.dur-log-label {
  font-size: 10px;
  font-weight: 600;
  color: var(--text-secondary);
  white-space: nowrap;
}

.dur-tags-list {
  display: flex;
  align-items: center;
  gap: 4px;
  flex: 1;
  overflow-x: auto;
}

.dur-empty-hint {
  font-size: 10px;
  color: var(--text-muted);
  font-style: italic;
}

.dur-log-item {
  display: inline-flex;
  align-items: center;
  gap: 3px;
  background: rgba(244, 63, 94, 0.2);
  border: 1px solid rgba(244, 63, 94, 0.4);
  color: #fda4af;
  font-family: var(--font-mono);
  font-size: 10px;
  padding: 1px 4px;
  border-radius: 3px;
  white-space: nowrap;
}

.dur-del-btn {
  background: none;
  border: none;
  color: #fda4af;
  font-size: 11px;
  cursor: pointer;
  padding: 0 2px;
}

/* Secondary Behaviors Checkboxes */
.secondaries-card {
  padding: 8px 10px;
}

.secondaries-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
  margin-top: 4px;
}

.checkbox-tag {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--border-glass);
  padding: 4px 6px;
  border-radius: 4px;
  font-size: 10.5px;
  color: var(--text-secondary);
  cursor: pointer;
}

.checkbox-tag input:checked + span {
  color: #38bdf8;
  font-weight: 600;
}

/* -------------------------------------------------------------
 * RIGHT COLUMN: METRICS & CLINICAL EXPORT
 * ------------------------------------------------------------- */
.metrics-panel-container {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.metrics-summary-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 6px;
  margin-bottom: 6px;
}

.metric-item {
  background: rgba(15, 23, 42, 0.5);
  border: 1px solid var(--border-glass);
  padding: 6px 8px;
  border-radius: var(--radius-sm);
}

.metric-item .m-label {
  font-size: 9px;
  color: var(--text-secondary);
  text-transform: uppercase;
}

.metric-item .m-val {
  font-family: var(--font-display);
  font-size: 13px;
  font-weight: 700;
  color: #f1f5f9;
  margin-top: 1px;
}

.highlight-red {
  color: #fb7185 !important;
}

.highlight-green {
  color: #34d399 !important;
}

/* Distribution Bars */
.distribution-section h4 {
  font-size: 10px;
  text-transform: uppercase;
  color: var(--text-secondary);
  letter-spacing: 0.5px;
  margin-bottom: 3px;
}

.dist-bars-list {
  display: flex;
  flex-direction: column;
  gap: 3px;
}

.dist-bar-row {
  display: grid;
  grid-template-columns: 28px 1fr 40px;
  align-items: center;
  gap: 6px;
  font-size: 9.5px;
}

.bar-lbl {
  font-family: var(--font-mono);
  font-weight: 600;
}

.bar-trk {
  background: rgba(255, 255, 255, 0.06);
  height: 4px;
  border-radius: 2px;
  overflow: hidden;
}

.bar-fill {
  height: 100%;
  transition: width 0.2s ease;
}

.bar-pct {
  font-family: var(--font-mono);
  color: var(--text-muted);
  text-align: right;
  font-size: 9px;
}

/* Report Preview Box */
.soap-card {
  padding: 10px;
}

.soap-preview-box {
  background: rgba(9, 13, 22, 0.8);
  border: 1px solid var(--border-glass);
  border-radius: var(--radius-sm);
  padding: 8px;
  font-family: var(--font-mono);
  font-size: 10px;
  line-height: 1.35;
  color: #cbd5e1;
  white-space: pre-wrap;
  max-height: 130px;
  overflow-y: auto;
  margin-bottom: 6px;
}

/* Action Buttons */
.session-save-actions {
  display: flex;
  flex-direction: column;
  gap: 5px;
  margin-top: 3px;
}

.session-save-actions .btn {
  width: 100%;
}

.secondary-actions-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 5px;
}

/* History Table */
.table-container {
  overflow-x: auto;
  margin-top: 6px;
  -webkit-overflow-scrolling: touch;
}

.history-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 11px;
}

.history-table th {
  text-align: left;
  padding: 6px 8px;
  background: rgba(255, 255, 255, 0.03);
  color: var(--text-secondary);
  font-weight: 600;
  border-bottom: 1px solid var(--border-glass);
}

.history-table td {
  padding: 6px 8px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.04);
}

.table-empty-message {
  text-align: center;
  color: var(--text-muted);
  padding: 20px !important;
}

/* Fixed Bottom Navigation Bar */
.app-nav {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  height: var(--nav-height);
  background: rgba(9, 13, 22, 0.94);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-top: 1px solid var(--border-glass);
  display: flex;
  justify-content: space-around;
  align-items: center;
  z-index: 100;
  padding-bottom: env(safe-area-inset-bottom);
}

.nav-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2px;
  background: none;
  border: none;
  color: var(--text-muted);
  font-family: var(--font-body);
  font-size: 11px;
  font-weight: 600;
  cursor: pointer;
  padding: 6px 14px;
  transition: all 0.15s;
}

.nav-item.active {
  color: #38bdf8;
}

.nav-item.disabled {
  opacity: 0.35;
  pointer-events: none;
}

/* Toast Notifications */
.toast-container {
  position: fixed;
  bottom: calc(var(--nav-height) + 10px);
  right: 10px;
  display: flex;
  flex-direction: column;
  gap: 6px;
  z-index: 1000;
}

.toast {
  background: #1e293b;
  color: #ffffff;
  padding: 8px 12px;
  border-radius: var(--radius-sm);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.4);
  border-left: 4px solid var(--primary);
  font-size: 12px;
}

.hidden {
  display: none !important;
}
