/* ==========================================================================
   AuraZenith - Ambient Soundscape & Deep Focus Studio
   Vanilla CSS Design System & Layout
   ========================================================================== */

/* --------------------------------------------------------------------------
   Theme Tokens & CSS Custom Properties
   -------------------------------------------------------------------------- */
:root {
  /* Typography */
  --font-heading: 'Outfit', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --font-body: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;

  /* Theme: Cosmic Aurora (Default) */
  --bg-base: #090a0d;
  --bg-wallpaper: radial-gradient(ellipse at 50% 0%, #25272d 0%, #141519 48%, #090a0d 100%);
  --wallpaper-filter: blur(8px) brightness(0.9) saturate(0);
  --wallpaper-overlay: radial-gradient(circle at 50% 50%, rgba(9, 10, 13, 0.04) 0%, rgba(9, 10, 13, 0.2) 100%);
  --surface-glass: rgba(28, 29, 33, 0.72);
  --surface-glass-hover: rgba(40, 41, 46, 0.82);
  --surface-card: rgba(21, 22, 25, 0.82);
  --border-glass: rgba(255, 255, 255, 0.1);
  --border-glass-bright: rgba(255, 255, 255, 0.42);

  --accent-rgb: 255, 255, 255;
  --accent-primary: #e5e7eb;
  --accent-secondary: #9ca3af;
  --accent-glow: #f9fafb;
  --accent-gradient: linear-gradient(135deg, #f9fafb 0%, #9ca3af 100%);
  --accent-gradient-hover: linear-gradient(135deg, #ffffff 0%, #d1d5db 100%);

  --text-main: #f1f5f9;
  --text-muted: #94a3b8;
  --text-dim: #64748b;

  --tag-deep: #d1d5db;
  --tag-study: #d1d5db;
  --tag-creative: #d1d5db;
  --tag-wellness: #d1d5db;

  --shadow-ambient: 0 20px 40px -15px rgba(0, 0, 0, 0.65), 0 0 30px rgba(255, 255, 255, 0.04);
  --shadow-glow: 0 0 25px rgba(255, 255, 255, 0.22);
  --radius-sm: 8px;
  --radius-md: 14px;
  --radius-lg: 20px;
  --radius-xl: 28px;
  --radius-full: 9999px;

  --transition-fast: 0.18s cubic-bezier(0.4, 0, 0.2, 1);
  --transition-smooth: 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  --transition-spring: 0.45s cubic-bezier(0.34, 1.56, 0.64, 1);
}

/* Theme: Lo-Fi Evening */
body.theme-lofi {
  --bg-base: #100b14;
  --bg-wallpaper: url('images/bg-lofi.jpg');
  --accent-rgb: 251, 146, 60;
  --wallpaper-filter: blur(8px) brightness(0.6) saturate(1.2);
  --wallpaper-overlay: radial-gradient(circle at 50% 50%, rgba(10, 11, 18, 0.5) 0%, rgba(6, 7, 12, 0.92) 100%);
  --surface-glass: rgba(24, 16, 28, 0.7);
  --surface-glass-hover: rgba(38, 26, 44, 0.8);
  --surface-card: rgba(20, 14, 24, 0.75);
  --border-glass: rgba(255, 220, 200, 0.1);
  --border-glass-bright: rgba(251, 146, 60, 0.4);

  --accent-primary: #f97316;
  --accent-secondary: #ec4899;
  --accent-glow: #fb923c;
  --accent-gradient: linear-gradient(135deg, #fb923c 0%, #d946ef 100%);
  --accent-gradient-hover: linear-gradient(135deg, #fdba74 0%, #f472b6 100%);

  --shadow-ambient: 0 20px 40px -15px rgba(0, 0, 0, 0.65), 0 0 30px rgba(251, 146, 60, 0.1);
  --shadow-glow: 0 0 25px rgba(251, 146, 60, 0.4);
}

/* Theme: Midnight Zen */
body.theme-zen {
  --bg-base: #06090e;
  --bg-wallpaper: radial-gradient(circle at 50% 20%, #111a28 0%, #06090e 85%);
  --accent-rgb: 56, 189, 248;
  --wallpaper-filter: blur(8px) brightness(0.6) saturate(1.2);
  --wallpaper-overlay: radial-gradient(circle at 50% 50%, rgba(10, 11, 18, 0.5) 0%, rgba(6, 7, 12, 0.92) 100%);
  --surface-glass: rgba(12, 17, 26, 0.75);
  --surface-glass-hover: rgba(19, 27, 40, 0.85);
  --surface-card: rgba(10, 15, 22, 0.8);
  --border-glass: rgba(255, 255, 255, 0.07);
  --border-glass-bright: rgba(56, 189, 248, 0.35);

  --accent-primary: #38bdf8;
  --accent-secondary: #6366f1;
  --accent-glow: #7dd3fc;
  --accent-gradient: linear-gradient(135deg, #38bdf8 0%, #6366f1 100%);
  --accent-gradient-hover: linear-gradient(135deg, #7dd3fc 0%, #818cf8 100%);

  --shadow-ambient: 0 20px 40px -15px rgba(0, 0, 0, 0.7), 0 0 30px rgba(56, 189, 248, 0.1);
  --shadow-glow: 0 0 25px rgba(56, 189, 248, 0.35);
}

/* Theme: Cyber Neon */
body.theme-cyber {
  --bg-base: #090214;
  --bg-wallpaper: radial-gradient(circle at 70% 30%, #200839 0%, #090214 90%);
  --accent-rgb: 244, 63, 94;
  --wallpaper-filter: blur(8px) brightness(0.6) saturate(1.2);
  --wallpaper-overlay: radial-gradient(circle at 50% 50%, rgba(10, 11, 18, 0.5) 0%, rgba(6, 7, 12, 0.92) 100%);
  --surface-glass: rgba(18, 5, 30, 0.78);
  --surface-glass-hover: rgba(30, 10, 50, 0.88);
  --surface-card: rgba(14, 4, 24, 0.82);
  --border-glass: rgba(244, 63, 94, 0.2);
  --border-glass-bright: rgba(244, 63, 94, 0.6);

  --accent-primary: #f43f5e;
  --accent-secondary: #06b6d4;
  --accent-glow: #fb7185;
  --accent-gradient: linear-gradient(135deg, #f43f5e 0%, #06b6d4 100%);
  --accent-gradient-hover: linear-gradient(135deg, #fb7185 0%, #22d3ee 100%);

  --shadow-ambient: 0 20px 40px -15px rgba(0, 0, 0, 0.75), 0 0 35px rgba(244, 63, 94, 0.18);
  --shadow-glow: 0 0 25px rgba(244, 63, 94, 0.45);
}

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

html {
  font-size: 16px;
  scroll-behavior: smooth;
  height: 100%;
}

body {
  font-family: var(--font-body);
  background-color: var(--bg-base);
  color: var(--text-main);
  min-height: 100vh;
  line-height: 1.5;
  overflow-x: hidden;
  position: relative;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* Custom Scrollbar */
::-webkit-scrollbar {
  width: 8px;
  height: 8px;
}
::-webkit-scrollbar-track {
  background: rgba(0, 0, 0, 0.2);
}
::-webkit-scrollbar-thumb {
  background: rgba(255, 255, 255, 0.16);
  border-radius: var(--radius-full);
}
::-webkit-scrollbar-thumb:hover {
  background: var(--accent-primary);
}

/* --------------------------------------------------------------------------
   Background Wallpapers & Ambient Canvases
   -------------------------------------------------------------------------- */
.wallpaper-layer {
  position: fixed;
  inset: 0;
  background-image: var(--bg-wallpaper);
  background-size: cover;
  background-position: center center;
  background-repeat: no-repeat;
  filter: var(--wallpaper-filter);
  transform: scale(1.05); /* Avoid blur seam */
  z-index: 0;
  transition: background-image 0.8s ease, filter 0.8s ease;
  pointer-events: none;
}

.wallpaper-overlay {
  position: fixed;
  inset: 0;
  background: var(--wallpaper-overlay);
  z-index: 1;
  pointer-events: none;
}

.ambient-canvas {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 2;
  pointer-events: none;
}

.confetti-canvas {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 999;
  pointer-events: none;
}

/* --------------------------------------------------------------------------
   App Structure & Layout
   -------------------------------------------------------------------------- */
.app-wrapper {
  position: relative;
  z-index: 10;
  display: flex;
  flex-direction: column;
  min-height: 100vh;
  max-width: 1560px;
  margin: 0 auto;
  padding: 1.5rem 2rem;
  gap: 1.75rem;
}

/* --------------------------------------------------------------------------
   App Header & Brand
   -------------------------------------------------------------------------- */
.app-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.9rem 1.6rem;
  background: var(--surface-glass);
  backdrop-filter: blur(20px) saturate(180%);
  -webkit-backdrop-filter: blur(20px) saturate(180%);
  border: 1px solid var(--border-glass);
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-ambient);
  gap: 1.5rem;
}

.header-brand {
  display: flex;
  align-items: center;
  gap: 0.9rem;
  user-select: none;
}

.brand-logo {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  object-fit: cover;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.4), 0 0 16px var(--accent-glow);
  transition: transform var(--transition-spring);
}

.brand-logo:hover {
  transform: rotate(6deg) scale(1.08);
}

.brand-text {
  display: flex;
  flex-direction: column;
}

.brand-title {
  font-family: var(--font-heading);
  font-size: 1.45rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  background: var(--accent-gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  line-height: 1.15;
}

.brand-subtitle {
  font-size: 0.75rem;
  color: var(--text-muted);
  font-weight: 500;
  letter-spacing: 0.02em;
}

/* Header Live Clock */
.header-center {
  display: flex;
  align-items: center;
}

.greeting-box {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  padding: 0.4rem 1rem;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--border-glass);
  border-radius: var(--radius-full);
}

.greeting-time {
  font-size: 0.8rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--accent-glow);
}

.live-clock {
  font-family: var(--font-heading);
  font-size: 1.15rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  color: var(--text-main);
}

.live-date {
  font-size: 0.8rem;
  color: var(--text-muted);
}

/* Header Controls */
.header-controls {
  display: flex;
  align-items: center;
  gap: 0.6rem;
}

.control-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.55rem 0.95rem;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid var(--border-glass);
  border-radius: var(--radius-full);
  color: var(--text-main);
  font-family: var(--font-body);
  font-size: 0.85rem;
  font-weight: 500;
  cursor: pointer;
  transition: all var(--transition-fast);
}

.control-btn:hover {
  background: rgba(255, 255, 255, 0.12);
  border-color: var(--border-glass-bright);
  transform: translateY(-1px);
}

.control-btn.icon-only {
  padding: 0.55rem;
  width: 38px;
  height: 38px;
  justify-content: center;
}

.control-btn .icon {
  width: 18px;
  height: 18px;
}

/* Scene Selector Dropdown */
.scene-selector-dropdown {
  position: relative;
}

.scene-menu {
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  background: var(--surface-card);
  backdrop-filter: blur(24px);
  border: 1px solid var(--border-glass);
  border-radius: var(--radius-md);
  padding: 0.4rem;
  min-width: 175px;
  display: none;
  flex-direction: column;
  gap: 0.25rem;
  box-shadow: 0 16px 32px rgba(0, 0, 0, 0.6);
  z-index: 100;
  animation: fadeInDown 0.2s cubic-bezier(0.16, 1, 0.3, 1);
}

.scene-menu.open {
  display: flex;
}

.scene-option {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  padding: 0.55rem 0.85rem;
  background: transparent;
  border: none;
  border-radius: var(--radius-sm);
  color: var(--text-main);
  font-family: var(--font-body);
  font-size: 0.82rem;
  font-weight: 500;
  cursor: pointer;
  text-align: left;
  transition: all var(--transition-fast);
}

.scene-option:hover {
  background: rgba(255, 255, 255, 0.08);
}

.scene-option.active {
  background: rgba(255, 255, 255, 0.12);
  font-weight: 600;
  color: var(--accent-glow);
}

.scene-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
}
.aurora-dot { background: #2dd4bf; box-shadow: 0 0 8px #2dd4bf; }
.lofi-dot   { background: #fb923c; box-shadow: 0 0 8px #fb923c; }
.zen-dot    { background: #38bdf8; box-shadow: 0 0 8px #38bdf8; }
.cyber-dot  { background: #f43f5e; box-shadow: 0 0 8px #f43f5e; }

/* --------------------------------------------------------------------------
   Dashboard Grid Architecture
   -------------------------------------------------------------------------- */
.dashboard-grid {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: 1.5rem;
  align-items: start;
}

/* Glass Card Shell */
.glass-card {
  background: var(--surface-glass);
  backdrop-filter: blur(24px) saturate(180%);
  -webkit-backdrop-filter: blur(24px) saturate(180%);
  border: 1px solid var(--border-glass);
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-ambient);
  padding: 1.75rem;
  display: flex;
  flex-direction: column;
  transition: border-color var(--transition-smooth), transform var(--transition-smooth), box-shadow var(--transition-smooth);
}

.glass-card:hover {
  border-color: rgba(255, 255, 255, 0.14);
}

.card-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 1.4rem;
}

.card-title-group {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.card-icon-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: var(--radius-md);
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--border-glass);
  color: var(--accent-glow);
}

.card-icon-badge .icon {
  width: 19px;
  height: 19px;
}

.card-title {
  font-family: var(--font-heading);
  font-size: 1.25rem;
  font-weight: 700;
  letter-spacing: -0.01em;
  color: var(--text-main);
}

/* Grid Layout Assignments */
.focus-section {
  grid-column: span 5;
}

.soundscape-section {
  grid-column: span 7;
}

.breathing-section {
  grid-column: span 4;
}

.tasks-section {
  grid-column: span 5;
}

.wisdom-section {
  grid-column: span 3;
}

/* --------------------------------------------------------------------------
   Section 1: Pomodoro & Deep Work Engine
   -------------------------------------------------------------------------- */
.streak-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.35rem 0.75rem;
  background: rgba(249, 115, 22, 0.12);
  border: 1px solid rgba(249, 115, 22, 0.3);
  border-radius: var(--radius-full);
  color: #fb923c;
  font-size: 0.8rem;
  font-weight: 700;
}

.icon-flame {
  width: 15px;
  height: 15px;
}

/* Timer Mode Tabs */
.timer-mode-tabs {
  display: flex;
  background: rgba(0, 0, 0, 0.25);
  border: 1px solid var(--border-glass);
  border-radius: var(--radius-full);
  padding: 0.25rem;
  gap: 0.25rem;
  margin-bottom: 1.75rem;
}

.mode-tab {
  flex: 1;
  padding: 0.55rem 0.6rem;
  background: transparent;
  border: none;
  border-radius: var(--radius-full);
  color: var(--text-muted);
  font-family: var(--font-body);
  font-size: 0.82rem;
  font-weight: 600;
  cursor: pointer;
  transition: all var(--transition-fast);
  text-align: center;
}

.mode-tab:hover {
  color: var(--text-main);
}

.mode-tab.active {
  background: var(--surface-glass-hover);
  color: var(--accent-glow);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
  border: 1px solid var(--border-glass);
}

/* Circular Timer Visualizer */
.timer-display-wrapper {
  position: relative;
  width: 280px;
  height: 280px;
  margin: 0 auto 1.75rem auto;
  display: flex;
  align-items: center;
  justify-content: center;
}

.timer-progress-ring {
  width: 100%;
  height: 100%;
  transform: rotate(-90deg);
}

.ring-bg {
  fill: none;
  stroke: rgba(255, 255, 255, 0.05);
  stroke-width: 10;
}

.ring-progress {
  fill: none;
  stroke: url(#timerGradient);
  stroke-width: 10;
  stroke-linecap: round;
  stroke-dasharray: 753.98; /* 2 * PI * 120 */
  stroke-dashoffset: 0;
  transition: stroke-dashoffset 0.8s linear;
  filter: drop-shadow(0 0 10px var(--accent-glow));
}

.timer-text-content {
  position: absolute;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  user-select: none;
}

.timer-status-tag {
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  font-weight: 700;
  color: var(--accent-glow);
  margin-bottom: 0.2rem;
}

.timer-digits {
  font-family: var(--font-heading);
  font-size: 3.5rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  line-height: 1;
  color: var(--text-main);
  text-shadow: 0 4px 20px rgba(0, 0, 0, 0.5);
  margin-bottom: 0.35rem;
}

.timer-sublabel {
  font-size: 0.82rem;
  color: var(--text-muted);
}

/* Timer Control Buttons */
.timer-actions {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1rem;
  margin-bottom: 1.5rem;
}

.action-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.6rem;
  padding: 0.75rem 1.4rem;
  border-radius: var(--radius-full);
  font-family: var(--font-body);
  font-size: 0.92rem;
  font-weight: 600;
  cursor: pointer;
  border: 1px solid transparent;
  transition: all var(--transition-fast);
  user-select: none;
}

.action-btn.primary {
  background: var(--accent-gradient);
  color: #0d0f18;
  box-shadow: 0 4px 18px rgba(0, 0, 0, 0.4), 0 0 20px var(--accent-glow);
}

.action-btn.primary:hover {
  background: var(--accent-gradient-hover);
  transform: translateY(-2px) scale(1.02);
  box-shadow: 0 6px 22px rgba(0, 0, 0, 0.5), 0 0 28px var(--accent-glow);
}

.action-btn.primary:active {
  transform: translateY(0) scale(0.98);
}

.action-btn.primary.large {
  padding: 0.85rem 2.2rem;
  font-size: 1.05rem;
}

.action-btn.secondary {
  background: rgba(255, 255, 255, 0.06);
  border-color: var(--border-glass);
  color: var(--text-main);
}

.action-btn.secondary:hover {
  background: rgba(255, 255, 255, 0.12);
  border-color: var(--border-glass-bright);
  transform: translateY(-2px);
}

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

.action-btn.full-width {
  width: 100%;
}

.action-btn .icon {
  width: 18px;
  height: 18px;
}

/* Timer Stats Footer */
.timer-stats-footer {
  display: flex;
  align-items: center;
  justify-content: space-around;
  padding-top: 1.25rem;
  border-top: 1px solid var(--border-glass);
}

.stat-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.15rem;
}

.stat-number {
  font-family: var(--font-heading);
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--text-main);
}

.stat-label {
  font-size: 0.75rem;
  color: var(--text-muted);
}

.stat-separator {
  width: 1px;
  height: 28px;
  background: var(--border-glass);
}

.text-link-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  background: transparent;
  border: none;
  color: var(--text-muted);
  font-size: 0.78rem;
  font-family: var(--font-body);
  font-weight: 600;
  cursor: pointer;
  transition: color var(--transition-fast);
}

.text-link-btn:hover {
  color: var(--accent-glow);
}

/* --------------------------------------------------------------------------
   Section 2: Ambient Soundscape Synthesizer
   -------------------------------------------------------------------------- */
.tag-pill-live {
  display: inline-block;
  padding: 0.25rem 0.65rem;
  background: rgba(var(--accent-rgb), 0.12);
  border: 1px solid rgba(var(--accent-rgb), 0.3);
  border-radius: var(--radius-full);
  color: var(--accent-glow);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.section-intro-text {
  font-size: 0.85rem;
  color: var(--text-muted);
  margin-bottom: 1.25rem;
  line-height: 1.45;
}

/* Presets Pills */
.sound-preset-pills {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-bottom: 1.5rem;
}

.preset-label {
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--text-dim);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.preset-pill {
  padding: 0.35rem 0.75rem;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--border-glass);
  border-radius: var(--radius-full);
  color: var(--text-muted);
  font-family: var(--font-body);
  font-size: 0.78rem;
  font-weight: 600;
  cursor: pointer;
  transition: all var(--transition-fast);
}

.preset-pill:hover {
  background: rgba(255, 255, 255, 0.1);
  color: var(--text-main);
  border-color: var(--border-glass-bright);
}

.preset-pill.active {
  background: var(--surface-glass-hover);
  border-color: var(--accent-glow);
  color: var(--accent-glow);
}

.preset-pill.clear-pill:hover {
  border-color: rgba(244, 63, 94, 0.5);
  color: #fb7185;
}

/* Sound Channels Grid */
.sound-channels-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1rem;
}

.sound-card {
  background: rgba(0, 0, 0, 0.28);
  border: 1px solid var(--border-glass);
  border-radius: var(--radius-lg);
  padding: 1.1rem;
  display: flex;
  flex-direction: column;
  gap: 0.9rem;
  transition: all var(--transition-smooth);
}

.sound-card:hover {
  background: rgba(0, 0, 0, 0.38);
  border-color: rgba(255, 255, 255, 0.14);
}

.sound-card.active {
  border-color: var(--border-glass-bright);
  background: rgba(20, 24, 38, 0.45);
  box-shadow: 0 8px 24px -6px rgba(0, 0, 0, 0.5), 0 0 16px rgba(var(--accent-rgb), 0.1);
}

.sound-card-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.sound-meta {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.sound-channel-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: var(--radius-md);
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--border-glass);
  color: var(--text-muted);
  transition: all var(--transition-fast);
}

.sound-channel-icon svg {
  width: 18px;
  height: 18px;
}

.sound-card.active .sound-channel-icon {
  background: var(--accent-gradient);
  color: #0d0f18;
  border-color: transparent;
  box-shadow: 0 0 12px var(--accent-glow);
}

.sound-name {
  font-family: var(--font-heading);
  font-size: 0.98rem;
  font-weight: 700;
  color: var(--text-main);
  line-height: 1.2;
}

.sound-desc {
  font-size: 0.72rem;
  color: var(--text-dim);
}

/* Sound Switch Toggle */
.sound-toggle-btn {
  width: 44px;
  height: 24px;
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid var(--border-glass);
  border-radius: var(--radius-full);
  padding: 2px;
  cursor: pointer;
  position: relative;
  transition: background var(--transition-smooth), border-color var(--transition-smooth);
}

.sound-toggle-btn .toggle-indicator {
  display: block;
  width: 18px;
  height: 18px;
  background: #ffffff;
  border-radius: 50%;
  transform: translateX(0);
  transition: transform var(--transition-spring), background var(--transition-fast);
}

.sound-card.active .sound-toggle-btn {
  background: var(--accent-primary);
  border-color: var(--accent-glow);
}

.sound-card.active .sound-toggle-btn .toggle-indicator {
  transform: translateX(20px);
  background: #0d0f18;
}

/* Slider & Sound Level Indicator */
.sound-slider-wrapper {
  display: flex;
  align-items: center;
  gap: 0.85rem;
}

.sound-range-slider {
  flex: 1;
  -webkit-appearance: none;
  appearance: none;
  height: 5px;
  border-radius: var(--radius-full);
  background: rgba(255, 255, 255, 0.1);
  outline: none;
  cursor: pointer;
}

.sound-range-slider::-webkit-slider-thumb {
  -webkit-appearance: none;
  appearance: none;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: var(--text-main);
  cursor: pointer;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.5);
  transition: transform var(--transition-fast), background var(--transition-fast);
}

.sound-range-slider::-webkit-slider-thumb:hover {
  transform: scale(1.25);
  background: var(--accent-glow);
}

.sound-card.active .sound-range-slider::-webkit-slider-thumb {
  background: var(--accent-glow);
  box-shadow: 0 0 10px var(--accent-glow);
}

.sound-level-display {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  min-width: 55px;
  justify-content: flex-end;
}

.volume-percent {
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--text-muted);
}

/* Audio wave animation bars */
.audio-wave-bars {
  display: flex;
  align-items: flex-end;
  gap: 2px;
  height: 14px;
}

.audio-wave-bars span {
  display: block;
  width: 2px;
  height: 3px;
  background: var(--text-dim);
  border-radius: 1px;
  transition: height 0.2s ease, background 0.2s ease;
}

.sound-card.active .audio-wave-bars span {
  background: var(--accent-glow);
  animation: wavePulse 1.2s ease-in-out infinite;
}

.sound-card.active .audio-wave-bars span:nth-child(1) { animation-delay: 0.0s; }
.sound-card.active .audio-wave-bars span:nth-child(2) { animation-delay: 0.2s; }
.sound-card.active .audio-wave-bars span:nth-child(3) { animation-delay: 0.4s; }
.sound-card.active .audio-wave-bars span:nth-child(4) { animation-delay: 0.1s; }

@keyframes wavePulse {
  0%, 100% { height: 3px; }
  50% { height: 13px; }
}

/* --------------------------------------------------------------------------
   Section 3: Mindful Breathing Sanctuary
   -------------------------------------------------------------------------- */
.breath-cycle-badge {
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--text-muted);
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--border-glass);
  padding: 0.25rem 0.65rem;
  border-radius: var(--radius-full);
}

.breath-technique-tabs {
  display: flex;
  background: rgba(0, 0, 0, 0.25);
  border: 1px solid var(--border-glass);
  border-radius: var(--radius-full);
  padding: 0.25rem;
  gap: 0.25rem;
  margin-bottom: 2rem;
}

.technique-tab {
  flex: 1;
  padding: 0.45rem 0.5rem;
  background: transparent;
  border: none;
  border-radius: var(--radius-full);
  color: var(--text-muted);
  font-family: var(--font-body);
  font-size: 0.78rem;
  font-weight: 600;
  cursor: pointer;
  transition: all var(--transition-fast);
  text-align: center;
}

.technique-tab.active {
  background: var(--surface-glass-hover);
  color: var(--accent-glow);
  border: 1px solid var(--border-glass);
}

/* Breathing Animated Orb */
.breathing-orb-container {
  position: relative;
  width: 200px;
  height: 200px;
  margin: 0 auto 1.5rem auto;
  display: flex;
  align-items: center;
  justify-content: center;
}

.breathing-ring-outer {
  position: absolute;
  width: 190px;
  height: 190px;
  border-radius: 50%;
  border: 1px dashed rgba(255, 255, 255, 0.15);
  transition: transform 3s ease-in-out, opacity 3s ease-in-out;
}

.breathing-ring-middle {
  position: absolute;
  width: 150px;
  height: 150px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(var(--accent-rgb), 0.12) 0%, transparent 70%);
  filter: blur(10px);
  transition: transform 3s ease-in-out;
}

.breathing-orb {
  position: relative;
  width: 120px;
  height: 120px;
  border-radius: 50%;
  background: var(--accent-gradient);
  box-shadow: 0 0 35px var(--accent-glow), inset 0 0 20px rgba(255, 255, 255, 0.4);
  display: flex;
  align-items: center;
  justify-content: center;
  transform: scale(0.85);
  transition: transform 3s cubic-bezier(0.4, 0, 0.2, 1), box-shadow 3s ease;
  user-select: none;
}

.orb-content {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  z-index: 2;
  color: #0d0f18;
}

.breath-phase-text {
  font-family: var(--font-heading);
  font-size: 0.95rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  line-height: 1.1;
}

.breath-counter-text {
  font-size: 1.5rem;
  font-weight: 800;
  line-height: 1;
}

/* Breathing Animation States */
.breathing-orb.inhale {
  transform: scale(1.35);
  box-shadow: 0 0 60px var(--accent-glow), 0 0 100px var(--accent-secondary);
}

.breathing-orb.hold {
  transform: scale(1.35);
  box-shadow: 0 0 70px var(--accent-glow), inset 0 0 30px rgba(255, 255, 255, 0.7);
}

.breathing-orb.exhale {
  transform: scale(0.75);
  box-shadow: 0 0 20px var(--accent-glow);
}

.breathing-instructions {
  font-size: 0.82rem;
  color: var(--text-muted);
  text-align: center;
  margin-bottom: 1.5rem;
  min-height: 40px;
  line-height: 1.4;
}

.breathing-actions {
  display: flex;
  justify-content: center;
}

/* --------------------------------------------------------------------------
   Section 4: Daily Intentions & Focus Tasks
   -------------------------------------------------------------------------- */
.task-input-form {
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
  margin-bottom: 1.25rem;
}

.input-row {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.task-input-field {
  flex: 1;
  padding: 0.75rem 1.1rem;
  background: rgba(0, 0, 0, 0.35);
  border: 1px solid var(--border-glass);
  border-radius: var(--radius-full);
  color: var(--text-main);
  font-family: var(--font-body);
  font-size: 0.88rem;
  outline: none;
  transition: all var(--transition-fast);
}

.task-input-field:focus {
  border-color: var(--border-glass-bright);
  box-shadow: 0 0 16px rgba(var(--accent-rgb), 0.2);
  background: rgba(0, 0, 0, 0.45);
}

.task-input-field::placeholder {
  color: var(--text-dim);
}

.add-task-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background: var(--accent-gradient);
  border: none;
  color: #0d0f18;
  cursor: pointer;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
  transition: all var(--transition-fast);
  flex-shrink: 0;
}

.add-task-btn:hover {
  transform: translateY(-2px) scale(1.05);
  box-shadow: 0 0 16px var(--accent-glow);
}

.add-task-btn .icon {
  width: 20px;
  height: 20px;
}

/* Task Tag Chips Selector */
.task-tags-selector {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  flex-wrap: wrap;
}

.tag-radio {
  cursor: pointer;
}

.tag-radio input {
  display: none;
}

.tag-chip {
  display: inline-block;
  padding: 0.25rem 0.65rem;
  border-radius: var(--radius-full);
  font-size: 0.72rem;
  font-weight: 600;
  border: 1px solid var(--border-glass);
  color: var(--text-muted);
  background: rgba(255, 255, 255, 0.04);
  transition: all var(--transition-fast);
}

.tag-radio input:checked + .tag-chip.chip-deep {
  background: rgba(var(--accent-rgb), 0.12);
  border-color: var(--tag-deep);
  color: var(--text-main);
  box-shadow: 0 0 10px rgba(var(--accent-rgb), 0.14);
}
.tag-radio input:checked + .tag-chip.chip-study {
  background: rgba(var(--accent-rgb), 0.12);
  border-color: var(--tag-study);
  color: var(--text-main);
  box-shadow: 0 0 10px rgba(var(--accent-rgb), 0.14);
}
.tag-radio input:checked + .tag-chip.chip-creative {
  background: rgba(var(--accent-rgb), 0.12);
  border-color: var(--tag-creative);
  color: var(--text-main);
  box-shadow: 0 0 10px rgba(var(--accent-rgb), 0.14);
}
.tag-radio input:checked + .tag-chip.chip-wellness {
  background: rgba(var(--accent-rgb), 0.12);
  border-color: var(--tag-wellness);
  color: var(--text-main);
  box-shadow: 0 0 10px rgba(var(--accent-rgb), 0.14);
}

/* Task Filter Tabs */
.task-filters {
  display: flex;
  gap: 0.4rem;
  margin-bottom: 0.85rem;
  border-bottom: 1px solid var(--border-glass);
  padding-bottom: 0.65rem;
}

.filter-tab {
  background: transparent;
  border: none;
  font-family: var(--font-body);
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--text-dim);
  cursor: pointer;
  padding: 0.2rem 0.5rem;
  border-radius: var(--radius-sm);
  transition: all var(--transition-fast);
}

.filter-tab:hover {
  color: var(--text-main);
}

.filter-tab.active {
  color: var(--accent-glow);
  background: rgba(255, 255, 255, 0.06);
}

/* Task List */
.task-list-container {
  display: flex;
  flex-direction: column;
  gap: 0.55rem;
  max-height: 290px;
  overflow-y: auto;
  padding-right: 0.25rem;
}

.task-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.7rem 0.85rem;
  background: rgba(0, 0, 0, 0.25);
  border: 1px solid var(--border-glass);
  border-radius: var(--radius-md);
  gap: 0.75rem;
  transition: all var(--transition-fast);
  animation: slideInUp 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}

.task-item:hover {
  background: rgba(0, 0, 0, 0.38);
  border-color: rgba(255, 255, 255, 0.12);
  transform: translateX(2px);
}

.task-left {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  flex: 1;
  min-width: 0;
}

.task-checkbox {
  appearance: none;
  -webkit-appearance: none;
  width: 20px;
  height: 20px;
  border-radius: 6px;
  border: 1.5px solid var(--border-glass-bright);
  background: rgba(255, 255, 255, 0.05);
  cursor: pointer;
  position: relative;
  transition: all var(--transition-fast);
  flex-shrink: 0;
}

.task-checkbox:checked {
  background: var(--accent-glow);
  border-color: var(--accent-glow);
}

.task-checkbox:checked::after {
  content: '';
  position: absolute;
  top: 3px;
  left: 6px;
  width: 5px;
  height: 9px;
  border: solid #0d0f18;
  border-width: 0 2px 2px 0;
  transform: rotate(45deg);
}

.task-text {
  font-size: 0.85rem;
  color: var(--text-main);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  transition: color var(--transition-fast), text-decoration var(--transition-fast);
}

.task-item.completed .task-text {
  color: var(--text-dim);
  text-decoration: line-through;
}

.task-right {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.task-tag-badge {
  font-size: 0.68rem;
  padding: 0.15rem 0.45rem;
  border-radius: var(--radius-full);
  background: rgba(255, 255, 255, 0.08);
  color: var(--text-muted);
}

.task-delete-btn {
  background: transparent;
  border: none;
  color: var(--text-dim);
  cursor: pointer;
  padding: 0.2rem;
  display: inline-flex;
  align-items: center;
  border-radius: var(--radius-sm);
  transition: color var(--transition-fast);
}

.task-delete-btn:hover {
  color: #fb7185;
}

.empty-task-placeholder {
  text-align: center;
  padding: 2rem 1rem;
  color: var(--text-dim);
  font-size: 0.85rem;
}

/* --------------------------------------------------------------------------
   Section 5: Zen Wisdom & Daily Scratchpad
   -------------------------------------------------------------------------- */
.icon-refresh-btn {
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid var(--border-glass);
  border-radius: 50%;
  width: 32px;
  height: 32px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--text-muted);
  cursor: pointer;
  transition: all var(--transition-fast);
}

.icon-refresh-btn:hover {
  background: rgba(255, 255, 255, 0.14);
  color: var(--text-main);
  transform: rotate(180deg);
}

.quote-box {
  position: relative;
  padding: 1.25rem 1rem 1rem 1rem;
  background: rgba(0, 0, 0, 0.28);
  border: 1px solid var(--border-glass);
  border-radius: var(--radius-lg);
  margin-bottom: 1.5rem;
}

.quote-glyph {
  position: absolute;
  top: 0.6rem;
  left: 0.8rem;
  width: 22px;
  height: 22px;
  color: var(--accent-glow);
  opacity: 0.25;
}

.quote-text {
  font-size: 0.88rem;
  font-style: italic;
  color: var(--text-main);
  line-height: 1.5;
  margin-bottom: 0.65rem;
  position: relative;
  z-index: 1;
}

.quote-author {
  display: block;
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--accent-glow);
  text-align: right;
  font-style: normal;
}

/* Scratchpad */
.scratchpad-wrapper {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.scratchpad-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.scratchpad-title {
  font-size: 0.78rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--text-muted);
}

.auto-save-pill {
  font-size: 0.68rem;
  padding: 0.1rem 0.5rem;
  border-radius: var(--radius-full);
  background: rgba(16, 185, 129, 0.12);
  color: #34d399;
  border: 1px solid rgba(16, 185, 129, 0.25);
}

.scratchpad-textarea {
  width: 100%;
  padding: 0.85rem;
  background: rgba(0, 0, 0, 0.35);
  border: 1px solid var(--border-glass);
  border-radius: var(--radius-md);
  color: var(--text-main);
  font-family: var(--font-body);
  font-size: 0.82rem;
  line-height: 1.5;
  resize: vertical;
  min-height: 105px;
  outline: none;
  transition: border-color var(--transition-fast);
}

.scratchpad-textarea:focus {
  border-color: var(--border-glass-bright);
}

/* --------------------------------------------------------------------------
   App Footer
   -------------------------------------------------------------------------- */
.app-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1rem 1.6rem;
  background: var(--surface-glass);
  backdrop-filter: blur(20px);
  border: 1px solid var(--border-glass);
  border-radius: var(--radius-xl);
  font-size: 0.78rem;
  color: var(--text-dim);
}

.shortcut-tip kbd,
.shortcuts-grid kbd {
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid var(--border-glass);
  border-radius: 4px;
  padding: 0.15rem 0.4rem;
  font-family: inherit;
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--text-main);
}

/* --------------------------------------------------------------------------
   Modal Dialog (Shortcuts)
   -------------------------------------------------------------------------- */
.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.75);
  backdrop-filter: blur(8px);
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.5rem;
}

.modal-overlay.hidden {
  display: none;
}

.glass-modal {
  background: var(--surface-card);
  backdrop-filter: blur(30px);
  border: 1px solid var(--border-glass-bright);
  border-radius: var(--radius-xl);
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.8);
  max-width: 440px;
  width: 100%;
  padding: 1.75rem;
  animation: zoomIn 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}

.modal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 1.25rem;
}

.modal-title {
  font-family: var(--font-heading);
  font-size: 1.25rem;
  font-weight: 700;
}

.modal-close-btn {
  background: transparent;
  border: none;
  font-size: 1.5rem;
  color: var(--text-muted);
  cursor: pointer;
  line-height: 1;
  transition: color var(--transition-fast);
}

.modal-close-btn:hover {
  color: var(--text-main);
}

.shortcuts-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0.75rem;
  margin-bottom: 1.5rem;
}

.shortcut-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.5rem 0.75rem;
  background: rgba(255, 255, 255, 0.04);
  border-radius: var(--radius-sm);
  font-size: 0.85rem;
  color: var(--text-muted);
}

/* --------------------------------------------------------------------------
   Helper & Animation Keyframes
   -------------------------------------------------------------------------- */
.hidden {
  display: none !important;
}

@keyframes fadeInDown {
  from { opacity: 0; transform: translateY(-8px); }
  to { opacity: 1; transform: translateY(0); }
}

@keyframes slideInUp {
  from { opacity: 0; transform: translateY(10px); }
  to { opacity: 1; transform: translateY(0); }
}

@keyframes zoomIn {
  from { opacity: 0; transform: scale(0.95); }
  to { opacity: 1; transform: scale(1); }
}

/* --------------------------------------------------------------------------
   Responsive Media Queries
   -------------------------------------------------------------------------- */
@media (max-width: 1200px) {
  .focus-section {
    grid-column: span 6;
  }
  .soundscape-section {
    grid-column: span 6;
  }
  .breathing-section {
    grid-column: span 6;
  }
  .tasks-section {
    grid-column: span 6;
  }
  .wisdom-section {
    grid-column: span 12;
  }
}

@media (max-width: 860px) {
  .app-wrapper {
    padding: 1rem;
    gap: 1rem;
  }
  .app-header {
    flex-direction: column;
    align-items: stretch;
    gap: 1rem;
    padding: 1.2rem;
  }
  .header-brand {
    justify-content: center;
  }
  .header-center {
    justify-content: center;
  }
  .header-controls {
    justify-content: center;
  }

  .focus-section,
  .soundscape-section,
  .breathing-section,
  .tasks-section,
  .wisdom-section {
    grid-column: span 12;
  }

  .sound-channels-grid {
    grid-template-columns: 1fr;
  }

  .app-footer {
    flex-direction: column;
    gap: 0.75rem;
    text-align: center;
  }
}

@media (max-width: 480px) {
  .timer-display-wrapper {
    width: 240px;
    height: 240px;
  }
  .timer-digits {
    font-size: 2.8rem;
  }
  .timer-actions {
    flex-wrap: wrap;
  }
  .action-btn.primary.large {
    width: 100%;
  }
}
