/* ============================================
   POMODORO FOCUS — Design System & Layout
   Midnight & Silver Glassmorphism Bento Grid
   ============================================ */

/* --- Google Fonts --- */
@import url('https://fonts.googleapis.com/css2?family=Archivo:wght@300;400;500;600;700;800;900&family=Space+Grotesk:wght@300;400;500;600;700&display=swap');

:root {
  /* Default Dark Mode (Sleek Midnight) */
  --bg-color: #09090B;
  --bg-surface: rgba(20, 20, 23, 0.6);
  --bg-surface-opaque: #141417;
  --bg-surface-hover: rgba(30, 30, 35, 0.8);
  
  --color-primary: #FFFFFF;
  --color-secondary: #E4E4E7;
  
  --color-accent: #2563EB; /* Deep Blue */
  --color-accent-rgb: 37, 99, 235;
  --color-accent-hover: #1D4ED8;
  
  --color-success: #34C759;
  --color-warning: #FF9500;
  --color-danger: #FF3B30;
  --color-info: #007AFF;
  
  --color-text-muted: #A1A1AA;
  --color-text-subtle: #71717A;
  --color-border: rgba(255, 255, 255, 0.08);
  --color-border-hover: rgba(255, 255, 255, 0.16);
  --color-glow: rgba(37, 99, 235, 0.15);

  --font-heading: 'Archivo', -apple-system, BlinkMacSystemFont, sans-serif;
  --font-body: 'Space Grotesk', -apple-system, BlinkMacSystemFont, sans-serif;
  
  /* Border Radius System */
  --radius-sm: 12px;
  --radius-md: 16px;
  --radius-lg: 24px;
  --radius-xl: 32px;

  /* Shadows */
  --shadow-sm: 0 1px 2px rgba(0,0,0,0.5);
  --shadow-md: 0 4px 20px rgba(0,0,0,0.4);
  --shadow-lg: 0 8px 30px rgba(0,0,0,0.6);
  --shadow-xl: 0 20px 60px rgba(0,0,0,0.8);

  /* Transitions */
  --transition-fast: 150ms ease;
  --transition-base: 250ms ease;
  --transition-slow: 450ms cubic-bezier(0.16, 1, 0.3, 1);
}

[data-theme="light"] {
  /* Premium Light Mode (Silver/Apple-inspired) */
  --bg-color: #F5F5F7;
  --bg-surface: rgba(255, 255, 255, 0.75);
  --bg-surface-opaque: #FFFFFF;
  --bg-surface-hover: rgba(240, 240, 243, 0.9);
  
  --color-primary: #09090B;
  --color-secondary: #27272A;
  
  --color-text-muted: #52525B;
  --color-text-subtle: #8F8F99;
  --color-border: rgba(0, 0, 0, 0.06);
  --color-border-hover: rgba(0, 0, 0, 0.12);
  --color-glow: rgba(37, 99, 235, 0.05);

  --shadow-sm: 0 1px 2px rgba(0,0,0,0.02);
  --shadow-md: 0 4px 16px rgba(0,0,0,0.04);
  --shadow-lg: 0 8px 30px rgba(0,0,0,0.06);
  --shadow-xl: 0 20px 60px rgba(0,0,0,0.08);
}

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

html {
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  font-family: var(--font-body);
  background-color: var(--bg-color);
  color: var(--color-primary);
  min-height: 100vh;
  transition: background-color var(--transition-base), color var(--transition-base);
  overflow-x: hidden;
}

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-heading);
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--color-primary);
}

/* --- Background Glows --- */
.bg-glows {
  position: fixed;
  inset: 0;
  z-index: -1;
  overflow: hidden;
  pointer-events: none;
}

.bg-glow {
  position: absolute;
  border-radius: 50%;
  filter: blur(120px);
  opacity: 0.12;
  mix-blend-mode: screen;
  transition: background var(--transition-slow), opacity var(--transition-slow);
}

[data-theme="light"] .bg-glow {
  mix-blend-mode: multiply;
  opacity: 0.04;
}

.bg-glow--1 {
  top: -10%;
  right: -5%;
  width: 50vw;
  height: 50vw;
  background: radial-gradient(circle, var(--color-accent) 0%, transparent 70%);
}

.bg-glow--2 {
  bottom: -10%;
  left: -5%;
  width: 45vw;
  height: 45vw;
  background: radial-gradient(circle, #7C3AED 0%, transparent 70%);
}

.bg-glow--3 {
  top: 30%;
  left: 25%;
  width: 35vw;
  height: 35vw;
  background: radial-gradient(circle, var(--color-accent) 0%, transparent 70%);
  opacity: 0.04;
}

/* --- Layout Container --- */
.app-container {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
  padding: 0 24px;
  max-width: 1400px;
  margin: 0 auto;
}

/* --- Header --- */
.app-header {
  height: 80px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-bottom: 1px solid var(--color-border);
  margin-bottom: 24px;
}

.header-left, .header-right {
  flex: 1;
  display: flex;
  align-items: center;
}

.header-right {
  justify-content: flex-end;
  gap: 12px;
}

.header-center {
  text-align: center;
}

.logo-text {
  font-family: var(--font-heading);
  font-size: 1.25rem;
  font-weight: 800;
  letter-spacing: -0.03em;
  background: linear-gradient(135deg, var(--color-accent), #7C3AED);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.back-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--color-text-muted);
  text-decoration: none;
  transition: color var(--transition-fast);
  cursor: pointer;
}

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

.nav-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 36px;
  min-width: 36px;
  padding: 0 10px;
  border-radius: 8px;
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--color-text-muted);
  border: 1px solid var(--color-border);
  background: var(--bg-surface);
  cursor: pointer;
  transition: all var(--transition-fast);
}

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

/* --- Bento Grid Layout --- */
.bento-dashboard {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: 24px;
  flex: 1;
  margin-bottom: 40px;
}

/* Card Base Structure */
.bento-card {
  background: var(--bg-surface);
  backdrop-filter: blur(24px) saturate(180%);
  -webkit-backdrop-filter: blur(24px) saturate(180%);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  padding: 28px;
  position: relative;
  overflow: hidden;
  transition: transform var(--transition-slow), border-color var(--transition-slow), box-shadow var(--transition-slow);
  box-shadow: var(--shadow-sm);
}

.bento-card:hover {
  transform: scale(1.008);
  border-color: var(--color-border-hover);
  box-shadow: var(--shadow-lg);
}

/* Spotlight Hover Effect Overlay */
.bento-card__spotlight {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(
    350px circle at var(--mouse-x, 0px) var(--mouse-y, 0px),
    rgba(255, 255, 255, 0.04),
    transparent 80%
  );
  z-index: 0;
  pointer-events: none;
  opacity: 0;
  transition: opacity var(--transition-base);
}

.bento-card:hover .bento-card__spotlight {
  opacity: 1;
}

[data-theme="light"] .bento-card__spotlight {
  background: radial-gradient(
    350px circle at var(--mouse-x, 0px) var(--mouse-y, 0px),
    rgba(37, 99, 235, 0.05),
    transparent 80%
  );
}

.bento-card__content {
  position: relative;
  z-index: 2;
  height: 100%;
  display: flex;
  flex-direction: column;
}

/* Specific Card Layout Rules */
.timer-panel {
  grid-column: span 8;
  grid-row: span 2;
}

.tasks-panel {
  grid-column: span 4;
  grid-row: span 2;
}

.ambient-panel {
  grid-column: span 4;
}

.stats-panel {
  grid-column: span 4;
}

.settings-panel {
  grid-column: span 4;
}

.zen-panel {
  grid-column: span 12;
  min-height: 120px;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* Card Header Common */
.card-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 20px;
  border-bottom: 1px solid var(--color-border);
  padding-bottom: 12px;
}

.card-header h2 {
  font-size: 1.125rem;
  font-weight: 700;
  color: var(--color-primary);
}

.card-badge {
  font-size: 0.75rem;
  font-weight: 700;
  background: var(--color-accent);
  color: white;
  padding: 2px 8px;
  border-radius: 20px;
}

/* --- Panel 1: Timer Panel UI --- */
.timer-panel .bento-card__content {
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}

.timer-modes {
  display: inline-flex;
  background: var(--bg-surface-hover);
  border: 1px solid var(--color-border);
  padding: 4px;
  border-radius: var(--radius-sm);
}

.mode-tab {
  background: transparent;
  color: var(--color-text-muted);
  border: none;
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 0.8125rem;
  padding: 8px 18px;
  border-radius: 8px;
  cursor: pointer;
  transition: all var(--transition-fast);
}

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

.mode-tab.active {
  background: var(--color-primary);
  color: var(--bg-color);
}

/* Timer Circle & Clock */
.timer-display-container {
  position: relative;
  width: 320px;
  height: 320px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.progress-ring {
  position: absolute;
  top: 0;
  left: 0;
}

.progress-ring__bg {
  stroke: var(--color-border);
  fill: transparent;
}

.progress-ring__bar {
  fill: transparent;
  stroke-dasharray: 879.64; /* 2 * PI * 140 */
  stroke-dashoffset: 0;
  transform: rotate(-90deg);
  transform-origin: 160px 160px;
  transition: stroke-dashoffset 0.3s linear;
}

.timer-clock {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  z-index: 5;
}

.timer-clock .time {
  font-family: var(--font-heading);
  font-size: 4.5rem;
  font-weight: 800;
  line-height: 1;
  letter-spacing: -0.04em;
  color: var(--color-primary);
}

.timer-mode-label {
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--color-text-subtle);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin-top: 8px;
}

/* Active Task display */
.active-task-display {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: rgba(37, 99, 235, 0.08);
  border: 1px solid rgba(37, 99, 235, 0.2);
  padding: 6px 16px;
  border-radius: 100px;
  font-size: 0.8125rem;
  max-width: 90%;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.active-task-display .task-prefix {
  color: var(--color-text-subtle);
}

.active-task-display .task-title {
  color: var(--color-accent);
  font-weight: 600;
}

/* Controls */
.timer-controls {
  display: flex;
  align-items: center;
  gap: 20px;
}

.control-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: var(--bg-surface-hover);
  border: 1px solid var(--color-border);
  color: var(--color-text-muted);
  cursor: pointer;
  transition: all var(--transition-fast);
}

.control-btn:hover {
  color: var(--color-primary);
  border-color: var(--color-border-hover);
  transform: scale(1.05);
}

.control-btn.play-btn {
  width: 64px;
  height: 64px;
  background: var(--color-primary);
  color: var(--bg-color);
  border: none;
  box-shadow: var(--shadow-md);
}

.control-btn.play-btn:hover {
  background: var(--color-accent);
  color: white;
  transform: scale(1.08);
  box-shadow: var(--shadow-lg);
}

/* --- Panel 2: Tasks Panel UI --- */
.tasks-panel .bento-card__content {
  height: 100%;
}

.task-form {
  display: flex;
  gap: 10px;
  margin-bottom: 16px;
}

.task-form input {
  flex: 1;
  padding: 10px 16px;
  border-radius: var(--radius-sm);
  background: var(--bg-surface-hover);
  border: 1px solid var(--color-border);
  color: var(--color-primary);
  font-family: var(--font-body);
  font-size: 0.875rem;
  transition: border-color var(--transition-fast);
}

.task-form input:focus {
  outline: none;
  border-color: var(--color-accent);
}

.task-add-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 42px;
  border-radius: var(--radius-sm);
  background: var(--color-primary);
  color: var(--bg-color);
  border: none;
  cursor: pointer;
  transition: all var(--transition-fast);
}

.task-add-btn:hover {
  background: var(--color-accent);
  color: white;
}

.task-list-wrapper {
  flex: 1;
  overflow-y: auto;
  max-height: 250px;
  margin-bottom: 16px;
  padding-right: 4px;
}

/* Custom Scrollbar */
.task-list-wrapper::-webkit-scrollbar,
.history-list-container::-webkit-scrollbar {
  width: 6px;
}
.task-list-wrapper::-webkit-scrollbar-track,
.history-list-container::-webkit-scrollbar-track {
  background: transparent;
}
.task-list-wrapper::-webkit-scrollbar-thumb,
.history-list-container::-webkit-scrollbar-thumb {
  background: var(--color-border);
  border-radius: 4px;
}
.task-list-wrapper::-webkit-scrollbar-thumb:hover,
.history-list-container::-webkit-scrollbar-thumb:hover {
  background: var(--color-border-hover);
}

.task-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.task-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 14px;
  border-radius: var(--radius-sm);
  background: rgba(255,255,255, 0.02);
  border: 1px solid var(--color-border);
  transition: all var(--transition-fast);
  cursor: pointer;
}

.task-item:hover {
  border-color: var(--color-border-hover);
  background: var(--bg-surface-hover);
}

.task-item.active {
  border-color: rgba(37, 99, 235, 0.4);
  background: rgba(37, 99, 235, 0.04);
}

.task-item-left {
  display: flex;
  align-items: center;
  gap: 12px;
  flex: 1;
}

.task-checkbox {
  width: 18px;
  height: 18px;
  border-radius: 50%;
  border: 1.5px solid var(--color-text-subtle);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all var(--transition-fast);
  color: white;
  font-size: 10px;
}

.task-item:hover .task-checkbox {
  border-color: var(--color-primary);
}

.task-item.completed .task-checkbox {
  background: var(--color-success);
  border-color: var(--color-success);
}

.task-checkbox svg {
  display: none;
}

.task-item.completed .task-checkbox svg {
  display: block;
}

.task-name {
  font-size: 0.875rem;
  color: var(--color-primary);
  transition: color var(--transition-fast);
}

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

.task-delete-btn {
  background: transparent;
  border: none;
  color: var(--color-text-subtle);
  cursor: pointer;
  transition: color var(--transition-fast);
  display: flex;
  align-items: center;
}

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

.task-actions {
  display: flex;
  justify-content: flex-end;
}

.text-btn {
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--color-text-muted);
  cursor: pointer;
  background: transparent;
  border: none;
  transition: color var(--transition-fast);
}

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

/* --- Panel 3: Ambient Sounds UI --- */
.ambient-options {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.ambient-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 0;
}

.ambient-label {
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--color-secondary);
}

.ambient-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  border-radius: 8px;
  border: 1px solid var(--color-border);
  background: var(--bg-surface-hover);
  color: var(--color-text-muted);
  cursor: pointer;
  transition: all var(--transition-fast);
}

.ambient-btn:hover, .ambient-btn.active {
  background: var(--color-accent);
  color: white;
  border-color: var(--color-accent);
}

/* sliders & volume */
.slider-row {
  flex-direction: column;
  align-items: flex-start;
  gap: 8px;
}

.slider-container {
  width: 100%;
  display: flex;
  align-items: center;
  gap: 12px;
}

.premium-slider {
  flex: 1;
  -webkit-appearance: none;
  appearance: none;
  height: 4px;
  border-radius: 2px;
  background: var(--color-border);
  outline: none;
}

.premium-slider::-webkit-slider-thumb {
  -webkit-appearance: none;
  appearance: none;
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: var(--color-primary);
  cursor: pointer;
  transition: transform var(--transition-fast);
}

.premium-slider::-webkit-slider-thumb:hover {
  transform: scale(1.2);
  background: var(--color-accent);
}

.slider-val {
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--color-text-muted);
  min-width: 32px;
  text-align: right;
}

/* --- Panel 4: Stats UI --- */
.stats-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
  margin-bottom: 20px;
}

.stat-item {
  background: rgba(255,255,255, 0.02);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-sm);
  padding: 12px;
  text-align: center;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.stat-value {
  font-family: var(--font-heading);
  font-size: 1.5rem;
  font-weight: 800;
  color: var(--color-primary);
}

.stat-label {
  font-size: 0.6875rem;
  font-weight: 700;
  color: var(--color-text-subtle);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.stats-history {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.stats-history h3 {
  font-size: 0.8125rem;
  font-weight: 700;
  color: var(--color-secondary);
}

.history-list-container {
  overflow-y: auto;
  max-height: 120px;
  padding-right: 4px;
}

.history-list {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.history-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.75rem;
  color: var(--color-text-muted);
  padding: 8px 10px;
  background: rgba(255, 255, 255, 0.01);
  border: 1px solid var(--color-border);
  border-radius: 8px;
}

.history-item-left {
  display: flex;
  align-items: center;
  gap: 8px;
}

.history-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
}

.history-dot.focus { background: var(--color-accent); }
.history-dot.short { background: var(--color-success); }
.history-dot.long { background: var(--color-info); }

.history-item-right {
  color: var(--color-text-subtle);
}

.history-empty {
  font-size: 0.75rem;
  color: var(--color-text-subtle);
  text-align: center;
  padding: 16px 0;
}

/* --- Panel 5: Settings UI --- */
.settings-list {
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.settings-group {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.settings-group h3 {
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  color: var(--color-text-subtle);
  letter-spacing: 0.05em;
  border-bottom: 1px solid rgba(255, 255, 255, 0.03);
  padding-bottom: 4px;
}

.time-inputs {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
}

.time-input-item {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.time-input-item label {
  font-size: 0.6875rem;
  color: var(--color-text-subtle);
  font-weight: 600;
}

.time-input-item input {
  padding: 8px;
  background: var(--bg-surface-hover);
  border: 1px solid var(--color-border);
  border-radius: 8px;
  color: var(--color-primary);
  font-family: var(--font-body);
  font-size: 0.8125rem;
  text-align: center;
}

.time-input-item input:focus {
  outline: none;
  border-color: var(--color-accent);
}

.setting-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 0.8125rem;
  color: var(--color-secondary);
}

/* Select */
.select-wrapper {
  position: relative;
}

.select-wrapper select {
  appearance: none;
  -webkit-appearance: none;
  background: var(--bg-surface-hover);
  border: 1px solid var(--color-border);
  border-radius: 8px;
  padding: 6px 30px 6px 12px;
  font-family: var(--font-body);
  font-size: 0.75rem;
  color: var(--color-primary);
  outline: none;
  cursor: pointer;
  transition: all var(--transition-fast);
}

.select-wrapper select:hover {
  border-color: var(--color-border-hover);
}

.select-wrapper::after {
  content: '';
  position: absolute;
  top: 50%;
  right: 12px;
  transform: translateY(-30%) rotate(45deg);
  width: 4px;
  height: 4px;
  border-right: 1.5px solid var(--color-text-muted);
  border-bottom: 1.5px solid var(--color-text-muted);
  pointer-events: none;
}

/* Toggle Switch */
.premium-switch {
  position: relative;
  display: inline-block;
  width: 38px;
  height: 20px;
}

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

.switch-slider {
  position: absolute;
  cursor: pointer;
  inset: 0;
  background-color: var(--color-border);
  border-radius: 20px;
  transition: background-color var(--transition-fast);
}

.switch-slider::before {
  position: absolute;
  content: "";
  height: 14px;
  width: 14px;
  left: 3px;
  bottom: 3px;
  background-color: var(--color-primary);
  border-radius: 50%;
  transition: transform var(--transition-fast);
}

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

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

.settings-actions {
  margin-top: 8px;
}

.w-full {
  width: 100%;
}

.btn {
  padding: 10px 20px;
  border-radius: var(--radius-sm);
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 0.8125rem;
  transition: all var(--transition-fast);
  cursor: pointer;
}

.btn-glass {
  background: var(--bg-surface-hover);
  color: var(--color-primary);
  border: 1px solid var(--color-border);
}

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

/* --- Panel 6: Zen Panel UI --- */
.quote-container {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  max-width: 600px;
  gap: 10px;
}

.quote-icon {
  color: rgba(37, 99, 235, 0.2);
}

.quote-text {
  font-family: var(--font-heading);
  font-size: 1.125rem;
  font-weight: 600;
  line-height: 1.4;
  color: var(--color-secondary);
}

.quote-author {
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  color: var(--color-text-subtle);
  letter-spacing: 0.05em;
}

/* --- Footer --- */
.app-footer {
  height: 60px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-top: 1px solid var(--color-border);
  color: var(--color-text-subtle);
  font-size: 0.75rem;
  margin-top: 20px;
}

/* --- Responsive Adaptations --- */
@media (max-width: 1200px) {
  .timer-panel {
    grid-column: span 12;
  }
  .tasks-panel {
    grid-column: span 12;
    grid-row: auto;
    min-height: 300px;
  }
  .ambient-panel, .stats-panel, .settings-panel {
    grid-column: span 6;
  }
  .zen-panel {
    grid-column: span 12;
  }
}

@media (max-width: 768px) {
  .ambient-panel, .stats-panel, .settings-panel {
    grid-column: span 12;
  }
  .bento-dashboard {
    gap: 16px;
    padding: 10px 0;
  }
  .timer-display-container {
    width: 280px;
    height: 280px;
  }
  .progress-ring {
    width: 280px;
    height: 280px;
  }
  .progress-ring circle {
    cx: 140px;
    cy: 140px;
    r: 120px;
  }
  .progress-ring__bar {
    stroke-dasharray: 753.98; /* 2 * PI * 120 */
    transform-origin: 140px 140px;
  }
  .timer-clock .time {
    font-size: 3.5rem;
  }
}
