/* ============================================================================ 
   ZENITH COMPANION - PREMIUM DESIGN SYSTEM
   Material Design 3 + Glassmorphism + Pixel-Perfect Aesthetics
   ============================================================================ */

:root {
  /* Core Colors (Vibrant Palette) */
  --primary: #8B5CF6;
  --primary-light: rgba(139, 92, 246, 0.12);
  --primary-dark: #7C3AED;
  --secondary: #FB923C;
  --success: #10B981;
  --mint: #10B981;
  --peach: #F97316;
  --lavender: #8B5CF6;
  --bubblegum: #EC4899;
  --sunsky: #0EA5E9;
  --lemon: #EAB308;
  --candy: #F43F5E;
  
  /* Text & Surface (Light Mode) */
  --text-primary: #1F2937;
  --text-secondary: #4B5563;
  --bg: #FAFAF9;
  --card-bg: rgba(255, 255, 255, 0.85);
  --glass-bg: rgba(255, 255, 255, 0.75);
  --glass-border: rgba(255, 255, 255, 0.4);
  --border: #F3F4F6;
  
  /* Effects */
  --radius: 28px;
  --radius-sm: 14px;
  --blur: 16px;
  --shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.05), 0 2px 4px -1px rgba(0, 0, 0, 0.03);
  --shadow-lg: 0 20px 25px -5px rgba(0, 0, 0, 0.08), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
  --shadow-glass: 0 8px 32px 0 rgba(31, 38, 135, 0.15);
  
  transition: all 0.3s ease;
}

/* ============================================================================ 
   TRUE DARK MODE - PREMIUM REFACTOR
   Instead of using brightness(0.55), we use real dark color variables.
   ============================================================================ */
:root.night-mode {
  --bg: #0F172A; /* Deep Space Blue */
  --card-bg: rgba(30, 41, 59, 0.7);
  --glass-bg: rgba(30, 41, 59, 0.65);
  --glass-border: rgba(255, 255, 255, 0.1);
  --text-primary: #F8FAFC;
  --text-secondary: #94A3B8;
  --border: #334155;
  --primary-light: rgba(139, 92, 246, 0.25);
  --shadow-lg: 0 20px 25px -5px rgba(0, 0, 0, 0.4);
}

/* Themes (Refined) */
body.theme-pastel {
  --primary: #FFB7C5; --primary-dark: #FF9AA2; --bg: #FFF5F7; --card-bg: rgba(255, 255, 255, 0.9);
  --text-primary: #5F4B8B; --text-secondary: #A0937D; --border: #FEE1E8;
}
body.theme-moomin {
  --primary: #5A8D8C; --primary-dark: #3E605F; --bg: #F0EAD6; --card-bg: rgba(249, 247, 240, 0.9);
  --text-primary: #3E3E3E; --text-secondary: #797979; --border: #DCD7C9;
}
body.theme-zelda {
  --primary: #D4AF37; --primary-dark: #B8860B; --bg: #0C1E12; --card-bg: rgba(26, 47, 35, 0.8);
  --text-primary: #FAFAF9; --text-secondary: #A8C69F; --border: #2D4F3C;
}
body.theme-pokemon {
  --primary: #FF0000; --primary-dark: #CC0000; --bg: #F0F0F0; --card-bg: rgba(255, 255, 255, 0.9);
  --text-primary: #3B4CCA; --text-secondary: #7F7F7F; --border: #DEDEDE;
}
body.theme-adventure {
  --primary: #F9D423; --primary-dark: #E2BC1B; --bg: #E0FFFF; --card-bg: rgba(255, 255, 255, 0.9);
  --text-primary: #2C3E50; --text-secondary: #34495E; --border: #BBD2C5;
}

/* ============================================================================ 
   CORE LAYOUT & TYPOGRAPHY
   ============================================================================ */

* { margin: 0; padding: 0; box-sizing: border-box; -webkit-tap-highlight-color: transparent; }

body {
  font-family: 'Outfit', -apple-system, BlinkMacSystemFont, sans-serif;
  background-color: var(--bg);
  color: var(--text-primary);
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
  overflow-x: hidden;
  transition: background-color 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

.container {
  max-width: 520px;
  margin: 0 auto;
  padding: 1.5rem;
  width: 100%;
}

/* Glassmorphism Header */
.header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 2rem;
  padding: 1.25rem 1.75rem;
  position: sticky;
  top: 10px;
  z-index: 100;
  background: var(--glass-bg);
  backdrop-filter: blur(var(--blur));
  -webkit-backdrop-filter: blur(var(--blur));
  border: 1px solid var(--glass-border);
  border-radius: 20px;
  box-shadow: var(--shadow);
  min-height: 120px;
}

/* Header Slider container - Grid approach for overlapping slides */
.header-content-wrapper {
  display: grid;
  grid-template-columns: 1fr;
  grid-template-rows: 1fr;
  flex: 1; /* Allow to fill space on the left */
  align-items: center; /* Center slides vertically */
}

/* Header slide logic */
.header-slide {
  grid-column: 1;
  grid-row: 1;
  opacity: 0;
  visibility: hidden;
  transform: translateY(10px);
  transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  pointer-events: none;
  display: flex;
  flex-direction: column;
  justify-content: center; 
}

.header-slide.active {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
  pointer-events: auto;
}

/* Event mini layout */
.header-event-mini {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding-right: 1rem;
}

.event-label {
  font-size: 11px;
  font-weight: 800;
  color: var(--primary);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin-bottom: 0.35rem;
}

.event-title {
  font-size: 20px;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 0.25rem;
  line-height: 1.15;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.event-time {
  font-size: 14px;
  font-weight: 500;
  color: var(--text-secondary);
}

.header-time {
  font-size: 64px;
  font-weight: 200;
  letter-spacing: -3px;
  line-height: .9;
  font-variant-numeric: tabular-nums;
}

.header-date {
  font-size: 13px;
  color: var(--text-secondary);
  font-weight: 500;
  margin-top: 0.25rem;
  text-transform: capitalize;
}

.clock-style-btn {
  position: relative;
  background: var(--primary); color: white;
  border: none; width: 32px; height: 32px;
  border-radius: 10px; cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  font-size: 14px; transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  box-shadow: 0 4px 10px var(--primary-light);
  z-index: 10;
}
.clock-style-btn:hover { transform: scale(1.1) rotate(15deg); filter: brightness(1.1); }

.header-weather {
  text-align: right;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 4px;
  padding-top: 5px;
}

#temperature { font-weight: 800; font-size: 18px; color: var(--primary); }
#weatherIcon { font-size: 22px; }

/* Studio Button */
.studio-btn {
  background: transparent;
  border: 1.5px solid var(--border);
  color: var(--text-secondary);
  width: 28px;
  height: 28px;
  border-radius: 8px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
  transition: all 0.3s;
  margin-bottom: 6px;
}
.studio-btn:hover { border-color: var(--primary); color: var(--primary); transform: scale(1.1); }
.studio-btn.active { background: var(--primary); color: white; border-color: var(--primary); box-shadow: 0 4px 10px var(--primary-light); }

/* Flip/Specialized Clock Styles */
.clock-wrapper { position: relative; display: flex; flex-direction: column; align-items: flex-start; justify-content: center; }

.cs-flip .flip-clock { display: flex !important; gap: 4px; align-items: center; }
.cs-flip .header-time { display: none; }
.flip-clock { display: none; margin-bottom: 0.5rem; }

.flip-digit {
  position: relative; width: 42px; height: 60px;
  background: #1e293b; color: #f8fafc;
  border-radius: 8px; font-size: 44px;
  font-family: 'Bebas Neue', sans-serif;
  line-height: 60px; text-align: center;
  perspective: 200px; box-shadow: 0 4px 10px rgba(0,0,0,0.3);
}

.fc-top, .fc-bot {
  position: absolute; left: 0; width: 100%; height: 50%;
  overflow: hidden; background: inherit; border-radius: 8px;
}
.fc-top { top: 0; border-bottom: 1px solid rgba(255,255,255,0.1); border-radius: 8px 8px 0 0; }
.fc-bot { bottom: 0; border-radius: 0 0 8px 8px; display: flex; align-items: flex-end; justify-content: center; }

.fc-inner { width: 100%; height: 120px; line-height: 120px; }
.fc-top .fc-inner { line-height: 60px; }
.fc-bot .fc-inner { line-height: 60px; }

.fc-panel-top, .fc-panel-bot {
  position: absolute; left: 0; width: 100%; height: 50%;
  background: inherit; backface-visibility: hidden; z-index: 5;
  overflow: hidden; border-radius: inherit;
}
.fc-panel-top {
  top: 0; transform-origin: bottom; animation: flipTop 0.6s ease-in forwards;
  border-bottom: 1px solid rgba(255,255,255,0.1);
}
.fc-panel-bot {
  bottom: 0; transform-origin: top; transform: rotateX(90deg);
  animation: flipBot 0.6s ease-out 0.3s forwards;
  display: flex; align-items: flex-end; justify-content: center;
}

@keyframes flipTop { to { transform: rotateX(-90deg); } }
@keyframes flipBot { to { transform: rotateX(0deg); } }

.flip-sep { font-size: 32px; font-weight: 800; color: var(--primary); align-self: center; margin: 0 2px; }

/* LED & Neon Styles */
.cs-led .header-time { font-family: 'DSEG7-Classic', monospace; color: #ef4444; text-shadow: 0 0 10px rgba(239, 68, 68, 0.4); }
.cs-neon .header-time { 
    color: #fff; text-shadow: 0 0 5px #fff, 0 0 10px var(--primary), 0 0 20px var(--primary), 0 0 30px var(--primary);
    font-weight: 600; font-family: 'Share Tech Mono', monospace;
}

/* ============================================================================ 
   PET SYSTEM UI
   ============================================================================ */

.pet-container {
  background: var(--card-bg);
  backdrop-filter: blur(var(--blur));
  border: 2px solid var(--glass-border);
  border-radius: var(--radius);
  padding: 2rem;
  margin: 1.5rem 0;
  text-align: center;
  box-shadow: var(--shadow-lg);
  position: relative;
  overflow: hidden;
  min-height: 280px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  animation: floatMain 8s ease-in-out infinite;
}

@keyframes floatMain {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-10px); }
}

.revive-overlay {
  position: absolute; inset: 0; z-index: 100;
  background: rgba(15, 23, 42, 0.85); backdrop-filter: blur(12px);
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  padding: 2rem; color: white; border-radius: inherit;
  animation: fadeIn 0.5s ease;
}

.revive-title { font-size: 32px; font-weight: 900; color: #ef4444; margin-bottom: 1rem; letter-spacing: 2px; }
.revive-text { font-size: 15px; opacity: 0.9; margin-bottom: 2rem; max-width: 240px; }
.revive-btn {
  background: var(--primary); color: white; border: none;
  padding: 1rem 2rem; border-radius: 16px; font-weight: 800;
  cursor: pointer; box-shadow: 0 10px 20px var(--primary-light);
  transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}
.revive-btn:hover { transform: scale(1.05) translateY(-3px); box-shadow: 0 15px 30px var(--primary-light); }

#bgCanvas { position: absolute; top: 0; left: 0; width: 100%; height: 100%; z-index: 0; pointer-events: none; }
.pet-content { position: relative; z-index: 1; }

.pet-canvas-container {
  width: 160px;
  height: 180px;
  margin: 0 auto 1.5rem;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  transition: filter 0.8s ease, transform 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

canvas#petCanvas {
  display: block;
  image-rendering: pixelated;
  cursor: pointer;
  transition: transform 0.1s ease-out;
}

#petCanvas:active { transform: scale(0.9) translateY(6px); }

.pet-mood {
  font-size: 18px;
  font-weight: 800;
  color: var(--primary);
  margin-bottom: 0.5rem;
  letter-spacing: -0.5px;
}

.pet-status {
  font-size: 14px;
  color: var(--text-secondary);
  margin-bottom: 1.5rem;
  font-weight: 500;
}

/* Need Bars (Modernized) */
.pet-needs {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 1rem;
  width: 100%;
  max-width: 380px;
}

.need-bar { flex: 1; }

.need-bar-progress {
  width: 100%;
  height: 8px;
  background: rgba(0, 0, 0, 0.05);
  border-radius: 10px;
  overflow: hidden;
  margin-top: 4px;
}

:root.night-mode .need-bar-progress { background: rgba(255, 255, 255, 0.1); }

.need-bar-fill {
  height: 100%;
  border-radius: 10px;
  transition: width 0.8s cubic-bezier(0.34, 1.56, 0.64, 1);
}

#hungerFill { background: linear-gradient(90deg, #F97316, #FB923C); }
#sleepFill  { background: linear-gradient(90deg, #8B5CF6, #A78BFA); }
#happyFill  { background: linear-gradient(90deg, #10B981, #34D399); }

.need-bar-fill.critical {
  animation: criticalPulse 0.4s ease-in-out infinite alternate;
}

@keyframes criticalPulse {
  from { filter: brightness(1) saturate(1); }
  to { filter: brightness(1.2) saturate(1.2); box-shadow: 0 0 10px rgba(239, 68, 68, 0.5); }
}

/* Action Buttons */
.pet-action-buttons {
  display: flex;
  gap: 0.75rem;
  margin-top: 2rem;
  width: 100%;
}

.pet-action-btn {
  flex: 1;
  padding: 0.85rem;
  border: 1px solid var(--glass-border);
  background: var(--glass-bg);
  backdrop-filter: blur(8px);
  border-radius: 16px;
  cursor: pointer;
  font-size: 13px;
  font-weight: 700;
  color: var(--text-primary);
  transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow: var(--shadow);
}

.pet-action-btn:hover {
  transform: translateY(-3px);
  background: var(--primary);
  color: white;
  border-color: var(--primary);
  box-shadow: 0 8px 15px var(--primary-light);
}

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

/* ============================================================================ 
   FOCUS SYSTEM & GOALS
   ============================================================================ */

.focus-card {
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
  border-radius: var(--radius);
  padding: 2rem;
  margin: 1.5rem 0;
  text-align: center;
  color: white;
  box-shadow: 0 20px 40px -10px var(--primary-light);
  border: 1px solid rgba(255,255,255,0.2);
}

.focus-label {
  color: rgba(255, 255, 255, 0.8);
  font-size: 12px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.focus-timer {
  font-size: 64px;
  font-family: 'Share Tech Mono', monospace;
  font-weight: 400;
  margin: 1rem 0;
  letter-spacing: 2px;
}

.focus-btn {
  background: white;
  color: var(--primary);
  border: none;
  padding: 1rem 2.5rem;
  border-radius: 20px;
  font-weight: 800;
  font-size: 16px;
  cursor: pointer;
  transition: all 0.3s;
  box-shadow: 0 4px 15px rgba(0,0,0,0.1);
}

.focus-btn:hover { transform: scale(1.05); box-shadow: 0 8px 25px rgba(0,0,0,0.2); }
.focus-btn.stop { background: #fee2e2; color: #ef4444; }

/* Daily Goal Banner */
.daily-goal-banner {
  background: var(--primary-light);
  border: 1px solid var(--glass-border);
  padding: 1.5rem;
  border-radius: 24px;
  margin-bottom: 2rem;
  position: relative;
  backdrop-filter: blur(10px);
  box-shadow: var(--shadow-glass);
}

.daily-goal-label {
  font-size: 11px;
  font-weight: 800;
  color: var(--primary);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin-bottom: 0.75rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.daily-goal-input {
  width: 100%;
  background: transparent;
  border: none;
  font-size: 18px;
  color: var(--text-primary);
  font-weight: 600;
  padding: 0;
  outline: none;
}

/* ============================================================================ 
   TASKS & SECTION WRAPPERS
   ============================================================================ */

.tasks-section, .calendar-section {
  margin-bottom: 3rem;
  background: var(--card-bg);
  padding: 1.5rem;
  border-radius: var(--radius);
  border: 1px solid var(--glass-border);
  backdrop-filter: blur(8px);
  position: relative;
}

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

.btn-sync {
  background: var(--primary);
  color: white;
  border: none;
  padding: 0.5rem 1rem;
  border-radius: 12px;
  font-size: 12px;
  cursor: pointer;
  font-weight: 700;
  transition: all 0.2s;
  box-shadow: 0 4px 10px var(--primary-light);
}

.btn-sync:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 15px var(--primary-light);
}

.input-section {
  display: flex;
  gap: 0.75rem;
  margin-bottom: 2rem;
  background: transparent;
  border: none;
  padding: 0;
}

#taskInput {
  flex: 1;
  background: var(--card-bg);
  border: 2px solid var(--border);
  border-radius: 20px;
  padding: 1rem 1.5rem;
  font-size: 16px;
  color: var(--text-primary);
  outline: none;
  box-shadow: var(--shadow);
  transition: all 0.3s ease;
}

#taskInput:focus { border-color: var(--primary); transform: translateY(-2px); box-shadow: var(--shadow-lg); }

#addTaskBtn {
  background: var(--primary);
  color: white;
  border: none;
  width: 52px;
  height: 52px;
  border-radius: 20px;
  font-size: 24px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 10px 20px -5px var(--primary-light);
  transition: all 0.2s;
}

#addTaskBtn:active { transform: scale(0.9); }

.task-list { display: flex; flex-direction: column; gap: 0.75rem; }

.task-loading {
  color: var(--text-secondary);
  font-size: 14px;
  padding: 1rem;
  font-style: italic;
}

.task {
  background: var(--card-bg);
  border: 1px solid var(--border);
  border-radius: 22px;
  padding: 1.25rem;
  display: flex;
  align-items: center;
  gap: 1rem;
  cursor: pointer;
  transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.task:hover {
  transform: scale(1.03) translateX(8px);
  border-color: var(--primary);
  box-shadow: var(--shadow-lg);
}

.task.completed { opacity: 0.5; filter: grayscale(0.5); }

.task-checkbox {
  width: 24px;
  height: 24px;
  border: 2.5px solid var(--border);
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  font-size: 14px;
}

.task.completed .task-checkbox {
  background: var(--success);
  border-color: var(--success);
  transform: scale(1.1) rotate(5deg);
  color: white;
}

/* ============================================================================ 
   MODALS & FAB (Premium In-Depth)
   ============================================================================ */

.modal {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.4);
  backdrop-filter: blur(8px);
  z-index: 2000;
  align-items: flex-end; /* Mobile Bottom Sheet vibe */
  justify-content: center;
}

@media (min-width: 600px) { .modal { align-items: center; } }

.modal.active { display: flex; animation: fadeIn 0.3s ease; }

.modal-content {
  background: var(--glass-bg);
  backdrop-filter: blur(32px);
  border: 1px solid var(--glass-border);
  border-radius: 40px;
  padding: 2.5rem;
  width: 100%;
  max-width: 480px;
  max-height: 85vh;
  overflow-y: auto;
  box-shadow: 0 40px 80px rgba(0,0,0,0.4);
  position: relative;
  transform: translateY(100%);
  animation: slideUp 0.6s cubic-bezier(0.2, 0.8, 0.2, 1) forwards;
}

.settings-group { margin-bottom: 2rem; }
.settings-label { 
  display: block; font-size: 11px; font-weight: 800; color: var(--text-secondary); 
  text-transform: uppercase; letter-spacing: 1px; margin-bottom: 0.75rem; 
}
.settings-input {
  width: 100%; background: var(--card-bg); border: 1.5px solid var(--border);
  border-radius: 16px; padding: 0.85rem 1.25rem; font-family: inherit; font-size: 15px;
  color: var(--text-primary); transition: all 0.3s; box-shadow: var(--shadow);
}
.settings-input:focus { border-color: var(--primary); outline: none; box-shadow: 0 0 15px var(--primary-light); }

.skin-selector { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 0.5rem; }
.skin-option {
  width: 44px; height: 44px; border-radius: 14px; cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  border: 2px solid transparent; transition: all 0.3s;
}
.skin-option:hover { transform: scale(1.1); }
.skin-option.active { border-color: var(--primary); transform: scale(1.1); box-shadow: 0 5px 15px var(--primary-light); }

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

.modal-close {
  position: absolute;
  top: 25px;
  right: 25px;
  background: var(--primary-light);
  color: var(--primary);
  border: none;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  transition: all 0.2s;
}

.modal-close:hover { transform: rotate(90deg); background: var(--primary); color: white; }

/* FAB Menu System */
.fab-container {
  position: fixed;
  bottom: 2.5rem;
  right: 2rem;
  z-index: 1500;
  display: flex;
  flex-direction: column-reverse;
  align-items: flex-end;
  gap: 1.25rem;
}

.fab-main {
  width: 72px;
  height: 72px;
  background: var(--primary);
  color: white;
  border-radius: 24px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 36px;
  box-shadow: 0 15px 35px var(--primary-light);
  border: none;
  cursor: pointer;
  transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.fab-main.active { transform: rotate(45deg); background: #f43f5e; box-shadow: 0 10px 20px rgba(244, 63, 94, 0.3); }

.fab-menu {
  display: none;
  flex-direction: column;
  gap: 0.75rem;
  align-items: center;
}

.fab-menu.active { display: flex; }

.fab-item {
  width: 56px;
  height: 56px;
  border-radius: 18px;
  background: var(--glass-bg);
  backdrop-filter: blur(10px);
  border: 1px solid var(--glass-border);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 24px;
  box-shadow: var(--shadow-glass);
  cursor: pointer;
  transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  opacity: 0;
  transform: translateY(30px) scale(0.5);
}

.fab-menu.active .fab-item {
  opacity: 1;
  transform: translateY(0) scale(1);
}

.fab-menu.active .fab-item:nth-child(1) { transition-delay: 0.1s; }
.fab-menu.active .fab-item:nth-child(2) { transition-delay: 0.2s; }
.fab-menu.active .fab-item:nth-child(3) { transition-delay: 0.3s; }

/* ============================================================================ 
   ADDITIONAL UI & RESPONSIVE
   ============================================================================ */

.section-title { font-size: 11px; font-weight: 800; color: var(--text-secondary); text-transform: uppercase; letter-spacing: 0.1em; margin-bottom: 1.25rem; }

/* Calendar Controls Styling */
.calendar-controls { display: flex; gap: 8px; margin-bottom: 1.5rem; flex-wrap: wrap; }
.calendar-control-btn {
  padding: 0.6rem 1rem; border-radius: 12px; border: 1.5px solid var(--border);
  background: transparent; color: var(--text-secondary); font-size: 13px; font-weight: 600;
  cursor: pointer; transition: all 0.3s;
}
.calendar-control-btn.active {
  background: var(--primary-light); border-color: var(--primary); color: var(--primary);
  box-shadow: 0 4px 10px var(--primary-light);
}

.event-item {
  background: var(--glass-bg); border: 1px solid var(--glass-border);
  border-radius: 20px; padding: 1.25rem; margin-bottom: 1rem;
  position: relative; overflow: hidden; transition: all 0.3s;
}
.event-item:hover { transform: scale(1.02); box-shadow: var(--shadow-glass); }
.event-time-badge { 
  display: inline-block; padding: 4px 10px; background: var(--primary); 
  color: white; border-radius: 8px; font-size: 11px; font-weight: 800; margin-bottom: 0.75rem;
}
.event-title-text { font-weight: 700; color: var(--text-primary); margin-bottom: 0.4rem; }
.event-details { font-size: 13px; color: var(--text-secondary); font-weight: 500; }

::-webkit-scrollbar { width: 6px; }
::-webkit-scrollbar-thumb { background: var(--primary-light); border-radius: 10px; }
::-webkit-scrollbar-thumb:hover { background: var(--primary); }

.toast { 
  border-radius: 20px !important; 
  padding: 1rem 1.5rem !important; 
  backdrop-filter: blur(20px) !important;
  border: 1px solid var(--glass-border) !important;
  box-shadow: 0 20px 40px rgba(0,0,0,0.2) !important;
}

.hidden {
  display: none !important;
}

.install-prompt {
  position: fixed;
  top: 20px;
  left: 20px;
  background: var(--glass-bg);
  backdrop-filter: blur(var(--blur));
  -webkit-backdrop-filter: blur(var(--blur));
  border: 1px solid var(--glass-border);
  border-radius: 16px;
  padding: 1.25rem 1.5rem;
  box-shadow: var(--shadow-lg);
  z-index: 1000;
  color: white;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1.5rem;
  max-width: 400px;
  animation: slideDown 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.install-prompt button {
  padding: 0.5rem 1rem;
  border: none;
  border-radius: 8px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
}

.install-prompt #installBtn {
  background: var(--primary);
  color: white;
}

.install-prompt #installBtn:hover {
  transform: scale(1.05);
  box-shadow: 0 8px 16px var(--primary-light);
}

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

@media (max-width: 480px) {
  .container { padding: 1rem; }
  .header-time { font-size: 52px; }
  .modal-content { padding: 2rem 1.5rem; }

  .install-prompt {
    top: 10px;
    left: 10px;
    right: 10px;
    max-width: none;
    padding: 1rem;
  }
}
