/* ===== RESET & VARIABLES ===== */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --bg: #f0f2f5;
  --bg-card: #ffffff;
  --bg-hover: #f8f9fb;
  --sidebar-bg: #1a2332;
  --sidebar-hover: #243044;
  --sidebar-active: #2d3e58;
  --sidebar-text: #8fa3bf;
  --sidebar-text-active: #ffffff;
  --primary: #2563eb;
  --primary-hover: #1d4ed8;
  --primary-light: #eff6ff;
  --success: #16a34a;
  --success-light: #f0fdf4;
  --warning: #d97706;
  --warning-light: #fffbeb;
  --danger: #dc2626;
  --danger-light: #fef2f2;
  --text: #111827;
  --text-muted: #6b7280;
  --text-light: #9ca3af;
  --border: #e5e7eb;
  --border-focus: #2563eb;
  --radius: 8px;
  --radius-lg: 12px;
  --shadow: 0 1px 3px rgba(0,0,0,.08), 0 1px 2px rgba(0,0,0,.06);
  --shadow-md: 0 4px 6px -1px rgba(0,0,0,.08), 0 2px 4px -2px rgba(0,0,0,.06);
  --shadow-lg: 0 10px 15px -3px rgba(0,0,0,.1), 0 4px 6px -4px rgba(0,0,0,.05);
  --sidebar-w: 240px;
  --font: 'Inter', system-ui, sans-serif;
  --font-mono: 'JetBrains Mono', monospace;
  --transition: 180ms ease;
}

body {
  font-family: var(--font);
  background: var(--bg);
  color: var(--text);
  font-size: 14px;
  line-height: 1.5;
  min-height: 100vh;
}

/* ===== LAYOUT ===== */
#app { display: flex; min-height: 100vh; }

#main-app {
  display: flex;
  width: 100%;
  min-height: 100vh;
}

/* ===== SIDEBAR ===== */
.sidebar {
  width: var(--sidebar-w);
  background: var(--sidebar-bg);
  display: flex;
  flex-direction: column;
  position: fixed;
  top: 0; left: 0; bottom: 0;
  z-index: 100;
  transition: width var(--transition);
  overflow: hidden;
}

.sidebar-header {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 18px 16px;
  border-bottom: 1px solid rgba(255,255,255,.06);
}

.sidebar-logo {
  font-size: 22px;
  flex-shrink: 0;
  width: 36px;
  height: 36px;
  background: var(--primary);
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.sidebar-title { flex: 1; overflow: hidden; }
.sidebar-name { color: #fff; font-weight: 600; font-size: 14px; white-space: nowrap; }

.sidebar-toggle {
  background: none;
  border: none;
  color: var(--sidebar-text);
  cursor: pointer;
  font-size: 16px;
  padding: 4px;
  border-radius: 4px;
  transition: color var(--transition);
}
.sidebar-toggle:hover { color: #fff; }

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

.nav-section { margin-bottom: 20px; }

.nav-label {
  display: block;
  font-size: 10px;
  font-weight: 600;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--sidebar-text);
  padding: 0 8px;
  margin-bottom: 4px;
  opacity: .6;
}

.nav-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 9px 10px;
  border-radius: var(--radius);
  color: var(--sidebar-text);
  text-decoration: none;
  transition: all var(--transition);
  margin-bottom: 2px;
  white-space: nowrap;
}

.nav-item:hover { background: var(--sidebar-hover); color: #fff; }
.nav-item.active { background: var(--sidebar-active); color: var(--sidebar-text-active); }
.nav-icon { font-size: 16px; width: 20px; text-align: center; flex-shrink: 0; }
.nav-text { font-size: 13px; font-weight: 500; }

.sidebar-footer {
  padding: 12px 16px;
  border-top: 1px solid rgba(255,255,255,.06);
  display: flex;
  align-items: center;
  gap: 10px;
}

.user-info { display: flex; align-items: center; gap: 10px; flex: 1; overflow: hidden; }

.user-avatar {
  width: 32px; height: 32px;
  background: var(--primary);
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  color: #fff; font-weight: 700; font-size: 13px;
  flex-shrink: 0;
}

.user-details { overflow: hidden; }
.user-name { display: block; color: #fff; font-size: 13px; font-weight: 500; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.user-role { display: block; color: var(--sidebar-text); font-size: 11px; }

/* ===== MAIN CONTENT ===== */
.main-content {
  margin-left: var(--sidebar-w);
  flex: 1;
  display: flex;
  flex-direction: column;
  min-height: 100vh;
  transition: margin-left var(--transition);
}

.page { padding: 28px; max-width: 1400px; }

.page-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 24px;
}

.page-title { font-size: 22px; font-weight: 700; color: var(--text); }
.page-subtitle { font-size: 13px; color: var(--text-muted); margin-top: 2px; }

/* ===== CARDS ===== */
.card {
  background: var(--bg-card);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow);
  border: 1px solid var(--border);
}

.card-header {
  padding: 16px 20px;
  border-bottom: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.card-title { font-size: 15px; font-weight: 600; }
.card-body { padding: 20px; }

/* ===== STATS GRID ===== */
.stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 16px;
  margin-bottom: 24px;
}

.stat-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 20px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  box-shadow: var(--shadow);
  transition: box-shadow var(--transition);
}
.stat-card:hover { box-shadow: var(--shadow-md); }

.stat-icon { font-size: 24px; }
.stat-value { font-size: 28px; font-weight: 700; color: var(--text); }
.stat-label { font-size: 12px; color: var(--text-muted); font-weight: 500; text-transform: uppercase; letter-spacing: .05em; }
.stat-change { font-size: 12px; }
.stat-change.up { color: var(--success); }
.stat-change.down { color: var(--danger); }

/* ===== TABLE ===== */
.table-wrap { overflow-x: auto; border-radius: var(--radius-lg); border: 1px solid var(--border); background: var(--bg-card); box-shadow: var(--shadow); }

table { width: 100%; border-collapse: collapse; }
thead th {
  padding: 10px 16px;
  text-align: left;
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: .06em;
  color: var(--text-muted);
  background: #f9fafb;
  border-bottom: 1px solid var(--border);
  white-space: nowrap;
}
tbody td {
  padding: 12px 16px;
  border-bottom: 1px solid var(--border);
  font-size: 13px;
  vertical-align: middle;
}
tbody tr:last-child td { border-bottom: none; }
tbody tr:hover { background: var(--bg-hover); }
tbody tr { transition: background var(--transition); }

/* ===== BADGES ===== */
.badge {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 2px 8px;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 600;
}
.badge-success { background: var(--success-light); color: var(--success); }
.badge-danger { background: var(--danger-light); color: var(--danger); }
.badge-warning { background: var(--warning-light); color: var(--warning); }
.badge-primary { background: var(--primary-light); color: var(--primary); }
.badge-neutral { background: #f3f4f6; color: #374151; }

/* ===== BUTTONS ===== */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 16px;
  border-radius: var(--radius);
  font-size: 13px;
  font-weight: 500;
  cursor: pointer;
  border: 1px solid transparent;
  transition: all var(--transition);
  text-decoration: none;
  white-space: nowrap;
}
.btn:disabled { opacity: .5; cursor: not-allowed; }
.btn-primary { background: var(--primary); color: #fff; }
.btn-primary:hover:not(:disabled) { background: var(--primary-hover); }
.btn-secondary { background: var(--bg-card); color: var(--text); border-color: var(--border); }
.btn-secondary:hover:not(:disabled) { background: var(--bg-hover); }
.btn-danger { background: var(--danger); color: #fff; }
.btn-danger:hover:not(:disabled) { background: #b91c1c; }
.btn-success { background: var(--success); color: #fff; }
.btn-full { width: 100%; justify-content: center; }
.btn-sm { padding: 5px 10px; font-size: 12px; }
.btn-icon { background: none; border: none; cursor: pointer; padding: 6px; border-radius: var(--radius); color: var(--text-muted); font-size: 16px; transition: all var(--transition); }
.btn-icon:hover { background: var(--bg-hover); color: var(--text); }

/* ===== FORMS ===== */
.form-group { margin-bottom: 16px; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.form-row-3 { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 16px; }

label { display: block; font-size: 12px; font-weight: 600; color: var(--text-muted); margin-bottom: 6px; text-transform: uppercase; letter-spacing: .04em; }

input[type="text"], input[type="email"], input[type="password"], input[type="number"],
input[type="date"], input[type="tel"], select, textarea {
  width: 100%;
  padding: 9px 12px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  font-size: 13px;
  font-family: var(--font);
  color: var(--text);
  background: var(--bg-card);
  transition: border-color var(--transition), box-shadow var(--transition);
  outline: none;
}
input:focus, select:focus, textarea:focus {
  border-color: var(--border-focus);
  box-shadow: 0 0 0 3px rgba(37,99,235,.1);
}
textarea { resize: vertical; min-height: 80px; }
select { appearance: none; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8'%3E%3Cpath fill='%236b7280' d='M6 8L0 0h12z'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 12px center; padding-right: 32px; }

/* ===== SEARCH BAR ===== */
.search-bar {
  display: flex;
  gap: 10px;
  margin-bottom: 16px;
}
.search-input-wrap { position: relative; flex: 1; }
.search-input-wrap input { padding-left: 36px; }
.search-icon { position: absolute; left: 12px; top: 50%; transform: translateY(-50%); color: var(--text-muted); font-size: 14px; }

/* ===== LOGIN ===== */
.screen { display: flex; align-items: center; justify-content: center; min-height: 100vh; background: var(--sidebar-bg); }

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

.login-brand { text-align: center; margin-bottom: 32px; }
.login-logo { font-size: 40px; margin-bottom: 12px; }
.login-brand h1 { font-size: 22px; font-weight: 700; color: var(--text); }
.login-brand p { color: var(--text-muted); font-size: 13px; margin-top: 4px; }

.login-form label { text-transform: none; font-size: 13px; color: var(--text); font-weight: 500; letter-spacing: 0; }

/* ===== ALERTS ===== */
.alert {
  padding: 10px 14px;
  border-radius: var(--radius);
  font-size: 13px;
  margin-bottom: 12px;
}
.alert-error { background: var(--danger-light); color: var(--danger); border: 1px solid #fecaca; }
.alert-success { background: var(--success-light); color: var(--success); border: 1px solid #bbf7d0; }
.alert-warning { background: var(--warning-light); color: var(--warning); border: 1px solid #fde68a; }

/* ===== MODAL ===== */
.modal-overlay {
  position: fixed; inset: 0;
  background: rgba(0,0,0,.4);
  backdrop-filter: blur(2px);
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
}

.modal {
  background: var(--bg-card);
  border-radius: var(--radius-lg);
  width: 100%;
  max-width: 640px;
  max-height: 90vh;
  display: flex;
  flex-direction: column;
  box-shadow: var(--shadow-lg);
}

.modal-wide { max-width: 900px; }

.modal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 20px 24px;
  border-bottom: 1px solid var(--border);
}
.modal-header h3 { font-size: 16px; font-weight: 600; }
.modal-body { padding: 24px; overflow-y: auto; flex: 1; }
.modal-footer { padding: 16px 24px; border-top: 1px solid var(--border); display: flex; gap: 10px; justify-content: flex-end; }

/* ===== TOAST ===== */
#toast-container { position: fixed; bottom: 24px; right: 24px; z-index: 2000; display: flex; flex-direction: column; gap: 8px; }

.toast {
  background: var(--sidebar-bg);
  color: #fff;
  padding: 12px 18px;
  border-radius: var(--radius);
  font-size: 13px;
  box-shadow: var(--shadow-lg);
  animation: toast-in .2s ease;
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 250px;
}
.toast.success { border-left: 3px solid var(--success); }
.toast.error { border-left: 3px solid var(--danger); }
.toast.warning { border-left: 3px solid var(--warning); }

@keyframes toast-in { from { transform: translateX(100%); opacity: 0; } to { transform: translateX(0); opacity: 1; } }

/* ===== TOOLBAR ===== */
.toolbar { display: flex; align-items: center; justify-content: space-between; margin-bottom: 16px; gap: 12px; flex-wrap: wrap; }
.toolbar-left { display: flex; align-items: center; gap: 10px; flex: 1; }
.toolbar-right { display: flex; align-items: center; gap: 8px; }

/* ===== STATUS CHIPS ===== */
.chip { display: inline-flex; align-items: center; gap: 5px; padding: 3px 10px; border-radius: 99px; font-size: 11px; font-weight: 600; }
.chip::before { content: ''; width: 6px; height: 6px; border-radius: 50%; background: currentColor; }

/* ===== TABS ===== */
.tabs { display: flex; gap: 2px; border-bottom: 2px solid var(--border); margin-bottom: 20px; }
.tab { padding: 8px 16px; font-size: 13px; font-weight: 500; color: var(--text-muted); cursor: pointer; border-bottom: 2px solid transparent; margin-bottom: -2px; transition: all var(--transition); }
.tab.active { color: var(--primary); border-bottom-color: var(--primary); }
.tab:hover:not(.active) { color: var(--text); }

/* ===== EMPTY STATE ===== */
.empty-state { text-align: center; padding: 60px 20px; color: var(--text-muted); }
.empty-state-icon { font-size: 48px; margin-bottom: 16px; opacity: .4; }
.empty-state h3 { font-size: 16px; font-weight: 600; color: var(--text); margin-bottom: 8px; }
.empty-state p { font-size: 13px; }

/* ===== PAGINATION ===== */
.pagination { display: flex; align-items: center; justify-content: center; gap: 4px; margin-top: 16px; }
.page-btn { padding: 6px 10px; border-radius: var(--radius); font-size: 13px; cursor: pointer; border: 1px solid var(--border); background: var(--bg-card); color: var(--text); transition: all var(--transition); }
.page-btn:hover { background: var(--bg-hover); }
.page-btn.active { background: var(--primary); color: #fff; border-color: var(--primary); }

/* ===== AMOUNT COLORS ===== */
.amount-positive { color: var(--success); font-weight: 600; }
.amount-negative { color: var(--danger); font-weight: 600; }

/* ===== UTILS ===== */
.text-right { text-align: right; }
.text-center { text-align: center; }
.text-muted { color: var(--text-muted); }
.font-mono { font-family: var(--font-mono); }
.mt-1 { margin-top: 8px; }
.mt-2 { margin-top: 16px; }
.mb-2 { margin-bottom: 16px; }
.gap-2 { gap: 16px; }
.flex { display: flex; }
.items-center { align-items: center; }
.justify-between { justify-content: space-between; }
.flex-1 { flex: 1; }
.loading { opacity: .5; pointer-events: none; }
.spinner { display: inline-block; width: 16px; height: 16px; border: 2px solid rgba(255,255,255,.3); border-top-color: #fff; border-radius: 50%; animation: spin .6s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }

/* ===== RESPONSIVE ===== */
/* ===== MOBILE TOPBAR ===== */
.mobile-topbar {
  display: none;
  position: fixed;
  top: 0; left: 0; right: 0;
  height: 52px;
  background: var(--sidebar-bg);
  color: #fff;
  align-items: center;
  gap: 12px;
  padding: 0 16px;
  z-index: 200;
  box-shadow: 0 1px 4px rgba(0,0,0,0.3);
}
.mobile-hamburger {
  background: none;
  border: none;
  color: #fff;
  font-size: 20px;
  cursor: pointer;
  padding: 4px 8px;
  border-radius: 4px;
  line-height: 1;
}
.mobile-hamburger:hover { background: var(--sidebar-hover); }
.mobile-topbar-title {
  font-size: 15px;
  font-weight: 600;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* Backdrop (Klick schließt Sidebar) */
.sidebar-backdrop {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.45);
  z-index: 298;
}

@media (max-width: 768px) {
  .mobile-topbar { display: flex; }

  .sidebar {
    position: fixed;
    top: 0; left: 0; bottom: 0;
    width: var(--sidebar-w);
    transform: translateX(-100%);
    transition: transform 0.25s ease;
    z-index: 299;
    overflow-y: auto;
  }
  .sidebar.open {
    transform: translateX(0);
    box-shadow: 4px 0 16px rgba(0,0,0,0.4);
  }
  .sidebar-backdrop.open { display: block; }

  .main-content {
    margin-left: 0;
    padding-top: calc(52px + 16px);  /* Platz für Topbar */
  }

  .form-row, .form-row-3 { grid-template-columns: 1fr; }
  .stats-grid { grid-template-columns: 1fr 1fr; }
}

/* ===== JAHRESBERICHT ===== */
.jr-grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin-bottom: 16px; }
.jr-grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; margin-bottom: 16px; }
.jr-section { margin-bottom: 0; }
.jr-header-block { margin-bottom: 12px; }
.jr-kpi-row {
  display: flex; justify-content: space-between; align-items: baseline;
  gap: 12px;
  padding: 7px 0; border-bottom: 1px solid var(--border);
}
.jr-kpi-row:last-child { border-bottom: none; }
.jr-kpi-label { color: var(--text-muted); font-size: 13px; }
.jr-kpi-value { font-size: 15px; font-weight: 500; }
.jr-kpi-divider { border-top: 2px solid var(--border); margin: 4px 0; }
.jr-footer { margin-top: 24px; font-size: 12px; color: var(--text-muted); }
.stat-card-danger { border: 1px solid var(--danger-light); }

/* Druckkopf (nur im Druck sichtbar) */
.jr-print-kopf { display: none; }

/* ===== DRUCKMODUS ===== */
@page {
  size: A4 portrait;
  margin: 18mm 15mm 20mm 15mm;
}

@media print {
  /* Alles ausblenden was nicht zum Bericht gehört */
  .sidebar,
  .page-header,
  .toolbar,
  .btn,
  #jr-year-select,
  .nav-item,
  .sidebar-footer,
  .topbar,
  .jr-header-block { display: none !important; }

  /* Layout zurücksetzen */
  body { background: white !important; font-size: 11pt !important; color: #000 !important; }
  .main-content { margin-left: 0 !important; padding: 0 !important; }
  .page { padding: 0 !important; max-width: none !important; }
  * { -webkit-print-color-adjust: exact; print-color-adjust: exact; }

  /* Druckkopf auf jeder Seite */
  .jr-print-kopf {
    display: block;
    position: fixed;
    top: 0; left: 0; right: 0;
    height: 42pt;
    padding-bottom: 6pt;
    border-bottom: 1.5pt solid #1a3a5c;
    background: white;
    overflow: hidden;
  }
  .jr-print-kopf-name {
    font-size: 13pt;
    font-weight: bold;
    color: #1a3a5c;
  }
  .jr-print-kopf-sub {
    font-size: 8pt;
    color: #555;
    margin-top: 1pt;
  }
  .jr-print-kopf-right {
    float: right;
    text-align: right;
    font-size: 9pt;
    color: #333;
    line-height: 1.5;
  }

  /* Platz für den fixen Kopf (Höhe 42pt + Trennlinie + Puffer) */
  #jr-content { margin-top: 58pt; }

  /* Karten */
  .card {
    box-shadow: none !important;
    border: 0.5pt solid #ccc !important;
    border-radius: 0 !important;
    margin-bottom: 8pt !important;
    break-inside: avoid;
  }
  .card-header {
    background: #1a3a5c !important;
    color: white !important;
    padding: 5pt 8pt !important;
  }
  .card-title { color: white !important; font-size: 10pt !important; }
  .card-body { padding: 8pt !important; }

  /* Stat-Karten (KPI-Zeile) */
  .jr-grid-3 {
    display: flex !important;
    gap: 6pt !important;
    break-inside: avoid;
    margin-bottom: 8pt !important;
  }
  .stat-card {
    flex: 1;
    border: 0.5pt solid #ccc !important;
    border-radius: 0 !important;
    padding: 8pt !important;
    box-shadow: none !important;
    text-align: center;
  }
  .stat-icon { font-size: 14pt !important; }
  .stat-value { font-size: 14pt !important; }
  .stat-label { font-size: 8pt !important; color: #555 !important; }

  /* Zweierspalten-Grid */
  .jr-grid-2 {
    display: grid !important;
    grid-template-columns: 1fr 1fr !important;
    gap: 6pt !important;
    break-inside: avoid;
  }

  /* Tabellen */
  table { font-size: 9pt !important; width: 100% !important; border-collapse: collapse !important; }
  th, td { padding: 3pt 5pt !important; }
  thead tr { background: #f0f0f0 !important; }

  /* Seitenumbrüche */
  .jr-break-before { break-before: page !important; }
  .jr-no-break { break-inside: avoid !important; }

  /* Fußzeile / Unterschriften */
  .jr-footer {
    margin-top: 20pt !important;
    font-size: 9pt !important;
    color: #333 !important;
    break-inside: avoid;
  }
  .jr-footer-meta { display: none; }  /* "Erstellt mit Vereinssoftware" ausblenden */
  .jr-unterschriften {
    margin-top: 24pt;
    border-top: 0.5pt solid #999;
    padding-top: 10pt;
    display: flex !important;
    gap: 0 !important;
    justify-content: space-between;
  }
  .jr-unterschrift-block {
    display: inline-block;
    width: 30%;
    font-size: 9pt;
  }
  .jr-unterschrift-linie {
    border-bottom: 0.5pt solid #333;
    margin-bottom: 3pt;
    height: 28pt;
  }

  /* Badge im Druck vereinfachen */
  .badge {
    border: 0.5pt solid #999 !important;
    background: transparent !important;
    color: #000 !important;
    font-size: 8pt !important;
    padding: 1pt 4pt !important;
  }

  /* Fortschrittsbalken ausblenden (nur Zahlen zählen) */
  .jr-bar-wrap { display: none !important; }
}

/* Toggle Switch */
.toggle-switch {
  position: relative;
  display: inline-block;
  width: 48px;
  height: 26px;
  flex-shrink: 0;
}
.toggle-switch input {
  opacity: 0;
  width: 0;
  height: 0;
}
.toggle-slider {
  position: absolute;
  inset: 0;
  background: var(--border);
  border-radius: 26px;
  cursor: pointer;
  transition: background 0.2s;
}
.toggle-slider::before {
  content: '';
  position: absolute;
  width: 20px;
  height: 20px;
  left: 3px;
  top: 3px;
  background: white;
  border-radius: 50%;
  transition: transform 0.2s;
  box-shadow: 0 1px 3px rgba(0,0,0,0.2);
}
.toggle-switch input:checked + .toggle-slider {
  background: var(--primary);
}
.toggle-switch input:checked + .toggle-slider::before {
  transform: translateX(22px);
}
.toggle-switch input:disabled + .toggle-slider {
  opacity: 0.5;
  cursor: not-allowed;
}
