/* Clean White Theme Custom Stylesheet - Clean My Speaker */
:root {
  --primary-color: #0284c7;
  --primary-light: #e0f2fe;
  --primary-glow: rgba(2, 132, 199, 0.25);
  --accent-purple: #7c3aed;
  --accent-purple-glow: rgba(124, 58, 237, 0.25);
  --surface-white: #ffffff;
  --surface-subtle: #f8fafc;
  --border-light: #e2e8f0;
}

body {
  font-family: 'Plus Jakarta Sans', system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  background-color: #f8fafc;
  color: #1e293b;
  overflow-x: hidden;
}

h1, h2, h3, h4, h5, h6, .font-heading {
  font-family: 'Outfit', system-ui, -apple-system, sans-serif;
  letter-spacing: -0.02em;
}

/* Custom Soft Elevation Shadows */
.card-shadow {
  box-shadow: 0 4px 20px -2px rgba(15, 23, 42, 0.06), 0 2px 6px -1px rgba(15, 23, 42, 0.04);
}

.card-shadow-lg {
  box-shadow: 0 20px 40px -8px rgba(15, 23, 42, 0.08), 0 6px 12px -2px rgba(15, 23, 42, 0.04);
}

.card-shadow-hover {
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}
.card-shadow-hover:hover {
  transform: translateY(-3px);
  box-shadow: 0 20px 35px -6px rgba(15, 23, 42, 0.1), 0 8px 16px -3px rgba(15, 23, 42, 0.05);
}

/* Water Ripple Animation for White Theme */
.ripple-circle {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  border-radius: 50%;
  pointer-events: none;
  border: 2px solid rgba(2, 132, 199, 0.5);
  opacity: 0;
}

.ripple-active .ripple-1 {
  animation: ripple-wave-light 2.2s infinite cubic-bezier(0.1, 0.2, 0.3, 1);
}
.ripple-active .ripple-2 {
  animation: ripple-wave-light 2.2s infinite cubic-bezier(0.1, 0.2, 0.3, 1) 0.55s;
}
.ripple-active .ripple-3 {
  animation: ripple-wave-light 2.2s infinite cubic-bezier(0.1, 0.2, 0.3, 1) 1.1s;
}
.ripple-active .ripple-4 {
  animation: ripple-wave-light 2.2s infinite cubic-bezier(0.1, 0.2, 0.3, 1) 1.65s;
}

@keyframes ripple-wave-light {
  0% {
    width: 140px;
    height: 140px;
    opacity: 0.85;
    border-color: rgba(2, 132, 199, 0.7);
    box-shadow: 0 0 20px rgba(14, 165, 233, 0.35);
  }
  100% {
    width: 380px;
    height: 380px;
    opacity: 0;
    border-color: rgba(37, 99, 235, 0);
    box-shadow: 0 0 40px rgba(37, 99, 235, 0);
  }
}

/* Vibration Mode Ripple Variation */
.mode-vibrate .ripple-circle {
  border-color: rgba(147, 51, 234, 0.5);
}
.mode-vibrate .ripple-active .ripple-1,
.mode-vibrate .ripple-active .ripple-2,
.mode-vibrate .ripple-active .ripple-3,
.mode-vibrate .ripple-active .ripple-4 {
  animation-name: ripple-wave-vibrate-light;
}

@keyframes ripple-wave-vibrate-light {
  0% {
    width: 140px;
    height: 140px;
    opacity: 0.85;
    border-color: rgba(147, 51, 234, 0.75);
    box-shadow: 0 0 20px rgba(147, 51, 234, 0.35);
  }
  100% {
    width: 380px;
    height: 380px;
    opacity: 0;
    border-color: rgba(219, 39, 119, 0);
    box-shadow: 0 0 40px rgba(219, 39, 119, 0);
  }
}

/* Central Pulse Button Active Glow */
.glow-active {
  animation: pulse-glow-light 1.8s infinite ease-in-out;
}

@keyframes pulse-glow-light {
  0%, 100% {
    box-shadow: 0 10px 25px -4px rgba(2, 132, 199, 0.4), 0 0 0 4px rgba(186, 230, 253, 0.4);
  }
  50% {
    box-shadow: 0 14px 35px -2px rgba(2, 132, 199, 0.65), 0 0 0 10px rgba(186, 230, 253, 0.7);
  }
}

.mode-vibrate .glow-active {
  animation: pulse-glow-vibrate 1.8s infinite ease-in-out;
}

@keyframes pulse-glow-vibrate {
  0%, 100% {
    box-shadow: 0 10px 25px -4px rgba(124, 58, 237, 0.4), 0 0 0 4px rgba(233, 213, 255, 0.4);
  }
  50% {
    box-shadow: 0 14px 35px -2px rgba(124, 58, 237, 0.65), 0 0 0 10px rgba(233, 213, 255, 0.7);
  }
}

/* Shimmer Effect for Progress Bar */
@keyframes shimmer {
  0% { background-position: -200% 0; }
  100% { background-position: 200% 0; }
}

.progress-shimmer {
  background-size: 200% 100%;
  background-image: linear-gradient(
    90deg,
    rgba(255, 255, 255, 0) 0%,
    rgba(255, 255, 255, 0.4) 50%,
    rgba(255, 255, 255, 0) 100%
  );
  animation: shimmer 1.8s infinite;
}

/* Light Glassmorphism */
.glass-card-light {
  background: rgba(255, 255, 255, 0.88);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid rgba(226, 232, 240, 0.8);
}



/* Clean Light Scrollbars */
::-webkit-scrollbar {
  width: 8px;
}
::-webkit-scrollbar-track {
  background: #f1f5f9;
}
::-webkit-scrollbar-thumb {
  background: #cbd5e1;
  border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
  background: #94a3b8;
}

/* Prose and text readability adjustments */
.prose p {
  line-height: 1.75;
}
