/* ========== CSS Variables ========== */
:root {
  --bg-primary: #0d1117;
  --bg-secondary: #161b22;
  --bg-card: #1c2128;
  --bg-hover: #262c36;
  --border-color: #30363d;
  --text-primary: #e6edf3;
  --text-secondary: #8b949e;
  --text-muted: #6e7681;
  --accent: #2dd4bf;
  --accent-hover: #14b8a6;
  --accent-glow: rgba(45, 212, 191, 0.25);
  --water: #38bdf8;
  --water-glow: rgba(56, 189, 248, 0.25);
  --warning: #fbbf24;
  --danger: #f87171;
  --success: #34d399;
  --radius-sm: 6px;
  --radius-md: 10px;
  --radius-lg: 16px;
  --radius-full: 9999px;
  --shadow-sm: 0 1px 2px rgba(0,0,0,0.3);
  --shadow-md: 0 4px 12px rgba(0,0,0,0.4);
  --shadow-lg: 0 8px 30px rgba(0,0,0,0.5);
  --transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
}

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

html {
  scroll-behavior: smooth;
}

body {
  font-family: 'DM Sans', -apple-system, BlinkMacSystemFont, sans-serif;
  background: var(--bg-primary);
  color: var(--text-primary);
  min-height: 100vh;
  line-height: 1.6;
  display: flex;
  flex-direction: column;
}

h1, h2, h3, h4, h5, h6 {
  font-family: 'Space Grotesk', sans-serif;
  font-weight: 600;
  line-height: 1.3;
}

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

.bg-blob {
  position: absolute;
  border-radius: 50%;
  filter: blur(120px);
  opacity: 0.35;
  animation: blobFloat 25s ease-in-out infinite;
}

.blob-1 {
  width: 600px;
  height: 600px;
  background: var(--accent);
  top: -250px;
  right: -150px;
}

.blob-2 {
  width: 500px;
  height: 500px;
  background: #1e3a5f;
  bottom: -150px;
  left: -150px;
  animation-delay: -12s;
}

@keyframes blobFloat {
  0%, 100% { transform: translate(0, 0) scale(1); }
  33% { transform: translate(40px, -40px) scale(1.08); }
  66% { transform: translate(-30px, 30px) scale(0.95); }
}

/* ========== Header Navigation ========== */
.main-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  background: rgba(13, 17, 23, 0.85);
  backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--border-color);
}

.header-inner {
  max-width: 1400px;
  margin: 0 auto;
  padding: 0.75rem 1.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
}

.logo {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  color: var(--text-primary);
  text-decoration: none;
  font-family: 'Space Grotesk', sans-serif;
  font-weight: 700;
  font-size: 1.25rem;
  transition: var(--transition);
}

.logo:hover {
  color: var(--accent);
}

.logo-icon {
  width: 32px;
  height: 32px;
  object-fit: contain;
  border-radius: var(--radius-sm);
}

.main-nav {
  display: flex;
  align-items: center;
  gap: 0.25rem;
}

.nav-item {
  display: flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.6rem 1rem;
  background: transparent;
  border: none;
  color: var(--text-secondary);
  font-family: 'DM Sans', sans-serif;
  font-size: 0.9rem;
  font-weight: 500;
  border-radius: var(--radius-md);
  cursor: pointer;
  transition: var(--transition);
}

.nav-item:hover {
  color: var(--text-primary);
  background: var(--bg-hover);
}

.nav-item.active {
  color: var(--accent);
  background: rgba(45, 212, 191, 0.1);
}

.dropdown-arrow {
  width: 16px;
  height: 16px;
  transition: transform 0.2s ease;
}

.nav-dropdown {
  position: relative;
}

.nav-dropdown:hover .dropdown-arrow {
  transform: rotate(180deg);
}

.dropdown-menu {
  position: absolute;
  top: calc(100% + 4px);
  left: 0;
  min-width: 180px;
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-lg);
  opacity: 0;
  visibility: hidden;
  transform: translateY(-8px);
  transition: var(--transition);
  overflow: hidden;
}

.nav-dropdown:hover .dropdown-menu {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.dropdown-menu button {
  display: block;
  width: 100%;
  padding: 0.7rem 1rem;
  background: transparent;
  border: none;
  color: var(--text-secondary);
  font-family: 'DM Sans', sans-serif;
  font-size: 0.875rem;
  text-align: left;
  cursor: pointer;
  transition: var(--transition);
}

.dropdown-menu button:hover {
  background: var(--bg-hover);
  color: var(--text-primary);
}

.notification-btn {
  position: relative;
  padding: 0.6rem;
  background: transparent;
  border: none;
  color: var(--text-secondary);
  border-radius: var(--radius-md);
  cursor: pointer;
  transition: var(--transition);
}

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

.notification-btn svg {
  width: 22px;
  height: 22px;
}

.notification-indicator {
  position: absolute;
  top: 6px;
  right: 6px;
  width: 8px;
  height: 8px;
  background: var(--accent);
  border-radius: 50%;
  display: none;
}

.notification-indicator.active {
  display: block;
  animation: pulse 2s infinite;
}

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

/* Mobile Menu Toggle */
.mobile-menu-toggle {
  display: none;
  padding: 0.6rem;
  background: transparent;
  border: none;
  color: var(--text-secondary);
  border-radius: var(--radius-md);
  cursor: pointer;
  transition: var(--transition);
}

.mobile-menu-toggle:hover {
  background: var(--bg-hover);
  color: var(--text-primary);
}

.mobile-menu-toggle svg {
  width: 24px;
  height: 24px;
}

/* ========== Notification Panel ========== */
.notification-panel {
  position: fixed;
  top: 0;
  right: 0;
  width: 360px;
  max-width: 100%;
  height: 100vh;
  background: var(--bg-secondary);
  border-left: 1px solid var(--border-color);
  box-shadow: var(--shadow-lg);
  transform: translateX(100%);
  transition: transform 0.35s cubic-bezier(0.4, 0, 0.2, 1);
  z-index: 200;
  display: flex;
  flex-direction: column;
}

.notification-panel.open {
  transform: translateX(0);
}

.panel-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1rem 1.25rem;
  border-bottom: 1px solid var(--border-color);
}

.panel-header h3 {
  font-size: 1.1rem;
}

.close-panel {
  padding: 0.4rem;
  background: transparent;
  border: none;
  color: var(--text-secondary);
  border-radius: var(--radius-sm);
  cursor: pointer;
  transition: var(--transition);
}

.close-panel:hover {
  background: var(--bg-hover);
  color: var(--text-primary);
}

.close-panel svg {
  width: 20px;
  height: 20px;
}

.panel-content {
  flex: 1;
  overflow-y: auto;
  padding: 1rem;
}

.panel-section {
  margin-bottom: 1.5rem;
}

.panel-section h4 {
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--text-muted);
  margin-bottom: 0.75rem;
}

.reminder-list {
  list-style: none;
}

.reminder-list li {
  padding: 0.75rem;
  background: var(--bg-card);
  border-radius: var(--radius-sm);
  margin-bottom: 0.5rem;
  font-size: 0.875rem;
}

.reminder-list li.empty-state {
  color: var(--text-muted);
  background: transparent;
  text-align: center;
  padding: 1.5rem;
}

.reminder-item {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.reminder-icon {
  width: 32px;
  height: 32px;
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.reminder-icon.water { background: rgba(56, 189, 248, 0.15); color: var(--water); }
.reminder-icon.focus { background: rgba(45, 212, 191, 0.15); color: var(--accent); }
.reminder-icon.health { background: rgba(248, 113, 113, 0.15); color: var(--danger); }
.reminder-icon.wellness { background: rgba(251, 191, 36, 0.15); color: var(--warning); }

.reminder-content {
  flex: 1;
  min-width: 0;
}

.reminder-title {
  font-weight: 500;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

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

/* ========== Main Content ========== */
.main-content {
  padding: 6rem 1.5rem 3rem;
  max-width: 1200px;
  margin: 0 auto;
  width: 100%;
  flex: 1;
}

/* ========== Tab Content ========== */
.tab-content {
  display: none;
  animation: fadeIn 0.3s ease;
}

.tab-content.active {
  display: block;
}

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

/* ========== Dashboard ========== */
.dashboard-header {
  margin-bottom: 2rem;
}

.dashboard-header h1 {
  font-size: 2rem;
  margin-bottom: 0.25rem;
}

.dashboard-header p {
  color: var(--text-secondary);
}

/* Progress Card */
.progress-card {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 2rem;
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: 1.5rem;
  margin-bottom: 1.5rem;
}

.progress-ring-container {
  position: relative;
  width: 160px;
  height: 160px;
}

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

.progress-bg {
  fill: none;
  stroke: var(--border-color);
  stroke-width: 12;
}

.progress-fill {
  fill: none;
  stroke: var(--accent);
  stroke-width: 12;
  stroke-linecap: round;
  stroke-dasharray: 534;
  stroke-dashoffset: 534;
  transition: stroke-dashoffset 0.5s ease;
}

.progress-text {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

.progress-value {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 2rem;
  font-weight: 700;
  color: var(--accent);
}

.progress-label {
  font-size: 0.75rem;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.progress-stats {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 1rem;
}

.stat-item {
  display: flex;
  flex-direction: column;
}

.stat-value {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 1.5rem;
  font-weight: 600;
  color: var(--text-primary);
}

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

/* Smart Focus Card */
.smart-focus-card {
  background: linear-gradient(135deg, rgba(45, 212, 191, 0.1) 0%, transparent 60%);
  border-color: rgba(45, 212, 191, 0.3);
}

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

.card-header h3 {
  font-size: 1.1rem;
}

.card-description {
  color: var(--text-secondary);
  font-size: 0.875rem;
  line-height: 1.5;
  margin-bottom: 1rem;
}

.focus-status {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.5rem 0.75rem;
  background: var(--bg-secondary);
  border-radius: var(--radius-sm);
  font-size: 0.8rem;
}

.status-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--text-muted);
}

.status-dot.active {
  background: var(--accent);
  box-shadow: 0 0 8px var(--accent-glow);
}

/* Quick Access Grid */
.quick-access-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 1rem;
}

.quick-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.quick-card h4 {
  margin-bottom: 0.75rem;
  font-size: 1rem;
}

.card-icon {
  width: 48px;
  height: 48px;
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 0.75rem;
}

.card-icon svg {
  width: 24px;
  height: 24px;
}

.card-icon.water-icon {
  background: rgba(56, 189, 248, 0.15);
  color: var(--water);
}

.card-icon.focus-icon {
  background: rgba(45, 212, 191, 0.15);
  color: var(--accent);
}

.card-icon.alarm-icon {
  background: rgba(251, 191, 36, 0.15);
  color: var(--warning);
}

.water-display {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 1.25rem;
  font-weight: 600;
  color: var(--water);
  margin-bottom: 0.75rem;
}

.timer-mini {
  font-family: 'Space Grotesk', monospace;
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--accent);
  margin-bottom: 0.75rem;
}

.toggle-list {
  width: 100%;
}

.toggle-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.5rem 0;
  font-size: 0.875rem;
  border-bottom: 1px solid var(--border-color);
}

.toggle-row:last-child {
  border-bottom: none;
}

.quick-alarm-input {
  display: flex;
  gap: 0.5rem;
  width: 100%;
}

.quick-alarm-input input {
  flex: 1;
}

/* ========== Feature Cards ========== */
.feature-card {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: 1.5rem;
  margin-bottom: 1rem;
  transition: var(--transition);
}

.feature-card:hover {
  border-color: rgba(45, 212, 191, 0.3);
}

.feature-card h3 {
  font-size: 1.1rem;
  margin-bottom: 1rem;
}

.page-header {
  margin-bottom: 1.5rem;
}

.page-header h2 {
  font-size: 1.75rem;
  margin-bottom: 0.25rem;
}

.page-header p {
  color: var(--text-secondary);
}

/* ========== Toggle Switch ========== */
.toggle-switch {
  position: relative;
  display: inline-block;
  width: 44px;
  height: 24px;
  flex-shrink: 0;
}

.toggle-switch.toggle-sm {
  width: 36px;
  height: 20px;
}

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

.toggle-slider {
  position: absolute;
  cursor: pointer;
  inset: 0;
  background: var(--bg-hover);
  border-radius: var(--radius-full);
  transition: var(--transition);
}

.toggle-slider::before {
  content: '';
  position: absolute;
  height: 18px;
  width: 18px;
  left: 3px;
  bottom: 3px;
  background: var(--text-secondary);
  border-radius: 50%;
  transition: var(--transition);
}

.toggle-sm .toggle-slider::before {
  height: 14px;
  width: 14px;
}

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

.toggle-switch input:checked + .toggle-slider::before {
  transform: translateX(20px);
  background: white;
}

.toggle-sm input:checked + .toggle-slider::before {
  transform: translateX(16px);
}

/* ========== Buttons ========== */
.btn-primary {
  padding: 0.75rem 1.5rem;
  background: var(--accent);
  color: var(--bg-primary);
  font-family: 'Space Grotesk', sans-serif;
  font-weight: 600;
  font-size: 0.9rem;
  border: none;
  border-radius: var(--radius-md);
  cursor: pointer;
  transition: var(--transition);
}

.btn-primary:hover:not(:disabled) {
  background: var(--accent-hover);
  transform: translateY(-2px);
  box-shadow: 0 4px 20px var(--accent-glow);
}

.btn-primary:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

.btn-secondary {
  padding: 0.75rem 1.5rem;
  background: transparent;
  color: var(--text-primary);
  font-family: 'Space Grotesk', sans-serif;
  font-weight: 500;
  font-size: 0.9rem;
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  cursor: pointer;
  transition: var(--transition);
}

.btn-secondary:hover:not(:disabled) {
  border-color: var(--accent);
  background: rgba(45, 212, 191, 0.1);
}

.btn-secondary:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

.btn-sm {
  padding: 0.5rem 1rem;
  font-size: 0.8rem;
}

/* ========== Forms ========== */
.form-group {
  margin-bottom: 1rem;
}

.form-group label {
  display: block;
  font-size: 0.8rem;
  font-weight: 500;
  color: var(--text-secondary);
  margin-bottom: 0.4rem;
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}

input[type="text"],
input[type="number"],
input[type="time"],
select {
  width: 100%;
  padding: 0.75rem 1rem;
  background: var(--bg-secondary);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  color: var(--text-primary);
  font-family: 'DM Sans', sans-serif;
  font-size: 0.9rem;
  transition: var(--transition);
}

input:focus,
select:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px var(--accent-glow);
}

input::placeholder {
  color: var(--text-muted);
}

/* ========== Pomodoro Timer ========== */
.timer-card {
  text-align: center;
}

.duration-selector {
  display: flex;
  justify-content: center;
  gap: 0.5rem;
  margin-bottom: 2rem;
  flex-wrap: wrap;
}

.duration-btn {
  padding: 0.6rem 1.25rem;
  background: var(--bg-secondary);
  border: 1px solid var(--border-color);
  color: var(--text-secondary);
  font-family: 'DM Sans', sans-serif;
  font-size: 0.875rem;
  border-radius: var(--radius-md);
  cursor: pointer;
  transition: var(--transition);
}

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

.duration-btn.active {
  background: var(--accent);
  border-color: var(--accent);
  color: var(--bg-primary);
  font-weight: 600;
}

.timer-display-container {
  position: relative;
  display: inline-block;
  margin-bottom: 2rem;
}

.timer-ring {
  width: 240px;
  height: 240px;
  transform: rotate(-90deg);
}

.timer-bg {
  fill: none;
  stroke: var(--border-color);
  stroke-width: 8;
}

.timer-fill {
  fill: none;
  stroke: var(--accent);
  stroke-width: 8;
  stroke-linecap: round;
  stroke-dasharray: 691;
  stroke-dashoffset: 0;
  transition: stroke-dashoffset 1s linear;
}

.timer-text {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

.timer-value {
  font-family: 'Space Grotesk', monospace;
  font-size: 3.5rem;
  font-weight: 700;
  color: var(--text-primary);
}

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

.timer-controls {
  display: flex;
  justify-content: center;
  gap: 0.75rem;
  margin-bottom: 2rem;
}

.session-stats {
  display: flex;
  justify-content: center;
  gap: 3rem;
}

.session-stat {
  text-align: center;
}

.session-value {
  display: block;
  font-family: 'Space Grotesk', sans-serif;
  font-size: 1.75rem;
  font-weight: 700;
  color: var(--accent);
}

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

/* ========== Water Tracker ========== */
.water-card {
  text-align: center;
}

.water-visual {
  margin-bottom: 1.5rem;
}

.water-count-large {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 4rem;
  font-weight: 700;
  color: var(--water);
}

.water-goal {
  font-size: 1rem;
  color: var(--text-muted);
}

.water-drops {
  display: flex;
  justify-content: center;
  gap: 0.75rem;
  margin-bottom: 1.5rem;
  flex-wrap: wrap;
}

.water-drop {
  width: 40px;
  height: 40px;
  border-radius: 50% 50% 50% 50% / 60% 60% 40% 40%;
  background: var(--bg-secondary);
  border: 2px dashed var(--border-color);
  cursor: pointer;
  transition: var(--transition);
  display: flex;
  align-items: center;
  justify-content: center;
}

.water-drop.filled {
  background: var(--water);
  border: none;
  box-shadow: 0 4px 12px var(--water-glow);
}

.water-drop svg {
  width: 20px;
  height: 20px;
  color: white;
}

.water-actions {
  display: flex;
  justify-content: center;
  gap: 0.75rem;
  margin-bottom: 1.5rem;
}

.water-reminder {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.75rem;
  padding-top: 1rem;
  border-top: 1px solid var(--border-color);
  flex-wrap: wrap;
}

.water-reminder label {
  font-size: 0.875rem;
  color: var(--text-secondary);
}

.water-reminder select {
  width: auto;
  padding: 0.5rem 0.75rem;
}

.water-history h4 {
  font-size: 1rem;
  margin-bottom: 0.75rem;
}

.water-history ul {
  list-style: none;
}

.water-history li {
  padding: 0.5rem 0;
  font-size: 0.875rem;
  color: var(--text-secondary);
  border-bottom: 1px solid var(--border-color);
}

.water-history li:last-child {
  border-bottom: none;
}

/* ========== Box Breathing ========== */
.breathing-card {
  text-align: center;
}

.breathing-box {
  width: 180px;
  height: 180px;
  margin: 0 auto 2rem;
  border: 3px solid var(--accent);
  border-radius: var(--radius-lg);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: 'Space Grotesk', sans-serif;
  font-size: 1.25rem;
  font-weight: 600;
  color: var(--accent);
  transition: all 4s ease-in-out;
}

.breathing-box.inhale {
  transform: scale(1.25);
  border-color: var(--accent);
  box-shadow: 0 0 40px var(--accent-glow);
}

.breathing-box.hold {
  transform: scale(1.25);
  border-color: var(--warning);
  box-shadow: 0 0 40px rgba(251, 191, 36, 0.3);
  color: var(--warning);
}

.breathing-box.exhale {
  transform: scale(1);
  border-color: var(--water);
  box-shadow: 0 0 40px var(--water-glow);
  color: var(--water);
}

.breathing-controls {
  display: flex;
  justify-content: center;
  gap: 0.75rem;
  margin-bottom: 2rem;
}

.breathing-guide {
  display: flex;
  justify-content: center;
  gap: 1.5rem;
  margin-bottom: 1.5rem;
}

.breath-step {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 0.75rem;
  background: var(--bg-secondary);
  border-radius: var(--radius-md);
  min-width: 60px;
}

.breath-duration {
  font-family: 'Space Grotesk', sans-serif;
  font-weight: 700;
  font-size: 1.1rem;
}

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

.breathing-stats {
  font-size: 0.9rem;
  color: var(--text-secondary);
}

.breathing-stats strong {
  color: var(--accent);
}

/* ========== Eye Care & Posture ========== */
.card-header-row {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1rem;
}

.card-subtitle {
  font-size: 0.8rem;
  color: var(--text-muted);
  margin-top: 0.25rem;
}

.interval-selector {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-top: 1rem;
  padding-top: 1rem;
  border-top: 1px solid var(--border-color);
}

.interval-selector label {
  font-size: 0.875rem;
  color: var(--text-secondary);
}

.interval-selector select {
  width: auto;
  padding: 0.5rem 0.75rem;
}

/* ========== Medicine & Alarms ========== */
.medicine-list,
.alarms-list {
  margin-top: 1rem;
}

.medicine-item,
.alarm-item {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 1rem;
  background: var(--bg-secondary);
  border-radius: var(--radius-md);
  margin-bottom: 0.75rem;
}

.medicine-icon,
.alarm-icon {
  width: 40px;
  height: 40px;
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.medicine-icon {
  background: rgba(248, 113, 113, 0.15);
  color: var(--danger);
}

.alarm-icon {
  background: rgba(251, 191, 36, 0.15);
  color: var(--warning);
}

.medicine-icon svg,
.alarm-icon svg {
  width: 20px;
  height: 20px;
}

.medicine-details,
.alarm-details {
  flex: 1;
  min-width: 0;
}

.medicine-name,
.alarm-label {
  font-weight: 600;
  margin-bottom: 0.15rem;
}

.medicine-meta,
.alarm-time {
  font-size: 0.8rem;
  color: var(--text-muted);
}

.delete-btn {
  padding: 0.5rem;
  background: transparent;
  border: none;
  color: var(--text-muted);
  border-radius: var(--radius-sm);
  cursor: pointer;
  transition: var(--transition);
}

.delete-btn:hover {
  background: rgba(248, 113, 113, 0.15);
  color: var(--danger);
}

.delete-btn svg {
  width: 18px;
  height: 18px;
}

/* ========== Info Box ========== */
.info-box {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  padding: 1rem;
  background: var(--bg-secondary);
  border-radius: var(--radius-md);
  border: 1px solid var(--border-color);
}

.info-box svg {
  width: 20px;
  height: 20px;
  color: var(--accent);
  flex-shrink: 0;
  margin-top: 0.1rem;
}

.info-box p {
  font-size: 0.875rem;
  color: var(--text-secondary);
  line-height: 1.5;
}

.info-box .btn-sm {
  margin-top: 0.75rem;
}

/* ========== Footer ========== */
.main-footer {
  padding: 1.5rem;
  text-align: center;
  border-top: 1px solid var(--border-color);
  background: var(--bg-secondary);
  color: var(--text-secondary);
  font-size: 0.9rem;
}

.author-link {
  color: var(--accent);
  text-decoration: none;
  font-weight: 600;
  transition: var(--transition);
}

.author-link:hover {
  text-decoration: underline;
  color: var(--accent-hover);
}

/* ========== Toast ========== */
.toast {
  position: fixed;
  bottom: 2rem;
  right: 2rem;
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 1rem 1.25rem;
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-lg);
  transform: translateX(calc(100% + 3rem));
  transition: transform 0.35s cubic-bezier(0.4, 0, 0.2, 1);
  z-index: 300;
}

.toast.show {
  transform: translateX(0);
}

.toast-icon {
  width: 20px;
  height: 20px;
  color: var(--success);
}

/* ========== Responsive ========== */
@media (max-width: 900px) {
  .header-inner {
    padding: 0.75rem 1rem;
  }
  
  .mobile-menu-toggle {
    display: block;
  }

  /* Mobile Nav Dropdown */
  .main-nav {
    display: none; /* Hidden by default */
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--bg-secondary);
    border-bottom: 1px solid var(--border-color);
    flex-direction: column;
    padding: 1rem;
    gap: 0.5rem;
    box-shadow: var(--shadow-lg);
  }

  .main-nav.active {
    display: flex;
  }

  .main-nav .nav-item {
    width: 100%;
    justify-content: space-between;
  }

  .main-nav .nav-dropdown {
    width: 100%;
  }

  .main-nav .dropdown-menu {
    position: static;
    opacity: 1;
    visibility: visible;
    transform: none;
    box-shadow: none;
    border: none;
    background: transparent;
    padding-left: 1rem;
    display: none; /* Toggle via JS or keep open */
  }
  
  /* Simple UX: Show dropdowns statically in mobile menu */
  .main-nav.active .dropdown-menu {
      display: block;
  }
  
  .progress-card {
    grid-template-columns: 1fr;
    text-align: center;
  }
  
  .progress-ring-container {
    margin: 0 auto;
  }
  
  .progress-stats {
    flex-direction: row;
    justify-content: space-around;
  }
  
  .session-stats {
    gap: 1.5rem;
  }
}

@media (max-width: 600px) {
  .main-content {
    padding: 5rem 1rem 2rem;
  }
  
  .dashboard-header h1 {
    font-size: 1.5rem;
  }
  
  .quick-access-grid {
    grid-template-columns: 1fr;
  }
  
  .form-row {
    grid-template-columns: 1fr;
  }
  
  .timer-value {
    font-size: 2.5rem;
  }
  
  .timer-ring {
    width: 200px;
    height: 200px;
  }
  
  .breathing-box {
    width: 140px;
    height: 140px;
  }
  
  .breathing-guide {
    gap: 0.5rem;
  }
  
  .breath-step {
    min-width: 50px;
    padding: 0.5rem;
  }
  
  .water-count-large {
    font-size: 3rem;
  }
  
  .notification-panel {
    width: 100%;
  }
}

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