/* Reset & base */
*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

:root {
  --color-bg: #f9fafb;
  --color-white: #ffffff;
  --color-text: #1a1a1a;
  --color-text-muted: #6b7280;
  --color-primary: #0a7ea4;
  --color-primary-hover: #087891;
  --color-sidebar: #ffffff;
  --color-sidebar-text: #6b7280;
  --color-sidebar-active: #1a1a1a;
  --color-sidebar-border: #e5e7eb;
  --color-nav-hover: #f9fafb;
  --color-nav-active: #f0f9fc;
  --color-border: #e5e7eb;
  --color-danger: #dc2626;
  --color-danger-hover: #b91c1c;
  --color-success: #16a34a;
  --color-warning: #92400e;
  --color-table-hover: #f9fafb;
  --color-focus-ring: rgba(10, 126, 164, 0.1);
  --color-alert-error-bg: #fef2f2;
  --color-alert-error-border: #fecaca;
  --color-alert-success-bg: #f0fdf4;
  --color-alert-success-border: #bbf7d0;
  --color-badge-success-bg: #dcfce7;
  --color-badge-success-text: #166534;
  --color-badge-danger-bg: #fee2e2;
  --color-badge-danger-text: #991b1b;
  --color-badge-info-bg: #f0f9fc;
  --color-badge-info-text: #0a7ea4;
  --radius: 6px;
  --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.05);
  --shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

[data-theme='dark'] {
  --color-bg: #151718;
  --color-white: #1e2022;
  --color-text: #ECEDEE;
  --color-text-muted: #9BA1A6;
  --color-primary: #4db8d4;
  --color-primary-hover: #5cc4de;
  --color-sidebar: #151718;
  --color-sidebar-text: #687076;
  --color-sidebar-active: #ECEDEE;
  --color-sidebar-border: #2c2f33;
  --color-nav-hover: #2c2f33;
  --color-nav-active: rgba(77, 184, 212, 0.2);
  --color-border: #3a3d40;
  --color-danger: #f87171;
  --color-danger-hover: #ef4444;
  --color-success: #4ade80;
  --color-warning: #fbbf24;
  --color-table-hover: #1e2022;
  --color-focus-ring: rgba(77, 184, 212, 0.2);
  --color-alert-error-bg: #3b1c1c;
  --color-alert-error-border: #7f1d1d;
  --color-alert-success-bg: #1a3a2a;
  --color-alert-success-border: #166534;
  --color-badge-success-bg: #1a3a2a;
  --color-badge-success-text: #4ade80;
  --color-badge-danger-bg: #7f1d1d;
  --color-badge-danger-text: #fecaca;
  --color-badge-info-bg: #1a2c33;
  --color-badge-info-text: #4db8d4;
  --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.2);
  --shadow: 0 1px 3px rgba(0, 0, 0, 0.3);
}

html, body {
  height: 100%;
  font-family: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  font-size: 14px;
  line-height: 1.5;
  color: var(--color-text);
  background: var(--color-bg);
}

h1 { font-size: 2rem; font-weight: 600; line-height: 1.2; margin-bottom: 0.5em; }
h2 { font-size: 1.5rem; font-weight: 600; line-height: 1.25; margin-bottom: 0.5em; }
h3 { font-size: 1.25rem; font-weight: 500; line-height: 1.3; margin-bottom: 0.5em; }
h4 { font-size: 1.1rem; font-weight: 500; line-height: 1.35; margin-bottom: 0.5em; }
h5 { font-size: 1rem; font-weight: 500; line-height: 1.4; margin-bottom: 0.5em; }
h6 { font-size: 0.875rem; font-weight: 600; line-height: 1.4; margin-bottom: 0.5em; text-transform: uppercase; letter-spacing: 0.5px; }

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

.sidebar {
  width: 240px;
  background: var(--color-sidebar);
  color: var(--color-sidebar-text);
  border-right: 1px solid var(--color-sidebar-border);
  display: flex;
  flex-direction: column;
  flex-shrink: 0;
}

.sidebar-header {
  padding: 20px 16px;
  border-bottom: 1px solid var(--color-sidebar-border);
  display: flex;
  justify-content: center;
}

.sidebar-logo-img {
  max-width: 140px;
  height: auto;
}

[data-theme='dark'] .sidebar-logo-light {
  display: none;
}

.sidebar-logo-dark {
  display: none;
}

[data-theme='dark'] .sidebar-logo-dark {
  display: unset;
}
.sidebar-nav {
  display: flex;
  flex-direction: column;
  padding: 12px 8px;
  gap: 2px;
  flex: 1;
  overflow-y: auto;
}

.sidebar-footer {
  padding: 12px 8px;
  border-top: 1px solid var(--color-sidebar-border);
}

.nav-link.sidebar-profile-link {
  display: flex;
  align-items: center;
  gap: 10px;
  width: 100%;
  min-width: 0;
}

.sidebar-profile-avatar {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: var(--color-primary, #4f46e5);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
  font-weight: 600;
  flex-shrink: 0;
}

.sidebar-profile-name {
  font-size: 13px;
  font-weight: 500;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}


.nav-label {
  display: block;
  padding: 6px 12px 4px;
  margin-top: 8px;
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--color-sidebar-text);
  opacity: 0.6;
}

.nav-label:first-child {
  margin-top: 0;
}

.nav-separator {
  height: 1px;
  margin: 8px 12px;
  background: var(--color-sidebar-border);
}

.nav-link {
  display: block;
  padding: 8px 12px;
  border-radius: var(--radius);
  color: var(--color-sidebar-text);
  text-decoration: none;
  font-size: 14px;
  font-weight: 500;
  transition: background 0.15s, color 0.15s;
}

.nav-link:hover:not(.disabled) {
  background: var(--color-nav-hover);
  color: var(--color-sidebar-active);
}

.nav-link.active {
  background: var(--color-nav-active);
  color: var(--color-primary);
}

.nav-link.disabled {
  opacity: 0.4;
  cursor: not-allowed;
}

.main-wrapper {
  flex: 1;
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

/* Mobile top bar: holds the menu button so it never sits on top of page content */
.mobile-topbar {
  display: none;
}

/* Main content */
.main-content {
  flex: 1;
  overflow-y: auto;
  padding: 24px;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 8px 16px;
  font-size: 14px;
  font-weight: 500;
  border-radius: var(--radius);
  border: 1px solid transparent;
  cursor: pointer;
  text-decoration: none;
  transition: background 0.15s, border-color 0.15s;
  line-height: 1.4;
}

.btn-primary {
  background: var(--color-primary);
  color: #ffffff;
  border-color: var(--color-primary);
}

.btn-primary:hover {
  background: var(--color-primary-hover);
  border-color: var(--color-primary-hover);
}

.btn-outline {
  background: transparent;
  color: var(--color-text);
  border-color: var(--color-border);
}

.btn-outline:hover {
  background: var(--color-bg);
}

.btn-danger {
  background: var(--color-danger);
  color: #ffffff;
  border-color: var(--color-danger);
}

.btn-danger:hover {
  background: var(--color-danger-hover);
}

.btn-sm {
  padding: 4px 10px;
  font-size: 13px;
}

.btn-success {
  background: var(--color-success);
  color: #ffffff;
  border-color: var(--color-success);
}

.inline-form {
  display: inline;
}

/* Cards */
.card {
  background: var(--color-white);
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
}

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

.card-body {
  padding: 20px;
}

/* Tables */
.table {
  width: 100%;
  border-collapse: collapse;
}

.table th,
.table td {
  padding: 10px 16px;
  text-align: left;
  border-bottom: 1px solid var(--color-border);
}

.table th {
  font-size: 12px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--color-text-muted);
  background: var(--color-bg);
}

.table tr:last-child td {
  border-bottom: none;
}

.table tr:hover td {
  background: var(--color-table-hover);
}

/* Forms */
.form-group {
  margin-bottom: 16px;
}

.form-label {
  display: block;
  font-size: 13px;
  font-weight: 600;
  margin-bottom: 4px;
  color: var(--color-text);
}

.form-input {
  width: 100%;
  padding: 8px 12px;
  font-size: 14px;
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  background: var(--color-white);
  color: var(--color-text);
  transition: border-color 0.15s;
}

.form-input:focus {
  outline: none;
  border-color: var(--color-primary);
  box-shadow: 0 0 0 3px var(--color-focus-ring);
}

select.form-input {
  appearance: none;
  -webkit-appearance: none;
  padding-right: 36px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%236b7280' d='M2.22 4.47a.75.75 0 0 1 1.06 0L6 7.19l2.72-2.72a.75.75 0 0 1 1.06 1.06L6.53 8.78a.75.75 0 0 1-1.06 0L2.22 5.53a.75.75 0 0 1 0-1.06z'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 12px center;
  background-size: 12px;
  cursor: pointer;
}

/* Alerts */
.alert {
  padding: 12px 16px;
  border-radius: var(--radius);
  margin-bottom: 16px;
  font-size: 14px;
}

.alert-error {
  background: var(--color-alert-error-bg);
  color: var(--color-danger);
  border: 1px solid var(--color-alert-error-border);
}

.alert-success {
  background: var(--color-alert-success-bg);
  color: var(--color-success);
  border: 1px solid var(--color-alert-success-border);
}

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

.stat-card {
  background: var(--color-white);
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  padding: 20px;
  box-shadow: var(--shadow-sm);
}

.stat-value {
  font-size: 28px;
  font-weight: 700;
  color: var(--color-text);
}

.stat-label {
  font-size: 13px;
  color: var(--color-text-muted);
  margin-top: 4px;
}

/* Badges */
/* One pill size everywhere. A label never wraps: a two-line pill turns into
   a blob and stretches the table row (#371). */
.badge {
  display: inline-block;
  padding: 2px 8px;
  font-size: 12px;
  font-weight: 600;
  border-radius: 9999px;
  white-space: nowrap;
}

/* A line of pills (and short text) with even spacing that wraps as a group. */
.badge-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
}

.badge-success {
  background: var(--color-badge-success-bg);
  color: var(--color-badge-success-text);
}

.badge-danger {
  background: var(--color-badge-danger-bg);
  color: var(--color-badge-danger-text);
}

.badge-info {
  background: var(--color-badge-info-bg);
  color: var(--color-badge-info-text);
}

.badge-gray {
  background: #e5e7eb;
  color: #374151;
}

.badge-blue {
  background: #dbeafe;
  color: #1e40af;
}

.badge-indigo {
  background: #e0e7ff;
  color: #3730a3;
}

.badge-orange {
  background: #ffedd5;
  color: #9a3412;
}

.badge-yellow {
  background: #fef3c7;
  color: #92400e;
}

.badge-cyan {
  background: #cffafe;
  color: #155e75;
}

.badge-green {
  background: #dcfce7;
  color: #166534;
}

.badge-purple {
  background: #f3e8ff;
  color: #6b21a8;
}

/* Reserved for things that need chasing, e.g. a vehicle released unpaid. */
.badge-red {
  background: #fee2e2;
  color: #991b1b;
}

[data-theme='dark'] .badge-gray {
  background: #374151;
  color: #d1d5db;
}

[data-theme='dark'] .badge-blue {
  background: #1e3a5f;
  color: #93c5fd;
}

[data-theme='dark'] .badge-indigo {
  background: #312e81;
  color: #c7d2fe;
}

[data-theme='dark'] .badge-orange {
  background: #7c2d12;
  color: #fdba74;
}

[data-theme='dark'] .badge-yellow {
  background: #78350f;
  color: #fcd34d;
}

[data-theme='dark'] .badge-cyan {
  background: #164e63;
  color: #67e8f9;
}

[data-theme='dark'] .badge-green {
  background: #14532d;
  color: #86efac;
}

[data-theme='dark'] .badge-purple {
  background: #581c87;
  color: #d8b4fe;
}

[data-theme='dark'] .badge-red {
  background: #7f1d1d;
  color: #fca5a5;
}

.badge-superuser {
  background: #7c3aed;
  color: #fff;
  font-weight: 600;
}
[data-theme='dark'] .badge-superuser {
  background: #6d28d9;
  color: #ede9fe;
}

.superuser-banner {
  background: #7c3aed;
  color: #fff;
  text-align: center;
  padding: 6px 16px;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.5px;
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 9999;
}
.superuser-banner + .app-layout {
  padding-top: 33px;
}
[data-theme='dark'] .superuser-banner {
  background: #6d28d9;
  color: #ede9fe;
}

/* Environment pill — small badge next to the user name in the sidebar footer,
   shown in dev/staging only (see partials/layout-start.ejs). Colors match the
   iOS app icon badges (assets/images/icon-dev / icon-test). */
.env-pill {
  margin-left: auto;
  flex-shrink: 0;
  padding: 2px 7px;
  border-radius: 999px;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.5px;
  color: #fff;
}
.env-pill--dev {
  background: #f97316;
}
.env-pill--test {
  background: #7c3aed;
}

/* Ticket timeline */
.ticket-timeline {
  display: flex;
  align-items: flex-start;
  gap: 0;
  overflow-x: auto;
  padding: 8px 0;
}

.timeline-step {
  display: flex;
  flex-direction: column;
  align-items: center;
  flex: 1;
  min-width: 100px;
  position: relative;
}

.timeline-step:not(:last-child)::after {
  content: "";
  position: absolute;
  top: 10px;
  left: calc(50% + 12px);
  width: calc(100% - 24px);
  height: 2px;
  background: var(--color-border);
}

.timeline-step-completed:not(:last-child)::after {
  background: var(--color-primary);
}

.timeline-step-current:not(:last-child)::after {
  background: var(--color-border);
}

.timeline-dot {
  width: 20px;
  height: 20px;
  border-radius: 50%;
  border: 2px solid var(--color-border);
  background: var(--color-white);
  z-index: 1;
  flex-shrink: 0;
}

.timeline-step-completed .timeline-dot {
  background: var(--color-primary);
  border-color: var(--color-primary);
}

.timeline-step-current .timeline-dot {
  border-color: var(--color-primary);
  background: var(--color-white);
  box-shadow: 0 0 0 4px var(--color-focus-ring);
}

.timeline-step-future .timeline-dot {
  background: var(--color-bg);
  border-color: var(--color-border);
}

.timeline-content {
  text-align: center;
  margin-top: 8px;
}

.timeline-label {
  font-size: 12px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.03em;
}

.timeline-step-future .timeline-label {
  color: var(--color-text-muted);
}

.timeline-step-current .timeline-label {
  color: var(--color-primary);
}

.timeline-time {
  font-size: 11px;
  color: var(--color-text-muted);
  margin-top: 2px;
}

.timeline-user {
  font-size: 11px;
  color: var(--color-text-muted);
}

/* Pagination */
.pagination {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 4px;
  margin-top: 16px;
  justify-content: center;
}

.pagination .pagination-pages {
  display: contents;
}

/* "Page 3 of 57": shown on phones instead of the numbered buttons */
.pagination .pagination-status {
  display: none;
  border: none;
  background: none;
  padding: 0 12px;
  color: var(--color-text-muted);
}

.pagination a,
.pagination span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 32px;
  height: 32px;
  padding: 0 8px;
  font-size: 13px;
  border-radius: var(--radius);
  text-decoration: none;
  color: var(--color-text);
  border: 1px solid var(--color-border);
  background: var(--color-white);
}

.pagination a:hover {
  background: var(--color-bg);
}

.pagination .active {
  background: var(--color-primary);
  color: #ffffff;
  border-color: var(--color-primary);
}

.pagination .disabled {
  opacity: 0.4;
  pointer-events: none;
}

.pagination .pagination-ellipsis {
  border: none;
  background: none;
  cursor: default;
}

/* User row disabled */
.row-disabled td {
  opacity: 0.5;
  text-decoration: line-through;
}

/* Toolbar */
.toolbar {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 16px;
  flex-wrap: wrap;
}

.toolbar .form-input {
  width: auto;
  min-width: 240px;
}

/* Checkbox inline */
.form-check {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 14px;
  cursor: pointer;
}

.form-check input[type="checkbox"] {
  width: 16px;
  height: 16px;
}

.form-check-group {
  display: flex;
  gap: 16px;
}

/* Form actions */
.form-actions {
  display: flex;
  gap: 8px;
  margin-top: 24px;
}

/* Breadcrumbs */
.breadcrumb {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 13px;
  margin-bottom: 4px;
}

.breadcrumb a {
  color: var(--color-text-muted);
  text-decoration: none;
}

.breadcrumb a:hover {
  color: var(--color-primary);
}

.breadcrumb span:last-child {
  color: var(--color-text-muted);
}

.breadcrumb-sep {
  color: var(--color-border);
  font-size: 12px;
}

/* Page heading */
.page-header {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  margin-bottom: 24px;
}

.page-header h1 {
  font-size: 28px;
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.2;
}

.page-header h2 {
  font-size: 20px;
  font-weight: 600;
}

.page-header .welcome-text {
  font-size: 14px;
  color: var(--text-secondary, #6b7280);
  margin-top: 2px;
  font-weight: 400;
}

/* Profile page */
.profile-layout {
  max-width: 560px;
}

.profile-section {
  margin-bottom: 32px;
}

.profile-section-title {
  font-size: 16px;
  font-weight: 600;
  margin-bottom: 12px;
  color: var(--color-text-muted);
  letter-spacing: 0.01em;
}

/* Login page */
.login-container {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 100vh;
  background: var(--color-bg);
}

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

.login-card h1 {
  font-size: 22px;
  font-weight: 700;
  margin-bottom: 24px;
  text-align: center;
}

/* Hamburger button (hidden on desktop) */
.hamburger-btn {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
  color: var(--color-text);
}

.hamburger-btn svg {
  display: block;
}

/* Sidebar overlay */
.sidebar-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.4);
  z-index: 999;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.25s ease;
}

.sidebar-overlay.visible {
  opacity: 1;
  pointer-events: auto;
}

/* Button loading state */
.btn-loading {
  position: relative;
  pointer-events: none;
  opacity: 0.8;
}

.btn-loading::after {
  content: "";
  display: inline-block;
  width: 14px;
  height: 14px;
  margin-left: 8px;
  border: 2px solid transparent;
  border-top-color: currentColor;
  border-radius: 50%;
  animation: btn-spin 0.6s linear infinite;
  vertical-align: middle;
}

@keyframes btn-spin {
  to { transform: rotate(360deg); }
}

/* Responsive */
@media (max-width: 768px) {
  .hamburger-btn {
    display: block;
  }

  .sidebar {
    position: fixed;
    top: 0;
    left: 0;
    height: 100%;
    width: 260px;
    z-index: 1000;
    transform: translateX(-100%);
    transition: transform 0.25s ease;
  }

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

  /* Let the whole page scroll instead of a fixed-height inner box. iPhone
     Safari counts 100vh as the screen height with its toolbars hidden, so a
     100vh box ran under the bottom toolbar and the last rows were hard to reach. */
  .app-layout {
    flex-direction: column;
    height: auto;
    min-height: 100vh;
    min-height: 100dvh;
  }

  .main-wrapper,
  .main-content {
    overflow: visible;
  }

  .main-content {
    padding: 16px;
  }

  /* Three columns: menu button, centered logo, empty right side that
     balances the button so the logo sits in the true middle */
  .mobile-topbar {
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    align-items: center;
    position: sticky;
    top: 0;
    z-index: 900;
    padding: 8px 12px;
    background: var(--color-bg);
    border-bottom: 1px solid var(--color-border);
  }

  .mobile-topbar-logo {
    display: flex;
    align-items: center;
  }

  .mobile-topbar-logo img {
    height: 36px;
    width: auto;
  }

  .hamburger-btn {
    justify-self: start;
    padding: 10px;
    margin: -6px 0;
  }

  .pagination .pagination-pages {
    display: none;
  }

  .pagination .pagination-status {
    display: inline-flex;
  }

  .pagination a {
    min-height: 44px;
    padding: 0 16px;
  }

  .stats-grid {
    grid-template-columns: 1fr;
  }

  .form-input, select, textarea {
    font-size: 16px;
  }

  .card-body {
    overflow-x: auto;
  }

  .page-header {
    flex-direction: column;
    align-items: flex-start;
    gap: 12px;
  }

  .toolbar {
    flex-direction: column;
    align-items: stretch;
  }

  .toolbar .form-input {
    width: 100%;
    min-width: 0;
  }

  .btn {
    min-height: 44px;
  }

  .charts-grid {
    grid-template-columns: 1fr !important;
  }

  .superuser-banner + .app-layout .mobile-topbar {
    top: 33px;
  }

  .superuser-banner + .app-layout .sidebar {
    top: 33px;
    height: calc(100% - 33px);
  }

  .login-card {
    margin: 16px;
  }
}

/* Utility */
.text-muted {
  color: var(--color-text-muted);
}

.text-danger {
  color: var(--color-danger);
}

/* Per-day pricing coverage readout under the day-of-week breakpoints. */
.dow-coverage {
  font-size: 13px;
  line-height: 1.5;
}

.mt-2 {
  margin-top: 8px;
}

.mb-2 {
  margin-bottom: 8px;
}

.gap-2 {
  gap: 8px;
}

.flex {
  display: flex;
}

.items-center {
  align-items: center;
}

/* Toggle switch */
.toggle-switch {
  position: relative;
  display: inline-block;
  width: 44px;
  height: 24px;
  cursor: pointer;
}

.toggle-switch input {
  opacity: 0;
  width: 0;
  height: 0;
}

.toggle-slider {
  position: absolute;
  inset: 0;
  background: var(--color-border);
  border-radius: 24px;
  transition: background 0.2s;
}

.toggle-slider::before {
  content: "";
  position: absolute;
  width: 18px;
  height: 18px;
  left: 3px;
  bottom: 3px;
  background: #ffffff;
  border-radius: 50%;
  transition: transform 0.2s;
}

.toggle-switch input:checked + .toggle-slider {
  background: var(--color-primary);
}

.toggle-switch input:checked + .toggle-slider::before {
  transform: translateX(20px);
}
