/* PlayGrowBelong Design System CSS */

/* ===== BASE STYLES ===== */
:root {
  /* Color Variables */
  --playfield-blue: #87CEEB;
  --playfield-purple: #9F7AEA;
  --playfield-accent: #FFB347;
  --playfield-green: #68D391;
  --playfield-pink: #F687B3;
  --playfield-teal: #4FD1C5;
  --playfield-indigo: #7F9CF5;
  
  /* Neutral Colors */
  --gray-50: #F9FAFB;
  --gray-100: #F3F4F6;
  --gray-200: #E5E7EB;
  --gray-300: #D1D5DB;
  --gray-600: #4B5563;
  --gray-800: #1F2937;
  --gray-900: #111827;
  
  /* Spacing Scale */
  --space-1: 0.25rem;  /* 4px */
  --space-2: 0.5rem;   /* 8px */
  --space-3: 0.75rem;  /* 12px */
  --space-4: 1rem;     /* 16px */
  --space-5: 1.25rem;  /* 20px */
  --space-6: 1.5rem;   /* 24px */
  --space-8: 2rem;     /* 32px */
  --space-10: 2.5rem;  /* 40px */
  --space-12: 3rem;    /* 48px */
  --space-16: 4rem;    /* 64px */
  --space-20: 5rem;    /* 80px */
  --space-24: 6rem;    /* 96px */
  
  /* Typography Scale */
  --text-xs: 0.75rem;      /* 12px */
  --text-sm: 0.875rem;     /* 14px */
  --text-base: 1rem;       /* 16px */
  --text-lg: 1.125rem;     /* 18px */
  --text-xl: 1.25rem;      /* 20px */
  --text-2xl: 1.5rem;      /* 24px */
  --text-3xl: 1.875rem;    /* 30px */
  --text-4xl: 2.25rem;     /* 36px */
  --text-5xl: 3rem;        /* 48px */
  --text-6xl: 3.5rem;      /* 56px */
  
  /* Border Radius */
  --radius-sm: 0.375rem;   /* 6px */
  --radius-md: 0.5rem;     /* 8px */
  --radius-lg: 0.75rem;    /* 12px */
  --radius-xl: 1rem;       /* 16px */
  --radius-2xl: 1.5rem;    /* 24px */
  --radius-3xl: 2rem;      /* 32px */
  
  /* Shadows */
  --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
  --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
  --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
  --shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
  
  /* Transitions */
  --transition-fast: 150ms ease-in-out;
  --transition-normal: 200ms ease-in-out;
  --transition-slow: 300ms ease-in-out;
  --transition-very-slow: 500ms ease-in-out;
  
  /* Animation Easing */
  --ease-out: cubic-bezier(0.25, 0.46, 0.45, 0.94);
  --ease-in: cubic-bezier(0.55, 0.055, 0.675, 0.19);
  --ease-in-out: cubic-bezier(0.645, 0.045, 0.355, 1);
  --ease-bounce: cubic-bezier(0.68, -0.55, 0.265, 1.55);
}

/* ===== TYPOGRAPHY ===== */
.display-large {
  font-size: var(--text-6xl);
  font-weight: 700;
  line-height: 1.1;
  letter-spacing: -0.025em;
}

.display-medium {
  font-size: var(--text-5xl);
  font-weight: 700;
  line-height: 1.1;
  letter-spacing: -0.025em;
}

.heading-large {
  font-size: var(--text-4xl);
  font-weight: 600;
  line-height: 1.2;
  letter-spacing: -0.025em;
}

.heading-medium {
  font-size: var(--text-3xl);
  font-weight: 600;
  line-height: 1.3;
}

.heading-small {
  font-size: var(--text-2xl);
  font-weight: 600;
  line-height: 1.4;
}

.body-large {
  font-size: var(--text-lg);
  font-weight: 400;
  line-height: 1.6;
}

.body-medium {
  font-size: var(--text-base);
  font-weight: 400;
  line-height: 1.6;
}

.body-small {
  font-size: var(--text-sm);
  font-weight: 400;
  line-height: 1.5;
}

.caption {
  font-size: var(--text-xs);
  font-weight: 400;
  line-height: 1.4;
}

/* ===== FORM ELEMENTS ===== */
/* Checkbox Styling */
input[type="checkbox"] {
  appearance: none;
  -webkit-appearance: none;
  -moz-appearance: none;
  width: 1.25rem;
  height: 1.25rem;
  border: 2px solid #d1d5db;
  border-radius: 0.375rem;
  background-color: white;
  cursor: pointer;
  position: relative;
  transition: all var(--transition-normal);
  flex-shrink: 0;
}

input[type="checkbox"]:hover {
  border-color: var(--playfield-blue);
  background-color: rgba(135, 206, 235, 0.05);
}

input[type="checkbox"]:focus {
  outline: none;
  border-color: var(--playfield-blue);
  box-shadow: 0 0 0 3px rgba(135, 206, 235, 0.2);
}

input[type="checkbox"]:checked {
  background-color: var(--playfield-purple);
  border-color: var(--playfield-purple);
}

/* Larger checkboxes for better touch targets */
input[type="checkbox"].h-5 {
  width: 1.25rem;
  height: 1.25rem;
}

input[type="checkbox"].h-4 {
  width: 1rem;
  height: 1rem;
}

input[type="checkbox"].h-4:checked::after {
  width: 0.375rem;
  height: 0.375rem;
}

/* Checkbox with custom colors */
input[type="checkbox"].text-playfield-purple:checked {
  background-color: var(--playfield-purple);
  border-color: var(--playfield-purple);
}

input[type="checkbox"].text-playfield-blue:checked {
  background-color: var(--playfield-blue);
  border-color: var(--playfield-blue);
}

input[type="checkbox"].text-playfield-green:checked {
  background-color: var(--playfield-green);
  border-color: var(--playfield-green);
}

/* Focus ring for custom colored checkboxes */
input[type="checkbox"].focus\\:ring-playfield-purple:focus {
  box-shadow: 0 0 0 3px rgba(159, 122, 234, 0.2);
}

input[type="checkbox"].focus\\:ring-playfield-blue:focus {
  box-shadow: 0 0 0 3px rgba(135, 206, 235, 0.2);
}

input[type="checkbox"].focus\\:ring-playfield-green:focus {
  box-shadow: 0 0 0 3px rgba(104, 211, 145, 0.2);
}

/* ===== BUTTONS ===== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: var(--space-3) var(--space-6);
  font-weight: 600;
  border-radius: var(--radius-xl);
  text-decoration: none;
  transition: all var(--transition-normal);
  cursor: pointer;
  border: none;
  outline: none;
  min-height: 44px; /* Accessibility: minimum touch target */
}

.btn:focus {
  outline: 2px solid var(--playfield-blue);
  outline-offset: 2px;
}

.btn-primary {
  background-color: var(--playfield-blue);
  color: white;
  box-shadow: var(--shadow-md);
}

.btn-primary:hover {
  background-color: #5BA3D4;
  transform: translateY(-1px);
  box-shadow: var(--shadow-lg);
}

.btn-secondary {
  background-color: white;
  color: var(--playfield-blue);
  border: 2px solid var(--playfield-blue);
}

.btn-secondary:hover {
  background-color: var(--playfield-blue);
  color: white;
  transform: translateY(-1px);
}

.btn-ghost {
  background-color: transparent;
  color: var(--playfield-blue);
}

.btn-ghost:hover {
  background-color: rgba(135, 206, 235, 0.1);
  transform: translateY(-1px);
}

.btn-accent {
  background-color: var(--playfield-accent);
  color: white;
  box-shadow: var(--shadow-md);
}

.btn-accent:hover {
  background-color: #E69A3C;
  transform: translateY(-1px);
  box-shadow: var(--shadow-lg);
}

.btn-purple {
  background-color: var(--playfield-purple);
  color: white;
  box-shadow: var(--shadow-md);
}

.btn-purple:hover {
  background-color: #8B5CF6;
  transform: translateY(-1px);
  box-shadow: var(--shadow-lg);
}

/* Button Sizes */
.btn-sm {
  padding: var(--space-2) var(--space-4);
  font-size: var(--text-sm);
  min-height: 36px;
}

.btn-lg {
  padding: var(--space-4) var(--space-8);
  font-size: var(--text-lg);
  min-height: 52px;
}

/* ===== CARDS ===== */
.card {
  background-color: white;
  border-radius: var(--radius-2xl);
  box-shadow: var(--shadow-md);
  border: 1px solid var(--gray-100);
  overflow: hidden;
  transition: all var(--transition-slow);
}

.card:hover {
  transform: scale(1.02);
  box-shadow: var(--shadow-xl);
}

.card-feature {
  padding: var(--space-6);
  border-radius: var(--radius-2xl);
  box-shadow: var(--shadow-md);
  background: linear-gradient(135deg, white 0%, var(--gray-50) 100%);
  border: 2px solid white;
  transition: all var(--transition-slow);
}

.card-feature:hover {
  box-shadow: var(--shadow-lg);
  transform: translateY(-2px);
}

.card-content {
  padding: var(--space-6);
}

.card-image {
  width: 100%;
  height: 200px;
  object-fit: cover;
}

/* ===== SECTIONS ===== */
.section {
  width: 100%;
  padding: var(--space-16) var(--space-4);
}

.section-hero {
  width: 100%;
  padding: var(--space-20) var(--space-4);
  background: linear-gradient(180deg, white 0%, var(--gray-50) 100%);
}

.section-colored {
  width: 100%;
  padding: var(--space-16) var(--space-4);
  background: linear-gradient(90deg, var(--playfield-blue) 0%, var(--playfield-purple) 100%);
  color: white;
}

.section-light {
  width: 100%;
  padding: var(--space-16) var(--space-4);
  background-color: var(--gray-50);
}

/* ===== LAYOUT ===== */
.container {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 var(--space-4);
}

.container-sm {
  max-width: 640px;
  margin: 0 auto;
  padding: 0 var(--space-4);
}

.container-lg {
  max-width: 1536px;
  margin: 0 auto;
  padding: 0 var(--space-4);
}

/* Grid Systems */
.grid-2 {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-8);
}

.grid-3 {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-8);
}

.grid-4 {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: var(--space-6);
}

/* ===== UTILITIES ===== */
.text-center { text-align: center; }
.text-left { text-align: left; }
.text-right { text-align: right; }

.mb-1 { margin-bottom: var(--space-1); }
.mb-2 { margin-bottom: var(--space-2); }
.mb-3 { margin-bottom: var(--space-3); }
.mb-4 { margin-bottom: var(--space-4); }
.mb-5 { margin-bottom: var(--space-5); }
.mb-6 { margin-bottom: var(--space-6); }
.mb-8 { margin-bottom: var(--space-8); }
.mb-10 { margin-bottom: var(--space-10); }
.mb-12 { margin-bottom: var(--space-12); }
.mb-16 { margin-bottom: var(--space-16); }

.mt-1 { margin-top: var(--space-1); }
.mt-2 { margin-top: var(--space-2); }
.mt-3 { margin-top: var(--space-3); }
.mt-4 { margin-top: var(--space-4); }
.mt-5 { margin-top: var(--space-5); }
.mt-6 { margin-top: var(--space-6); }
.mt-8 { margin-top: var(--space-8); }
.mt-10 { margin-top: var(--space-10); }
.mt-12 { margin-top: var(--space-12); }
.mt-16 { margin-top: var(--space-16); }

.p-1 { padding: var(--space-1); }
.p-2 { padding: var(--space-2); }
.p-3 { padding: var(--space-3); }
.p-4 { padding: var(--space-4); }
.p-5 { padding: var(--space-5); }
.p-6 { padding: var(--space-6); }
.p-8 { padding: var(--space-8); }
.p-10 { padding: var(--space-10); }
.p-12 { padding: var(--space-12); }
.p-16 { padding: var(--space-16); }

/* ===== ANIMATIONS ===== */
@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

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

@keyframes float {
  0%, 100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-10px);
  }
}

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

.animate-fade-in {
  animation: fadeIn 0.7s ease-out forwards;
}

.animate-slide-in {
  animation: slideIn 0.8s ease-out forwards;
}

.animate-float {
  animation: float 6s ease-in-out infinite;
}

.animate-pulse {
  animation: pulse 4s ease-in-out infinite;
}

/* Staggered animations */
.animate-fade-in-1 { animation: fadeIn 0.7s ease-out 0s forwards; }
.animate-fade-in-2 { animation: fadeIn 0.7s ease-out 0.2s forwards; }
.animate-fade-in-3 { animation: fadeIn 0.7s ease-out 0.4s forwards; }
.animate-fade-in-4 { animation: fadeIn 0.7s ease-out 0.6s forwards; }

/* ===== RESPONSIVE DESIGN ===== */
@media (min-width: 768px) {
  .grid-2 {
    grid-template-columns: repeat(2, 1fr);
  }
  
  .grid-3 {
    grid-template-columns: repeat(3, 1fr);
  }
  
  .grid-4 {
    grid-template-columns: repeat(4, 1fr);
  }
  
  .container {
    padding: 0 var(--space-6);
  }
}

@media (min-width: 1024px) {
  .container {
    padding: 0 var(--space-8);
  }
  
  .display-large {
    font-size: 4rem; /* 64px */
  }
  
  .display-medium {
    font-size: 3.5rem; /* 56px */
  }
}

/* ===== ACCESSIBILITY ===== */
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

/* Focus styles for keyboard navigation */
*:focus {
  outline: 2px solid var(--playfield-blue);
  outline-offset: 2px;
}

/* High contrast mode support */
@media (prefers-contrast: high) {
  .card {
    border: 2px solid var(--gray-800);
  }
  
  .btn {
    border: 2px solid currentColor;
  }
}

/* Reduced motion support */
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}

/* ===== PRINT STYLES ===== */
@media print {
  .btn {
    display: none !important;
  }
  .section-colored {
    background: white !important;
    color: black !important;
  }
}

/* ===== PROFESSIONAL ANIMATIONS ===== */

/* Page Load Animation */
.page-loaded {
  animation: pageLoad 0.8s var(--ease-out) forwards;
}

@keyframes pageLoad {
  0% {
    opacity: 0;
    transform: translateY(20px);
  }
  100% {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Hero Section Animation */
.hero-section {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 1s var(--ease-out), transform 1s var(--ease-out);
}

.hero-section.hero-animated {
  opacity: 1;
  transform: translateY(0);
}

/* Reveal Animations */
.reveal-fade-in,
.reveal-slide-up,
.reveal-slide-left,
.reveal-slide-right,
.reveal-scale,
.reveal-rotate {
  opacity: 0;
  will-change: opacity, transform;
}

.reveal-fade-in {
  transform: translateY(20px);
}

.reveal-slide-up {
  transform: translateY(50px);
}

.reveal-slide-left {
  transform: translateX(-50px);
}

.reveal-slide-right {
  transform: translateX(50px);
}

.reveal-scale {
  transform: scale(0.8);
}

.reveal-rotate {
  transform: rotate(-10deg) scale(0.9);
}

/* Staggered Animation Container */
.staggered-animation > * {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.6s var(--ease-out), transform 0.6s var(--ease-out);
}

/* Parallax Elements */
.parallax {
  will-change: transform;
  transform: translateZ(0);
}

/* Enhanced Card Animations */
.card,
.card-feature {
  transition: transform 0.3s var(--ease-out), 
              box-shadow 0.3s var(--ease-out),
              opacity 0.3s var(--ease-out);
  will-change: transform, box-shadow;
}

.card:hover,
.card-feature:hover {
  transform: translateY(-8px) scale(1.02);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15);
}

/* Enhanced Button Animations */
.btn {
  transition: transform 0.2s var(--ease-out),
              box-shadow 0.2s var(--ease-out),
              background-color 0.2s var(--ease-out),
              color 0.2s var(--ease-out);
  will-change: transform, box-shadow;
}

.btn:hover {
  transform: translateY(-2px);
}

.btn:active {
  transform: translateY(0);
}

/* Loading States */
.loading {
  position: relative;
  overflow: hidden;
}

.loading::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(
    90deg,
    transparent,
    rgba(255, 255, 255, 0.4),
    transparent
  );
  animation: loading-shimmer 1.5s infinite;
}

@keyframes loading-shimmer {
  0% {
    left: -100%;
  }
  100% {
    left: 100%;
  }
}

/* Pulse Animation */
.pulse {
  animation: pulse 2s var(--ease-in-out) infinite;
}

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

/* Bounce Animation */
.bounce {
  animation: bounce 1s var(--ease-bounce) infinite;
}

@keyframes bounce {
  0%, 20%, 53%, 80%, 100% {
    transform: translateY(0);
  }
  40%, 43% {
    transform: translateY(-10px);
  }
  70% {
    transform: translateY(-5px);
  }
  90% {
    transform: translateY(-2px);
  }
}

/* Fade In Animation */
.fade-in {
  animation: fadeIn 0.8s var(--ease-out) forwards;
}

@keyframes fadeIn {
  0% {
    opacity: 0;
    transform: translateY(20px);
  }
  100% {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Slide In Animations */
.slide-in-up {
  animation: slideInUp 0.8s var(--ease-out) forwards;
}

.slide-in-left {
  animation: slideInLeft 0.8s var(--ease-out) forwards;
}

.slide-in-right {
  animation: slideInRight 0.8s var(--ease-out) forwards;
}

@keyframes slideInUp {
  0% {
    opacity: 0;
    transform: translateY(50px);
  }
  100% {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes slideInLeft {
  0% {
    opacity: 0;
    transform: translateX(-50px);
  }
  100% {
    opacity: 1;
    transform: translateX(0);
  }
}

@keyframes slideInRight {
  0% {
    opacity: 0;
    transform: translateX(50px);
  }
  100% {
    opacity: 1;
    transform: translateX(0);
  }
}

/* Scale Animation */
.scale-in {
  animation: scaleIn 0.6s var(--ease-out) forwards;
}

@keyframes scaleIn {
  0% {
    opacity: 0;
    transform: scale(0.8);
  }
  100% {
    opacity: 1;
    transform: scale(1);
  }
}

/* Rotate Animation */
.rotate-in {
  animation: rotateIn 0.8s var(--ease-out) forwards;
}

@keyframes rotateIn {
  0% {
    opacity: 0;
    transform: rotate(-10deg) scale(0.9);
  }
  100% {
    opacity: 1;
    transform: rotate(0deg) scale(1);
  }
}

/* Floating Animation */
.float {
  animation: float 3s var(--ease-in-out) infinite;
}

@keyframes float {
  0%, 100% {
    transform: translateY(0px);
  }
  50% {
    transform: translateY(-10px);
  }
}

/* Typing Animation */
.typing {
  overflow: hidden;
  border-right: 2px solid var(--playfield-blue);
  white-space: nowrap;
  animation: typing 3s steps(40, end), blink-caret 0.75s step-end infinite;
}

@keyframes typing {
  from {
    width: 0;
  }
  to {
    width: 100%;
  }
}

@keyframes blink-caret {
  from, to {
    border-color: transparent;
  }
  50% {
    border-color: var(--playfield-blue);
  }
}

/* Gradient Text Animation */
.gradient-text {
  background: linear-gradient(
    45deg,
    var(--playfield-blue),
    var(--playfield-purple),
    var(--playfield-accent),
    var(--playfield-green)
  );
  background-size: 400% 400%;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  animation: gradient-shift 3s ease infinite;
}

@keyframes gradient-shift {
  0% {
    background-position: 0% 50%;
  }
  50% {
    background-position: 100% 50%;
  }
  100% {
    background-position: 0% 50%;
  }
}

/* Enhanced Section Fade In */
.section-fade-in {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.8s var(--ease-out), transform 0.8s var(--ease-out);
}

.section-fade-in.visible {
  opacity: 1;
  transform: translateY(0);
}

/* Counter Animation Enhancement */
.counter {
  transition: transform 0.3s var(--ease-out);
  will-change: transform;
}

.counter.animating {
  transform: scale(1.1);
}

/* Image Hover Effects */
.image-hover {
  transition: transform 0.3s var(--ease-out), filter 0.3s var(--ease-out);
  will-change: transform, filter;
}

.image-hover:hover {
  transform: scale(1.05);
  filter: brightness(1.1);
}

/* Text Reveal Animation */
.text-reveal {
  overflow: hidden;
  position: relative;
}

.text-reveal::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: var(--playfield-blue);
  transform: translateX(-100%);
  transition: transform 0.8s var(--ease-out);
}

.text-reveal.revealed::after {
  transform: translateX(100%);
}

/* Reduced Motion Support */
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
  
  .reveal-fade-in,
  .reveal-slide-up,
  .reveal-slide-left,
  .reveal-slide-right,
  .reveal-scale,
  .reveal-rotate {
    opacity: 1;
    transform: none;
  }
  
  .staggered-animation > * {
    opacity: 1;
    transform: none;
  }
  
  .card:hover,
  .card-feature:hover {
    transform: none;
  }
  
  .btn:hover {
    transform: none;
  }
}

/* Glass morphism effect */
.glass-morphism-strong {
  background: rgba(15, 23, 42, 0.75);
  backdrop-filter: blur(10px);
}

/* Animation for the progress bar in toast notifications */
@keyframes progress {
  0% { width: 0; }
  100% { width: 100%; }
}

.animate-progress {
  animation: progress 2.5s linear forwards;
  width: 0;
}

.animate-pulse-slow {
  animation: pulse 3s infinite;
}

@keyframes pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.7; }
} 

/* Custom Toggle Switch for Cookie Consent */
.toggle-switch {
  position: relative;
  display: inline-block;
  width: 44px;
  height: 24px;
}
.toggle-switch input {
  position: absolute;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  opacity: 0;
  z-index: 2;
  margin: 0;
  cursor: pointer;
}
.toggle-slider {
  position: absolute;
  cursor: pointer;
  top: 0; left: 0; right: 0; bottom: 0;
  background-color: #d1d5db;
  border-radius: 9999px;
  transition: background 0.2s;
  z-index: 1;
}
.toggle-slider:before {
  position: absolute;
  content: "";
  height: 20px; width: 20px;
  left: 2px; bottom: 2px;
  background-color: #fff;
  border-radius: 50%;
  transition: transform 0.2s;
}
.toggle-switch input:checked + .toggle-slider {
  background-color: #87CEEB; /* playfield-blue */
}
.toggle-switch input:checked + .toggle-slider:before {
  transform: translateX(20px);
} 