/* ==========================================
   GOOD MOODZ - Daily Mood Tracker & Relax App
   Modern Minimalist Glassmorphism Design System
   ========================================== */

@import url('https://fonts.googleapis.com/css2?family=Plus+Jakarta+Sans:wght@300;400;500;600;700;800&display=swap');

/* --- CSS Variables & Themes --- */
:root {
  /* Default Theme: Galaxy */
  --bg-primary: #0a0915;
  --bg-secondary: #121026;
  --glass-bg: rgba(255, 255, 255, 0.04);
  --glass-bg-hover: rgba(255, 255, 255, 0.08);
  --glass-border: rgba(255, 255, 255, 0.09);
  --glass-border-glow: rgba(168, 85, 247, 0.35);
  --glass-shadow: 0 12px 36px rgba(0, 0, 0, 0.38);

  --text-primary: #f8fafc;
  --text-secondary: #94a3b8;
  --text-muted: #64748b;

  --accent-color: #a855f7;
  --accent-gradient: linear-gradient(135deg, #a855f7, #6366f1);
  --accent-glow: rgba(168, 85, 247, 0.28);

  --font-main: 'Plus Jakarta Sans', system-ui, -apple-system, sans-serif;

  /* Mood Specific Colors */
  --mood-happy: #f59e0b;
  --mood-calm: #14b8a6;
  --mood-excited: #8b5cf6;
  --mood-loved: #ec4899;
  --mood-tired: #64748b;
  --mood-sad: #3b82f6;
  --mood-angry: #ef4444;
  --mood-anxious: #f97316;

  --radius-xl: 28px;
  --radius-lg: 20px;
  --radius-md: 14px;
  --radius-sm: 10px;
}

/* Theme 1: Ocean */
[data-theme="ocean"] {
  --bg-primary: #06111e;
  --bg-secondary: #0a1f34;
  --accent-color: #06b6d4;
  --accent-gradient: linear-gradient(135deg, #06b6d4, #3b82f6);
  --accent-glow: rgba(6, 182, 212, 0.28);
}

/* Theme 2: Forest */
[data-theme="forest"] {
  --bg-primary: #05140d;
  --bg-secondary: #0a2519;
  --accent-color: #10b981;
  --accent-gradient: linear-gradient(135deg, #34d399, #059669);
  --accent-glow: rgba(16, 185, 129, 0.28);
}

/* Theme 3: Sunset */
[data-theme="sunset"] {
  --bg-primary: #170812;
  --bg-secondary: #260f1e;
  --accent-color: #f43f5e;
  --accent-gradient: linear-gradient(135deg, #f43f5e, #fb923c);
  --accent-glow: rgba(244, 63, 94, 0.28);
}

/* Theme 4: Galaxy */
[data-theme="galaxy"] {
  --bg-primary: #0a0915;
  --bg-secondary: #121026;
  --accent-color: #a855f7;
  --accent-gradient: linear-gradient(135deg, #a855f7, #6366f1);
  --accent-glow: rgba(168, 85, 247, 0.28);
}

/* Theme 5: Sakura */
[data-theme="sakura"] {
  --bg-primary: #180914;
  --bg-secondary: #281022;
  --accent-color: #f472b6;
  --accent-gradient: linear-gradient(135deg, #f472b6, #fb7185);
  --accent-glow: rgba(244, 114, 182, 0.28);
}

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

html {
  scroll-behavior: smooth;
  font-family: var(--font-main);
  background-color: var(--bg-primary);
  color: var(--text-primary);
  overflow-x: hidden;
}

body {
  min-height: 100vh;
  position: relative;
  background: radial-gradient(circle at 50% 12%, var(--bg-secondary) 0%, var(--bg-primary) 70%);
  background-attachment: fixed;
  transition: background 0.5s ease, color 0.5s ease;
  line-height: 1.6;
  display: flex;
  flex-direction: column;
  align-items: center;
}

/* Background Animation Canvases */
#particle-canvas, #rain-canvas {
  position: fixed;
  inset: 0;
  width: 100vw;
  height: 100vh;
  pointer-events: none;
  z-index: 0;
}

#rain-canvas {
  opacity: 0;
  transition: opacity 0.8s ease;
}

body.relax-active #rain-canvas {
  opacity: 1;
}

.ambient-glow {
  position: fixed;
  width: 600px;
  height: 600px;
  border-radius: 50%;
  background: var(--accent-glow);
  filter: blur(140px);
  pointer-events: none;
  z-index: 0;
  top: 5%;
  left: 50%;
  transform: translateX(-50%);
  transition: background 0.8s ease;
}

/* Loading Screen */
#loading-screen {
  position: fixed;
  inset: 0;
  background: var(--bg-primary);
  z-index: 9999;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 16px;
  transition: opacity 0.4s ease, visibility 0.4s ease;
}

#loading-screen.hidden {
  opacity: 0;
  visibility: hidden;
}

.spinner-ring {
  width: 48px;
  height: 48px;
  border: 3px solid var(--glass-border);
  border-top-color: var(--accent-color);
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
}

.loading-logo {
  font-size: 1.15rem;
  font-weight: 700;
  letter-spacing: 1px;
}

@keyframes spin {
  to { transform: rotate(360deg); }
}

/* --- Main Layout Container --- */
.app-container {
  width: 100%;
  max-width: 1140px;
  padding: 24px 20px 100px 20px;
  position: relative;
  z-index: 10;
  display: flex;
  flex-direction: column;
  gap: 28px;
}

/* Glass Card Component */
.glass-card {
  background: var(--glass-bg);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-xl);
  box-shadow: var(--glass-shadow);
  padding: 28px;
  transition: all 0.3s ease;
}

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

/* Buttons & Controls */
.glass-btn {
  min-height: 44px;
  padding: 10px 22px;
  border-radius: var(--radius-md);
  background: var(--glass-bg);
  backdrop-filter: blur(10px);
  border: 1px solid var(--glass-border);
  color: var(--text-primary);
  font-family: inherit;
  font-size: 0.9rem;
  font-weight: 500;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  transition: all 0.2s ease;
  user-select: none;
  white-space: nowrap;
}

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

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

.glass-btn.primary {
  background: var(--accent-gradient);
  border: none;
  color: #fff;
  font-weight: 600;
  box-shadow: 0 4px 18px var(--accent-glow);
}

.glass-btn.primary:hover {
  box-shadow: 0 6px 22px var(--accent-glow);
}

.glass-btn.btn-lg {
  min-height: 48px;
  padding: 12px 28px;
  font-size: 0.95rem;
}

.glass-btn.danger-btn {
  color: #ef4444;
  border-color: rgba(239, 68, 68, 0.25);
}

.glass-btn.danger-btn:hover {
  background: rgba(239, 68, 68, 0.15);
  border-color: #ef4444;
}

.glass-input {
  width: 100%;
  min-height: 46px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-md);
  padding: 12px 18px;
  color: var(--text-primary);
  font-family: inherit;
  font-size: 0.95rem;
  outline: none;
  transition: all 0.25s ease;
}

.glass-input:focus {
  border-color: var(--accent-color);
  background: rgba(255, 255, 255, 0.07);
  box-shadow: 0 0 14px var(--accent-glow);
}

.icon-btn {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: transparent;
  border: none;
  color: var(--text-secondary);
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 1rem;
  transition: all 0.2s ease;
}

.icon-btn:hover {
  color: var(--text-primary);
  background: rgba(255, 255, 255, 0.1);
}

/* ==========================================
   1. NAVBAR
   ========================================== */
.navbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 28px;
}

.brand-logo {
  display: flex;
  align-items: center;
  gap: 12px;
  cursor: pointer;
}

.brand-icon {
  font-size: 1.6rem;
}

.brand-title-group {
  display: flex;
  flex-direction: column;
}

.brand-name {
  font-size: 1.35rem;
  font-weight: 800;
  background: var(--accent-gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  letter-spacing: -0.3px;
}

.brand-badge {
  font-size: 0.7rem;
  font-weight: 600;
  color: var(--text-muted);
  letter-spacing: 0.5px;
  text-transform: uppercase;
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 12px;
}

.header-streak-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 14px;
  background: rgba(245, 158, 11, 0.12);
  border: 1px solid rgba(245, 158, 11, 0.3);
  border-radius: 20px;
  font-size: 0.85rem;
  font-weight: 700;
  color: #f59e0b;
}

/* Theme Dropdown */
.theme-selector {
  position: relative;
}

.theme-btn {
  padding: 8px 16px;
  min-height: 40px;
}

.theme-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--accent-color);
}

.theme-menu {
  position: absolute;
  top: 115%;
  right: 0;
  background: rgba(18, 16, 38, 0.96);
  backdrop-filter: blur(20px);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-md);
  padding: 8px;
  display: flex;
  flex-direction: column;
  gap: 4px;
  min-width: 150px;
  opacity: 0;
  visibility: hidden;
  transform: translateY(-8px);
  transition: all 0.25s ease;
  z-index: 100;
  box-shadow: var(--glass-shadow);
}

.theme-menu.show {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.theme-option {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 12px;
  border-radius: var(--radius-sm);
  color: var(--text-secondary);
  font-size: 0.85rem;
  cursor: pointer;
  transition: background 0.2s ease;
}

.theme-option:hover {
  background: rgba(255, 255, 255, 0.1);
  color: var(--text-primary);
}

/* ==========================================
   2. HERO MOOD PICKER CARD
   ========================================== */
.mood-picker-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 28px;
  text-align: center;
  padding: 36px 28px;
}

.hero-header {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
}

.date-pill {
  display: inline-flex;
  padding: 4px 14px;
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid var(--glass-border);
  font-size: 0.8rem;
  font-weight: 500;
  color: var(--text-secondary);
}

.hero-title {
  font-size: 2.3rem;
  font-weight: 800;
  letter-spacing: -0.5px;
}

.hero-subtitle {
  color: var(--text-secondary);
  font-size: 0.95rem;
}

.emoji-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
  width: 100%;
  max-width: 860px;
}

@media (max-width: 720px) {
  .emoji-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

.emoji-card {
  background: var(--glass-bg);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-lg);
  padding: 22px 14px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  cursor: pointer;
  transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
  user-select: none;
}

.emoji-card .emoji-icon {
  font-size: 2.6rem;
  transition: transform 0.25s ease;
}

.emoji-card .emoji-label {
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--text-primary);
}

.emoji-card:hover {
  border-color: var(--mood-color, var(--accent-color));
  transform: translateY(-4px);
  background: rgba(255, 255, 255, 0.08);
}

.emoji-card:hover .emoji-icon {
  transform: scale(1.18);
}

.emoji-card.selected {
  border-color: var(--mood-color, var(--accent-color));
  background: rgba(255, 255, 255, 0.12);
  box-shadow: 0 0 24px var(--mood-color, var(--accent-glow));
}

/* Quote Box */
.quote-wrapper {
  width: 100%;
  max-width: 820px;
  background: rgba(255, 255, 255, 0.03);
  border-left: 3px solid var(--accent-color);
  border-radius: var(--radius-md);
  padding: 18px 24px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  text-align: left;
}

.quote-content {
  display: flex;
  align-items: flex-start;
  gap: 10px;
}

.quote-icon {
  font-size: 1.1rem;
  margin-top: 2px;
}

.quote-text {
  font-size: 0.95rem;
  font-style: italic;
  color: var(--text-primary);
  line-height: 1.5;
}

.quote-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.quote-author {
  font-size: 0.8rem;
  color: var(--text-secondary);
  font-weight: 500;
}

/* ==========================================
   3. BENTO DASHBOARD GRID
   ========================================== */
.dashboard-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 28px;
  width: 100%;
}

@media (min-width: 960px) {
  .dashboard-grid {
    grid-template-columns: 1.22fr 1fr;
    align-items: start;
  }
}

.dashboard-main, .dashboard-sidebar {
  display: flex;
  flex-direction: column;
  gap: 28px;
}

/* Section Headings */
.section-heading {
  display: flex;
  align-items: center;
  gap: 10px;
}

.heading-icon {
  font-size: 1.3rem;
}

.section-title {
  font-size: 1.2rem;
  font-weight: 700;
}

/* --- Journal Section --- */
.journal-card {
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.journal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
}

.journal-selected-mood {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 14px;
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid var(--glass-border);
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--text-secondary);
}

.activity-tags-wrapper {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

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

.activity-tags {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
}

.tag-pill {
  padding: 5px 12px;
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--glass-border);
  color: var(--text-secondary);
  font-size: 0.78rem;
  cursor: pointer;
  transition: all 0.2s ease;
  user-select: none;
}

.tag-pill:hover, .tag-pill.active {
  background: rgba(255, 255, 255, 0.12);
  color: var(--text-primary);
  border-color: var(--accent-color);
}

.journal-textarea {
  min-height: 120px;
  resize: vertical;
  line-height: 1.6;
}

.journal-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
}

.journal-left {
  display: flex;
  align-items: center;
  gap: 14px;
}

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

.draft-status {
  font-size: 0.8rem;
  color: #34d399;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.draft-status.show {
  opacity: 1;
}

.journal-actions {
  display: flex;
  gap: 10px;
}

/* --- History Section --- */
.history-card {
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.history-controls {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
}

.history-right-controls {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
  flex: 1;
  justify-content: flex-end;
}

.search-box {
  position: relative;
  min-width: 180px;
  flex: 1;
  max-width: 280px;
}

.search-box input {
  padding-left: 36px;
}

.search-icon {
  position: absolute;
  left: 12px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--text-muted);
  pointer-events: none;
  font-size: 0.85rem;
}

.filter-pills {
  display: flex;
  gap: 8px;
  overflow-x: auto;
  padding-bottom: 4px;
}

.filter-pill {
  padding: 6px 14px;
  border-radius: 20px;
  background: var(--glass-bg);
  border: 1px solid var(--glass-border);
  color: var(--text-secondary);
  font-size: 0.8rem;
  cursor: pointer;
  white-space: nowrap;
  transition: all 0.2s ease;
}

.filter-pill:hover, .filter-pill.active {
  background: var(--glass-bg-hover);
  color: var(--text-primary);
  border-color: var(--accent-color);
}

.history-grid {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.history-item-card {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--glass-border);
  border-left: 4px solid var(--card-mood-color, var(--accent-color));
  border-radius: var(--radius-md);
  padding: 16px 18px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  transition: border-color 0.2s ease;
}

.history-item-card:hover {
  border-color: rgba(255, 255, 255, 0.2);
}

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

.history-item-mood {
  display: flex;
  align-items: center;
  gap: 8px;
  font-weight: 600;
}

.history-item-date {
  font-size: 0.75rem;
  color: var(--text-muted);
}

.history-item-body {
  font-size: 0.9rem;
  line-height: 1.5;
  color: var(--text-primary);
  white-space: pre-wrap;
  word-break: break-word;
}

.history-item-actions {
  display: flex;
  justify-content: flex-end;
  gap: 6px;
  padding-top: 6px;
  border-top: 1px solid rgba(255, 255, 255, 0.04);
}

.empty-history {
  text-align: center;
  padding: 28px 16px;
  color: var(--text-muted);
  font-size: 0.9rem;
}

/* --- Stats Section --- */
.stats-card {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
}

@media (max-width: 600px) {
  .stats-grid {
    grid-template-columns: 1fr;
  }
}

.stat-box {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-md);
  padding: 14px 16px;
  display: flex;
  align-items: center;
  gap: 12px;
}

.stat-icon {
  font-size: 1.6rem;
}

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

.stat-value {
  font-size: 1.15rem;
  font-weight: 700;
  line-height: 1.2;
}

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

.charts-container {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.chart-box {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-md);
  padding: 18px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
}

.chart-title {
  font-size: 0.9rem;
  font-weight: 600;
  align-self: flex-start;
  color: var(--text-secondary);
}

.chart-wrapper {
  width: 100%;
  height: 180px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.chart-legend {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  justify-content: center;
  font-size: 0.75rem;
}

.legend-item {
  display: flex;
  align-items: center;
  gap: 4px;
  color: var(--text-secondary);
}

.legend-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
}

/* --- Relax Panel --- */
.relax-panel {
  display: flex;
  flex-direction: column;
  gap: 20px;
  align-items: center;
  text-align: center;
}

.relax-panel.hidden {
  display: none;
}

.relax-header {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.digital-clock-container {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.digital-clock {
  font-size: 2.6rem;
  font-weight: 800;
  font-family: monospace, var(--font-main);
  letter-spacing: 2px;
}

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

.pomodoro-box {
  width: 100%;
  max-width: 320px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
}

.pomodoro-modes {
  display: flex;
  gap: 6px;
}

.mode-pill {
  padding: 6px 12px;
  border-radius: 20px;
  font-size: 0.78rem;
  background: var(--glass-bg);
  border: 1px solid var(--glass-border);
  color: var(--text-secondary);
  cursor: pointer;
  transition: all 0.2s ease;
}

.mode-pill.active {
  background: var(--accent-color);
  color: #fff;
  border-color: var(--accent-color);
}

.pomodoro-timer-ring {
  position: relative;
  width: 170px;
  height: 170px;
  display: flex;
  align-items: center;
  justify-content: center;
}

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

.pomodoro-circle-bg {
  fill: none;
  stroke: rgba(255, 255, 255, 0.08);
  stroke-width: 8;
}

.pomodoro-circle-progress {
  fill: none;
  stroke: var(--accent-color);
  stroke-width: 8;
  stroke-linecap: round;
  stroke-dasharray: 565;
  stroke-dashoffset: 0;
  transition: stroke-dashoffset 1s linear;
}

.timer-time {
  position: absolute;
  font-size: 2.1rem;
  font-weight: 700;
}

.pomodoro-controls {
  display: flex;
  gap: 10px;
}

/* ==========================================
   4. FLOATING MUSIC PLAYER DOCK
   ========================================== */
.music-player-bar {
  position: fixed;
  bottom: 20px;
  right: 24px;
  z-index: 1000;
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 10px 20px;
  background: rgba(18, 16, 38, 0.92);
  backdrop-filter: blur(20px);
  border: 1px solid var(--glass-border);
  border-radius: 30px;
  box-shadow: 0 10px 32px rgba(0, 0, 0, 0.45);
}

@media (max-width: 600px) {
  .music-player-bar {
    bottom: 12px;
    right: 12px;
    left: 12px;
    justify-content: space-between;
  }
}

.music-title {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.82rem;
  font-weight: 600;
  white-space: nowrap;
}

.music-wave-icon {
  font-size: 1.1rem;
}

.music-controls {
  display: flex;
  align-items: center;
  gap: 10px;
}

.sound-select {
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid var(--glass-border);
  color: var(--text-primary);
  border-radius: 16px;
  padding: 5px 10px;
  font-size: 0.78rem;
  outline: none;
  cursor: pointer;
}

.sound-select option {
  background: #111;
  color: #fff;
}

.volume-slider {
  width: 60px;
  accent-color: var(--accent-color);
  cursor: pointer;
}

/* Toast Notifications */
#toast-container {
  position: fixed;
  top: 20px;
  right: 20px;
  z-index: 10000;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.toast {
  background: rgba(20, 18, 38, 0.96);
  backdrop-filter: blur(16px);
  border: 1px solid var(--glass-border);
  border-left: 3px solid var(--accent-color);
  padding: 10px 18px;
  border-radius: var(--radius-md);
  color: var(--text-primary);
  font-size: 0.85rem;
  display: flex;
  align-items: center;
  gap: 8px;
  box-shadow: 0 6px 22px rgba(0,0,0,0.35);
  animation: slideIn 0.3s ease;
}

@keyframes slideIn {
  from { transform: translateX(100%); opacity: 0; }
  to { transform: translateX(0); opacity: 1; }
}

/* Modal Overlay System */
.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.65);
  backdrop-filter: blur(8px);
  z-index: 9000;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  visibility: hidden;
  transition: all 0.25s ease;
  padding: 20px;
}

.modal-overlay.show {
  opacity: 1;
  visibility: visible;
}

.modal-content {
  width: 100%;
  max-width: 480px;
}

.modal-header {
  margin-bottom: 14px;
}

.modal-title {
  font-size: 1.1rem;
  font-weight: 700;
}

/* Footer */
.app-footer {
  text-align: center;
  color: var(--text-muted);
  font-size: 0.8rem;
  padding: 16px 0;
}

/* Scrollbar */
::-webkit-scrollbar {
  width: 6px;
  height: 6px;
}
::-webkit-scrollbar-track {
  background: rgba(0,0,0,0.1);
}
::-webkit-scrollbar-thumb {
  background: rgba(255,255,255,0.15);
  border-radius: 3px;
}
::-webkit-scrollbar-thumb:hover {
  background: var(--accent-color);
}
