/* ============================================
   PLAYLISTY — Component Styles
   ============================================ */

/* ── Logo / Brand ── */
.logo-text {
  font-family: 'Outfit', var(--font-sans);
  font-size: var(--text-xl);
  font-weight: 700;
  letter-spacing: -0.03em;
  background: linear-gradient(135deg, var(--logo-color) 0%, var(--accent-primary) 50%, var(--logo-color) 100%);
  background-size: 200% 200%;
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  animation: logo-shimmer 6s ease-in-out infinite;
  position: relative;
  cursor: default;
  transition: letter-spacing 0.4s cubic-bezier(0.34, 1.56, 0.64, 1),
              filter 0.4s ease;
  filter: drop-shadow(0 0 8px rgba(170, 205, 220, 0.15));
}
.logo-text:hover {
  letter-spacing: 0.06em;
  filter: drop-shadow(0 0 16px rgba(170, 205, 220, 0.35));
  animation-duration: 2s;
}

@keyframes logo-shimmer {
  0%, 100% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
}

/* Light theme logo glow tweak */
[data-theme="light"] .logo-text {
  filter: drop-shadow(0 0 6px rgba(129, 166, 198, 0.12));
}
[data-theme="light"] .logo-text:hover {
  filter: drop-shadow(0 0 14px rgba(129, 166, 198, 0.3));
}

/* ── Buttons ── */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-2);
  padding: var(--space-2) var(--space-4);
  font-family: var(--font-sans);
  font-size: var(--text-sm);
  font-weight: var(--weight-medium);
  letter-spacing: var(--tracking-wide);
  text-transform: uppercase;
  border: 1px solid transparent;
  border-radius: var(--radius-md);
  cursor: pointer;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  white-space: nowrap;
  user-select: none;
  position: relative;
  overflow: hidden;
  box-shadow: inset 0 0 0 0 var(--accent-primary);
}

.btn:hover {
  box-shadow: inset 0 -100px 0 0 var(--accent-primary) !important;
  color: var(--accent-secondary) !important;
  border-color: var(--accent-primary) !important;
}

.btn:active { transform: scale(0.97); }
.btn:disabled { opacity: 0.5; cursor: not-allowed; pointer-events: none; }

.btn-primary {
  background: var(--text-primary);
  color: var(--bg-primary);
  border: 1px solid var(--text-primary);
  border-radius: var(--radius-full);
}

.btn-secondary {
  background: transparent;
  color: var(--text-primary);
  border: 1px solid var(--border-secondary);
  border-radius: var(--radius-full);
}

.btn-ghost {
  background: transparent;
  color: var(--text-secondary);
  border: none;
  padding: var(--space-1) var(--space-2);
}

.btn-icon {
  width: 32px;
  height: 32px;
  padding: 0;
  border-radius: var(--radius-md);
}

.btn-lg {
  padding: var(--space-3) var(--space-6);
  font-size: var(--text-base);
  border-radius: var(--radius-lg);
}

/* ── Inputs ── */
.input-group {
  display: flex;
  flex-direction: column;
  gap: var(--space-1);
}

.input-label {
  font-size: var(--text-xs);
  font-weight: var(--weight-medium);
  color: var(--text-tertiary);
  text-transform: uppercase;
  letter-spacing: var(--tracking-wider);
}

.input {
  width: 100%;
  padding: var(--space-2) var(--space-3);
  font-family: var(--font-sans);
  font-size: var(--text-md);
  color: var(--text-primary);
  background: var(--bg-input);
  border: 1px solid var(--border-primary);
  border-radius: var(--radius-md);
  transition: all var(--duration-fast) var(--ease-default);
  outline: none;
}
.input::placeholder { color: var(--text-muted); }
[data-theme="dark"] .hero-input { caret-color: var(--accent-primary); }
[data-theme="light"] .hero-input { caret-color: var(--accent-primary-dark); }
.hero-input::placeholder { color: #8b8070; }
.input:hover { border-color: var(--border-secondary); }
.input:focus {
  border-color: var(--accent-primary);
  box-shadow: 0 0 0 3px rgba(139, 92, 246, 0.2);
}

.input-lg {
  padding: var(--space-3) var(--space-4);
  font-size: var(--text-lg);
  border-radius: var(--radius-lg);
}

.input-with-btn {
  display: flex;
  gap: var(--space-2);
  align-items: stretch;
}
.input-with-btn .input { flex: 1; }

textarea.input {
  resize: vertical;
  min-height: 100px;
  font-family: var(--font-mono);
  font-size: var(--text-sm);
  line-height: var(--leading-relaxed);
}

/* ── Cards ── */
.card {
  background: var(--glass-bg);
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  border: 1px solid var(--border-primary);
  border-radius: 24px;
  padding: var(--space-8);
  transition: all var(--duration-normal) var(--ease-default);
  box-shadow: var(--shadow-md);
}
.card:hover {
  border-color: var(--border-secondary);
  box-shadow: var(--shadow-lg);
  transform: translateY(-2px);
}

.card-glass {
  background: var(--glass-bg);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-xl);
  padding: var(--space-5);
}

.card-stat {
  background: var(--glass-bg);
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  border: 1px solid var(--border-primary);
  border-radius: 24px;
  padding: var(--space-6) var(--space-8);
  display: flex;
  flex-direction: column;
  gap: var(--space-2);
  transition: all var(--duration-normal) var(--ease-bounce);
  position: relative;
  overflow: hidden;
  box-shadow: var(--shadow-md);
}
.card-stat:hover {
  border-color: var(--text-primary);
  box-shadow: var(--shadow-lg);
  transform: translateY(-4px) scale(1.02);
}
.card-stat .stat-label {
  font-size: var(--text-xs);
  font-weight: var(--weight-medium);
  text-transform: uppercase;
  letter-spacing: var(--tracking-wider);
  color: var(--text-tertiary);
}
.card-stat .stat-value {
  font-size: var(--text-2xl);
  font-weight: var(--weight-bold);
  color: var(--text-primary);
  font-family: var(--font-mono);
  letter-spacing: var(--tracking-tight);
}
.card-stat .stat-sub {
  font-size: var(--text-xs);
  color: var(--text-muted);
}

/* ── Badges / Tags ── */
.badge {
  display: inline-flex;
  align-items: center;
  gap: var(--space-1);
  padding: 2px var(--space-2);
  font-size: var(--text-xs);
  font-weight: var(--weight-semibold);
  border-radius: var(--radius-full);
  white-space: nowrap;
  line-height: 1.6;
}

.badge-gold { background: rgba(212,160,83,0.15); color: var(--accent-primary); }

.badge-blue-1 { background: color-mix(in srgb, var(--accent-primary) 10%, transparent); color: var(--accent-primary); }
.badge-blue-2 { background: color-mix(in srgb, var(--accent-primary) 20%, transparent); color: var(--accent-primary); }
.badge-blue-3 { background: color-mix(in srgb, var(--accent-primary) 35%, transparent); color: var(--accent-primary); }
.badge-blue-4 { background: color-mix(in srgb, var(--accent-primary) 60%, transparent); color: var(--bg-primary); }
.badge-blue-5 { background: color-mix(in srgb, var(--accent-primary) 80%, transparent); color: var(--bg-primary); }
.badge-blue-6 { background: var(--accent-primary); color: var(--bg-primary); }
.badge-green { background: var(--tag-green-bg); color: var(--tag-green); }
.badge-blue { background: var(--tag-blue-bg); color: var(--tag-blue); }
.badge-purple { background: var(--tag-purple-bg); color: var(--tag-purple); }
.badge-pink { background: var(--tag-pink-bg); color: var(--tag-pink); }
.badge-orange { background: var(--tag-orange-bg); color: var(--tag-orange); }
.badge-red { background: var(--tag-red-bg); color: var(--tag-red); }
.badge-cyan { background: var(--tag-cyan-bg); color: var(--tag-cyan); }
.badge-yellow { background: var(--tag-yellow-bg); color: var(--tag-yellow); }
.badge-lime { background: var(--tag-lime-bg); color: var(--tag-lime); }

.badge-speed {
  padding: var(--space-1) var(--space-3);
  font-family: var(--font-mono);
  font-size: var(--text-sm);
  font-weight: var(--weight-bold);
  border-radius: var(--radius-md);
}

/* ── Tables ── */
.table-wrapper {
  width: 100%;
  overflow-x: auto;
  border: 1px solid var(--border-primary);
  border-radius: var(--radius-xl);
}

.table {
  width: 100%;
  border-collapse: collapse;
  font-size: var(--text-sm);
}
.table thead {
  background: var(--bg-tertiary);
  position: sticky;
  top: 0;
}
.table th {
  padding: var(--space-3) var(--space-4);
  font-size: var(--text-xs);
  font-weight: var(--weight-semibold);
  text-transform: uppercase;
  letter-spacing: var(--tracking-wider);
  color: var(--text-tertiary);
  text-align: left;
  border-bottom: 1px solid var(--border-primary);
  white-space: nowrap;
}
.table td {
  padding: var(--space-3) var(--space-4);
  border-bottom: 1px solid var(--border-primary);
  color: var(--text-secondary);
}
.table tbody tr {
  transition: background var(--duration-fast) var(--ease-default);
}
.table tbody tr:hover {
  background: var(--bg-hover);
}
.table tbody tr:last-child td {
  border-bottom: none;
}

/* ── Progress Bars ── */
.progress {
  width: 100%;
  height: 6px;
  background: var(--bg-tertiary);
  border-radius: var(--radius-full);
  overflow: hidden;
  position: relative;
}
.progress-fill {
  height: 100%;
  border-radius: var(--radius-full);
  transition: width var(--duration-slow) var(--ease-out);
  position: relative;
}
.progress-fill::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.2), transparent);
  animation: shimmer 2s infinite;
  background-size: 200% 100%;
}

.progress-lg { height: 10px; border-radius: var(--radius-md); }
.progress-lg .progress-fill { border-radius: var(--radius-md); }

/* ── Tabs ── */
.tabs {
  display: flex;
  gap: var(--space-1);
  border-bottom: 1px solid var(--border-primary);
  padding-bottom: 0;
  overflow-x: auto;
}
.tab {
  display: flex;
  align-items: center;
  gap: var(--space-2);
  padding: var(--space-2) var(--space-4);
  font-size: var(--text-sm);
  font-weight: var(--weight-medium);
  color: var(--text-tertiary);
  border: none;
  background: none;
  cursor: pointer;
  border-bottom: 2px solid transparent;
  margin-bottom: -1px;
  transition: all var(--duration-fast) var(--ease-default);
  white-space: nowrap;
  font-family: var(--font-sans);
}
.tab:hover {
  color: var(--text-secondary);
  background: var(--bg-hover);
  border-radius: var(--radius-md) var(--radius-md) 0 0;
}
.tab.active {
  color: var(--text-primary);
  border-bottom-color: var(--accent-primary);
}

/* ── Segmented Control (Pill-shaped tabs) ── */
.segmented-control {
  border-bottom: none;
  background: var(--bg-tertiary);
  padding: var(--space-1);
  border-radius: var(--radius-full);
  gap: var(--space-1);
  flex-wrap: wrap;
}
.segmented-control .tab {
  border-bottom: none;
  margin-bottom: 0;
  border-radius: var(--radius-full);
  padding: var(--space-1) var(--space-3);
  font-weight: var(--weight-regular);
  border: 1px solid transparent; /* Prevents jumping */
  transition: background var(--duration-fast) var(--ease-default),
              color var(--duration-fast) var(--ease-default),
              box-shadow var(--duration-fast) var(--ease-default),
              border-color var(--duration-fast) var(--ease-default);
}
.segmented-control .tab:hover {
  background: var(--bg-hover);
  border-radius: var(--radius-full);
}
.segmented-control .tab.active {
  background: var(--bg-elevated);
  color: var(--text-primary);
  box-shadow: var(--shadow-sm);
  border-color: var(--border-primary);
}

/* ── Checkbox ── */
.checkbox-wrapper {
  display: flex;
  align-items: center;
  gap: var(--space-2);
  cursor: pointer;
}
.checkbox {
  appearance: none;
  -webkit-appearance: none;
  width: 16px;
  height: 16px;
  border: 1.5px solid var(--border-secondary);
  border-radius: var(--radius-sm);
  cursor: pointer;
  position: relative;
  transition: all var(--duration-fast) var(--ease-default);
  flex-shrink: 0;
}
.checkbox:checked {
  background: var(--accent-primary);
  border-color: var(--accent-primary);
}
.checkbox:checked::after {
  content: '';
  position: absolute;
  left: 4px;
  top: 1px;
  width: 5px;
  height: 9px;
  border: solid var(--text-inverse);
  border-width: 0 2px 2px 0;
  transform: rotate(45deg);
}
.checkbox:hover { border-color: var(--accent-primary); }

/* ── Toggle Switch ── */
.toggle {
  position: relative;
  width: 40px;
  height: 22px;
  flex-shrink: 0;
}
.toggle input {
  opacity: 0;
  width: 0;
  height: 0;
}
.toggle-slider {
  position: absolute;
  inset: 0;
  background: var(--bg-tertiary);
  border: 1px solid var(--border-secondary);
  border-radius: var(--radius-full);
  cursor: pointer;
  transition: all var(--duration-fast) var(--ease-default);
}
.toggle-slider::before {
  content: '';
  position: absolute;
  top: 2px;
  left: 2px;
  width: 16px;
  height: 16px;
  background: var(--text-tertiary);
  border-radius: 50%;
  transition: all var(--duration-fast) var(--ease-bounce);
}
.toggle input:checked + .toggle-slider {
  background: var(--accent-primary);
  border-color: var(--accent-primary);
}
.toggle input:checked + .toggle-slider::before {
  transform: translateX(18px);
  background: var(--text-inverse);
}

/* ── Toast ── */
#toast-container {
  position: fixed;
  bottom: var(--space-6);
  right: var(--space-6);
  z-index: var(--z-toast);
  display: flex;
  flex-direction: column-reverse;
  gap: var(--space-2);
  pointer-events: none;
}

.toast {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  padding: var(--space-3) var(--space-4);
  background: var(--bg-elevated);
  border: 1px solid var(--border-primary);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  font-size: var(--text-sm);
  color: var(--text-primary);
  animation: slideToast var(--duration-normal) var(--ease-out);
  pointer-events: auto;
  max-width: 400px;
}
.toast-success { border-left: 3px solid var(--tag-green); }
.toast-error { border-left: 3px solid var(--tag-red); }
.toast-info { border-left: 3px solid var(--tag-blue); }
.toast-warning { border-left: 3px solid var(--tag-yellow); }

.toast-exit {
  animation: slideToast var(--duration-fast) var(--ease-in) reverse forwards;
}

/* ── Modal ── */
#modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.6);
  backdrop-filter: blur(4px);
  z-index: var(--z-modal);
  display: none;
  place-items: center;
  padding: var(--space-6);
}
#modal-overlay.active { display: grid; }

.modal {
  background: var(--bg-secondary);
  border: 1px solid var(--border-primary);
  border-radius: var(--radius-2xl);
  padding: var(--space-6);
  max-width: 600px;
  width: 100%;
  max-height: 80vh;
  overflow-y: auto;
  animation: scaleIn var(--duration-normal) var(--ease-out);
  box-shadow: var(--shadow-xl);
}

.modal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: var(--space-5);
}

.modal-title {
  font-size: var(--text-lg);
  font-weight: var(--weight-semibold);
}

/* ── Dropdown ── */
.dropdown {
  position: relative;
}
.dropdown-menu {
  position: absolute;
  top: calc(100% + var(--space-1));
  left: 0;
  min-width: 180px;
  background: var(--bg-elevated);
  border: 1px solid var(--border-primary);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  z-index: var(--z-dropdown);
  padding: var(--space-1);
  animation: fadeInDown var(--duration-fast) var(--ease-out);
}
.dropdown-item {
  display: flex;
  align-items: center;
  gap: var(--space-2);
  padding: var(--space-2) var(--space-3);
  font-size: var(--text-sm);
  color: var(--text-secondary);
  border: none;
  background: none;
  width: 100%;
  text-align: left;
  border-radius: var(--radius-md);
  cursor: pointer;
  transition: all var(--duration-fast) var(--ease-default);
  font-family: var(--font-sans);
}
.dropdown-item:hover {
  background: var(--bg-hover);
  color: var(--text-primary);
}

/* ── Tooltip ── */
[data-tooltip] {
  position: relative;
}
[data-tooltip]::after {
  content: attr(data-tooltip);
  position: absolute;
  bottom: calc(100% + 6px);
  left: 50%;
  transform: translateX(-50%) scale(0.95);
  padding: var(--space-1) var(--space-2);
  background: var(--bg-elevated);
  border: 1px solid var(--border-primary);
  border-radius: var(--radius-md);
  font-size: var(--text-xs);
  color: var(--text-primary);
  white-space: nowrap;
  opacity: 0;
  pointer-events: none;
  transition: all var(--duration-fast) var(--ease-default);
  z-index: var(--z-dropdown);
  box-shadow: var(--shadow-md);
}
[data-tooltip]:hover::after {
  opacity: 1;
  transform: translateX(-50%) scale(1);
}

/* ── Drag & Drop ── */
.drop-zone {
  border: 2px dashed var(--border-secondary);
  border-radius: var(--radius-xl);
  padding: var(--space-10) var(--space-6);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: var(--space-3);
  text-align: center;
  transition: all var(--duration-fast) var(--ease-default);
  cursor: pointer;
}
.drop-zone:hover,
.drop-zone.dragover {
  border-color: var(--accent-primary);
  background: rgba(212, 160, 83, 0.05);
}
.drop-zone.dragover {
  transform: scale(1.01);
}
.drop-zone-icon {
  color: var(--text-muted);
  transition: color var(--duration-fast) var(--ease-default);
}
.drop-zone:hover .drop-zone-icon,
.drop-zone.dragover .drop-zone-icon {
  color: var(--accent-primary);
}

/* ── Empty State ── */
.empty-state {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: var(--space-4);
  padding: var(--space-16) var(--space-6);
  text-align: center;
}
.empty-state-icon {
  color: var(--text-muted);
  opacity: 0.5;
}
.empty-state-title {
  font-size: var(--text-lg);
  font-weight: var(--weight-semibold);
  color: var(--text-secondary);
}
.empty-state-text {
  font-size: var(--text-sm);
  color: var(--text-tertiary);
  max-width: 400px;
}

/* ── Spinner ── */
.spinner {
  width: 20px;
  height: 20px;
  border: 2px solid var(--border-secondary);
  border-top-color: var(--accent-primary);
  border-radius: 50%;
  animation: spin 0.6s linear infinite;
}
.spinner-lg { width: 36px; height: 36px; border-width: 3px; }

/* ── Divider ── */
.divider {
  width: 100%;
  height: 1px;
  background: var(--border-primary);
  margin: var(--space-4) 0;
}

/* ── Collapsible ── */
.collapsible-trigger {
  display: flex;
  align-items: center;
  gap: var(--space-2);
  width: 100%;
  padding: var(--space-2) 0;
  background: none;
  border: none;
  color: var(--text-secondary);
  font-family: var(--font-sans);
  font-size: var(--text-sm);
  font-weight: var(--weight-medium);
  cursor: pointer;
  transition: color var(--duration-fast) var(--ease-default);
}
.collapsible-trigger:hover { color: var(--text-primary); }
.collapsible-trigger .chevron {
  transition: transform var(--duration-fast) var(--ease-default);
}
.collapsible-trigger.open .chevron {
  transform: rotate(90deg);
}
.collapsible-content {
  overflow: hidden;
  max-height: 0;
  transition: max-height var(--duration-slow) var(--ease-default);
}
.collapsible-content.open {
  max-height: 5000px;
}

/* ── Slider / Range ── */
.range-input {
  -webkit-appearance: none;
  appearance: none;
  width: 100%;
  height: 4px;
  background: var(--bg-tertiary);
  border-radius: var(--radius-full);
  outline: none;
  cursor: pointer;
}
.range-input::-webkit-slider-thumb {
  -webkit-appearance: none;
  appearance: none;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: var(--accent-primary);
  cursor: pointer;
  transition: transform var(--duration-fast) var(--ease-bounce);
  box-shadow: 0 0 0 3px rgba(212, 160, 83, 0.2);
}
.range-input::-webkit-slider-thumb:hover {
  transform: scale(1.2);
}

/* ── Star / Favorite ── */
.star-btn {
  background: none;
  border: none;
  cursor: pointer;
  color: var(--text-muted);
  transition: all var(--duration-fast) var(--ease-default);
  padding: var(--space-1);
  display: flex;
  align-items: center;
}
.star-btn.active { color: var(--tag-yellow); }

/* ── Typing Indicator ── */
.typing-indicator {
  display: flex;
  align-items: center;
  gap: 3px;
}
.typing-indicator span {
  width: 4px;
  height: 4px;
  background-color: currentColor;
  border-radius: 50%;
  animation: typing 1.4s infinite ease-in-out both;
}
.typing-indicator span:nth-child(1) { animation-delay: -0.32s; }
.typing-indicator span:nth-child(2) { animation-delay: -0.16s; }
@keyframes typing {
  0%, 80%, 100% { transform: scale(0); opacity: 0.5; }
  40% { transform: scale(1); opacity: 1; }
}

/* ── Indeterminate Progress ── */
@keyframes indeterminate-progress {
  0% { transform: translateX(-100%) scaleX(0.2); }
  50% { transform: translateX(0%) scaleX(0.5); }
  100% { transform: translateX(100%) scaleX(0.2); }
}

/* ============================================
   MOBILE COMPONENT OVERRIDES
   ============================================ */
@media (max-width: 640px) {
  /* ── Tabs: compact, scrollable ── */
  .tabs {
    gap: 0;
    overflow-x: auto;
    scrollbar-width: none;
    -webkit-overflow-scrolling: touch;
  }
  .tabs::-webkit-scrollbar {
    display: none;
  }
  .tab {
    padding: var(--space-2) var(--space-3);
    font-size: var(--text-xs);
    gap: var(--space-1);
    flex-shrink: 0;
  }
  .tab i, .tab svg {
    width: 12px !important;
    height: 12px !important;
  }

  /* ── Buttons: compact on mobile ── */
  .btn {
    font-size: var(--text-xs);
    padding: var(--space-2) var(--space-3);
  }
  .btn-lg {
    padding: var(--space-2) var(--space-4);
    font-size: var(--text-sm);
  }
  .btn-icon {
    width: 28px;
    height: 28px;
  }

  /* ── Badges: slightly smaller ── */
  .badge {
    font-size: 10px;
    padding: 1px var(--space-1);
  }
  .badge-speed {
    font-size: var(--text-xs);
    padding: var(--space-1) var(--space-2);
  }

  /* ── Table: compact cells ── */
  .table th {
    padding: var(--space-2) var(--space-3);
    font-size: 10px;
  }
  .table td {
    padding: var(--space-2) var(--space-3);
    font-size: var(--text-xs);
  }

  /* ── Empty state: less vertical padding ── */
  .empty-state {
    padding: var(--space-10) var(--space-4);
  }

  /* ── Card-glass: tighter ── */
  .card-glass {
    padding: var(--space-4);
    border-radius: 14px;
  }

  /* ── Dropdown: wider on mobile ── */
  .dropdown-menu {
    min-width: 160px;
  }

  /* ── Toggle: slightly smaller ── */
  .toggle {
    width: 36px;
    height: 20px;
  }
  .toggle-slider::before {
    width: 14px;
    height: 14px;
  }
  .toggle input:checked + .toggle-slider::before {
    transform: translateX(16px);
  }
}
