/* ==========================================================================
   Ritual - Premium CSS Design System
   ========================================================================== */

/* Typography & Google Fonts */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700&family=Outfit:wght@400;500;600;700;800&display=swap');

:root {
  /* HSL Color Palette */
  --bg-dark: hsl(222, 47%, 4%);
  --bg-nav: hsla(222, 47%, 6%, 0.85);
  --bg-card: hsla(223, 40%, 12%, 0.45);
  --bg-card-hover: hsla(223, 40%, 16%, 0.6);
  --border-color: hsla(217, 91%, 60%, 0.08);
  --border-hover: hsla(217, 91%, 60%, 0.2);
  
  --text-main: hsl(210, 40%, 98%);
  --text-muted: hsl(215, 20%, 65%);
  --text-dim: hsl(215, 15%, 45%);
  
  /* Vibrant Accents */
  --accent-primary: hsl(250, 89%, 65%);
  --accent-primary-glow: hsla(250, 89%, 65%, 0.15);
  
  /* Habit Categories Colors */
  --cat-health: hsl(142, 72%, 50%);
  --cat-health-glow: hsla(142, 72%, 50%, 0.25);
  --cat-mind: hsl(189, 94%, 48%);
  --cat-mind-glow: hsla(189, 94%, 48%, 0.25);
  --cat-fitness: hsl(350, 89%, 60%);
  --cat-fitness-glow: hsla(350, 89%, 60%, 0.25);
  --cat-work: hsl(38, 92%, 50%);
  --cat-work-glow: hsla(38, 92%, 50%, 0.25);
  --cat-finance: hsl(280, 80%, 60%);
  --cat-finance-glow: hsla(280, 80%, 60%, 0.25);
  --cat-creative: hsl(320, 80%, 55%);
  --cat-creative-glow: hsla(320, 80%, 55%, 0.25);
  --cat-indigo: hsl(250, 89%, 65%);
  --cat-indigo-glow: hsla(250, 89%, 65%, 0.25);
  --cat-fuchsia: hsl(295, 80%, 55%);
  --cat-fuchsia-glow: hsla(295, 80%, 55%, 0.25);
  --cat-violet: hsl(270, 85%, 60%);
  --cat-violet-glow: hsla(270, 85%, 60%, 0.25);
  --cat-orange: hsl(24, 95%, 53%);
  --cat-orange-glow: hsla(24, 95%, 53%, 0.25);
  --cat-teal: hsl(172, 66%, 50%);
  --cat-teal-glow: hsla(172, 66%, 50%, 0.25);
  --cat-lime: hsl(84, 75%, 48%);
  --cat-lime-glow: hsla(84, 75%, 48%, 0.25);
  --cat-slate: hsl(215, 20%, 55%);
  --cat-slate-glow: hsla(215, 20%, 55%, 0.25);
  --cat-gold: hsl(48, 95%, 48%);
  --cat-gold-glow: hsla(48, 95%, 48%, 0.25);
  
  /* Utility Colors */
  --success: hsl(142, 72%, 50%);
  --warning: hsl(38, 92%, 50%);
  --danger: hsl(0, 84%, 60%);
  
  /* Transitions & Radii */
  --radius-lg: 16px;
  --radius-md: 12px;
  --radius-sm: 8px;
  --radius-full: 9999px;
  
  --transition-fast: 0.15s cubic-bezier(0.4, 0, 0.2, 1);
  --transition-normal: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  --transition-slow: 0.5s cubic-bezier(0.4, 0, 0.2, 1);
  
  --shadow-sm: 0 2px 8px -2px rgba(0, 0, 0, 0.5);
  --shadow-md: 0 4px 20px -4px rgba(0, 0, 0, 0.7);
  --shadow-lg: 0 10px 30px -10px rgba(0, 0, 0, 0.9);
  --glass-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.37);
}

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

html, body {
  width: 100%;
  height: 100%;
  background-color: var(--bg-dark);
  color: var(--text-main);
  font-family: 'Inter', system-ui, sans-serif;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

h1, h2, h3, h4, h5, h6 {
  font-family: 'Outfit', sans-serif;
  font-weight: 600;
  letter-spacing: -0.02em;
}

button, input, select, textarea {
  font-family: inherit;
  font-size: inherit;
  color: inherit;
  background: none;
  border: none;
  outline: none;
}

button {
  cursor: pointer;
}

/* Background Gradients */
.bg-glows {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  z-index: -1;
  overflow: hidden;
  pointer-events: none;
}

.glow-1 {
  position: absolute;
  top: -10%;
  left: 20%;
  width: 600px;
  height: 600px;
  background: radial-gradient(circle, hsla(250, 89%, 65%, 0.12) 0%, transparent 70%);
  filter: blur(80px);
  animation: float 20s infinite alternate ease-in-out;
}

.glow-2 {
  position: absolute;
  bottom: -10%;
  right: 15%;
  width: 500px;
  height: 500px;
  background: radial-gradient(circle, hsla(189, 94%, 48%, 0.08) 0%, transparent 70%);
  filter: blur(80px);
  animation: float 25s infinite alternate-reverse ease-in-out;
}

@keyframes float {
  0% { transform: translate(0, 0) scale(1); }
  100% { transform: translate(40px, 30px) scale(1.1); }
}

/* ==========================================================================
   Authentication Screens
   ========================================================================== */
.auth-container {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 100vh;
  padding: 20px;
  z-index: 10;
  position: relative;
}

.auth-card {
  width: 100%;
  max-width: 440px;
  background: var(--bg-card);
  backdrop-filter: blur(16px);
  border: 1px solid var(--border-color);
  box-shadow: var(--glass-shadow);
  border-radius: var(--radius-lg);
  padding: 40px;
  transition: transform var(--transition-normal), box-shadow var(--transition-normal);
}

.auth-card:hover {
  border-color: var(--border-hover);
  box-shadow: 0 10px 40px -10px hsla(250, 89%, 65%, 0.1);
}

.auth-header {
  text-align: center;
  margin-bottom: 30px;
}

.auth-logo-container {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  margin-bottom: 12px;
}

.auth-logo-icon {
  width: 40px;
  height: 40px;
  color: var(--accent-primary);
  filter: drop-shadow(0 0 8px var(--accent-primary-glow));
}

.auth-logo-text {
  font-family: 'Outfit', sans-serif;
  font-size: 2.4rem;
  font-weight: 800;
  background: linear-gradient(135deg, var(--text-main) 0%, var(--accent-primary) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  line-height: 1;
}

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

.form-group {
  margin-bottom: 20px;
  position: relative;
}

.form-label {
  display: block;
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--text-muted);
  margin-bottom: 8px;
  transition: color var(--transition-fast);
}

.input-wrapper {
  position: relative;
  display: flex;
  align-items: center;
}

.input-icon {
  position: absolute;
  left: 14px;
  width: 20px;
  height: 20px;
  color: var(--text-dim);
  pointer-events: none;
  transition: color var(--transition-fast);
}

.form-input {
  width: 100%;
  padding: 12px 16px 12px 46px;
  background: rgba(15, 23, 42, 0.6);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  color: var(--text-main);
  transition: border-color var(--transition-fast), box-shadow var(--transition-fast);
}

.form-input:focus {
  border-color: var(--accent-primary);
  box-shadow: 0 0 0 3px var(--accent-primary-glow);
}

.form-input:focus + .input-icon {
  color: var(--accent-primary);
}

.auth-btn {
  width: 100%;
  padding: 14px;
  background: linear-gradient(135deg, var(--accent-primary) 0%, hsl(265, 89%, 60%) 100%);
  border-radius: var(--radius-md);
  font-weight: 600;
  font-size: 1rem;
  margin-top: 10px;
  box-shadow: 0 4px 15px -3px hsla(250, 89%, 65%, 0.4);
  transition: transform var(--transition-fast), box-shadow var(--transition-fast), filter var(--transition-fast);
}

.auth-btn:hover {
  filter: brightness(1.1);
  box-shadow: 0 6px 20px -3px hsla(250, 89%, 65%, 0.6);
  transform: translateY(-1px);
}

.auth-btn:active {
  transform: translateY(1px);
}

.auth-footer {
  text-align: center;
  margin-top: 25px;
  font-size: 0.9rem;
  color: var(--text-muted);
}

.auth-toggle-link {
  color: var(--accent-primary);
  font-weight: 500;
  text-decoration: none;
  margin-left: 5px;
}

.auth-toggle-link:hover {
  text-decoration: underline;
}

/* Error/Success messages */
.alert {
  padding: 12px 16px;
  border-radius: var(--radius-md);
  font-size: 0.9rem;
  margin-bottom: 20px;
  display: flex;
  align-items: center;
  gap: 10px;
  border: 1px solid transparent;
}

.alert-danger {
  background: hsla(0, 84%, 60%, 0.1);
  border-color: hsla(0, 84%, 60%, 0.2);
  color: hsl(0, 84%, 75%);
}

.alert-success {
  background: hsla(142, 72%, 50%, 0.1);
  border-color: hsla(142, 72%, 50%, 0.2);
  color: hsl(142, 72%, 75%);
}

/* ==========================================================================
   Dashboard Shell Layout
   ========================================================================== */
.app-container {
  display: flex;
  min-height: 100vh;
  position: relative;
}

/* Sidebar Navigation */
.sidebar {
  width: 260px;
  background: var(--bg-nav);
  backdrop-filter: blur(20px);
  border-right: 1px solid var(--border-color);
  padding: 30px 20px;
  display: flex;
  flex-direction: column;
  position: fixed;
  top: 0;
  bottom: 0;
  left: 0;
  z-index: 100;
  transition: transform var(--transition-normal);
}

.logo-container {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 40px;
  padding-left: 10px;
}

.logo-icon {
  width: 28px;
  height: 28px;
  color: var(--accent-primary);
}

.logo-text {
  font-family: 'Outfit', sans-serif;
  font-size: 1.5rem;
  font-weight: 800;
  background: linear-gradient(135deg, var(--text-main) 0%, var(--accent-primary) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.nav-menu {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 8px;
  flex-grow: 1;
}

.nav-item button {
  width: 100%;
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 12px 16px;
  border-radius: var(--radius-md);
  color: var(--text-muted);
  font-weight: 500;
  font-size: 0.95rem;
  transition: all var(--transition-fast);
  text-align: left;
}

.nav-item button svg {
  width: 20px;
  height: 20px;
  transition: transform var(--transition-fast);
}

.nav-item button:hover {
  color: var(--text-main);
  background: rgba(255, 255, 255, 0.03);
}

.nav-item button:hover svg {
  transform: translateX(2px);
}

.nav-item.active button {
  color: var(--text-main);
  background: hsla(250, 89%, 65%, 0.15);
  border: 1px solid hsla(250, 89%, 65%, 0.25);
  box-shadow: 0 4px 15px -5px hsla(250, 89%, 65%, 0.3);
}

.nav-item.active button svg {
  color: var(--accent-primary);
}

/* User Profile Panel in Sidebar */
.user-panel {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px;
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  margin-top: auto;
}

.user-info {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
}

.user-avatar {
  width: 32px;
  height: 32px;
  border-radius: var(--radius-full);
  background: linear-gradient(135deg, var(--accent-primary) 0%, var(--cat-mind) 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-family: 'Outfit', sans-serif;
  color: #fff;
  font-size: 0.85rem;
  flex-shrink: 0;
}

.user-details {
  display: flex;
  flex-direction: column;
  min-width: 0;
}

.username-display {
  font-weight: 600;
  font-size: 0.9rem;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.logout-btn {
  color: var(--text-dim);
  padding: 6px;
  border-radius: var(--radius-sm);
  transition: all var(--transition-fast);
}

.logout-btn:hover {
  color: var(--danger);
  background: hsla(0, 84%, 60%, 0.1);
}

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

/* Main Dashboard Panel */
.main-content {
  flex-grow: 1;
  margin-left: 260px;
  padding: 40px;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  gap: 30px;
  width: calc(100% - 260px);
}

/* Header Area */
.app-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}

.header-title-container {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.view-title {
  font-size: 2.2rem;
  font-weight: 800;
  color: var(--text-main);
  font-family: 'Outfit', sans-serif;
}

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

/* Calendar Date Controls in Header (Only shown for Daily/Weekly) */
.date-selector {
  display: flex;
  align-items: center;
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 4px;
  gap: 4px;
}

.date-btn {
  padding: 8px 12px;
  border-radius: var(--radius-sm);
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--text-muted);
  transition: all var(--transition-fast);
}

.date-btn:hover {
  color: var(--text-main);
  background: rgba(255, 255, 255, 0.03);
}

.date-btn.active {
  color: var(--text-main);
  background: rgba(255, 255, 255, 0.08);
}

.date-nav-btn {
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-muted);
  border-radius: var(--radius-sm);
  transition: all var(--transition-fast);
}

.date-nav-btn:hover {
  color: var(--text-main);
  background: rgba(255, 255, 255, 0.04);
}

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

.current-date-text {
  font-weight: 600;
  font-size: 0.95rem;
  padding: 0 10px;
  min-width: 140px;
  text-align: center;
}

/* Dynamic View Switcher Container */
.view-section {
  display: none;
  animation: fadeIn var(--transition-normal) forwards;
  flex-grow: 1;
}

.view-section.active {
  display: flex;
  flex-direction: column;
  gap: 25px;
}

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

/* ==========================================================================
   DAILY VIEW: Habits Checklist & Cards
   ========================================================================== */
.daily-summary-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 20px 24px;
  background: var(--bg-card);
  backdrop-filter: blur(12px);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  gap: 20px;
}

.daily-progress-container {
  display: flex;
  flex-direction: column;
  gap: 8px;
  flex-grow: 1;
  max-width: 500px;
}

.daily-progress-text {
  display: flex;
  justify-content: space-between;
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--text-muted);
}

.progress-pct {
  color: var(--text-main);
  font-weight: 600;
}

.progress-bar-bg {
  width: 100%;
  height: 8px;
  background: rgba(255, 255, 255, 0.05);
  border-radius: var(--radius-full);
  overflow: hidden;
}

.progress-bar-fill {
  height: 100%;
  background: linear-gradient(90deg, var(--accent-primary) 0%, var(--cat-mind) 100%);
  border-radius: var(--radius-full);
  width: 0%;
  transition: width var(--transition-slow);
}

.add-habit-btn {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 12px 20px;
  background: var(--accent-primary);
  color: #fff;
  font-weight: 600;
  font-size: 0.95rem;
  border-radius: var(--radius-md);
  box-shadow: 0 4px 15px -3px hsla(250, 89%, 65%, 0.4);
  transition: all var(--transition-fast);
}

.add-habit-btn:hover {
  filter: brightness(1.1);
  box-shadow: 0 6px 20px -3px hsla(250, 89%, 65%, 0.6);
  transform: translateY(-1px);
}

.add-habit-btn svg {
  width: 20px;
  height: 20px;
}

/* Habits Grid */
.habits-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 20px;
}

/* 3D Flip Card Layout */
.habit-card-container {
  background: none;
  border: none;
  perspective: 1000px;
  height: 240px; /* consistent card height for 3D flip aspect ratio */
}

.habit-card-inner {
  position: relative;
  width: 100%;
  height: 100%;
  transition: transform 0.65s cubic-bezier(0.4, 0, 0.2, 1);
  transform-style: preserve-3d;
}

/* Flipped State Trigger */
.habit-card-container.flipped .habit-card-inner {
  transform: rotateY(180deg);
}

/* Front & Back Card Faces */
.habit-card-front, .habit-card-back {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  backface-visibility: hidden;
  -webkit-backface-visibility: hidden;
  border-radius: var(--radius-lg);
  border: 1px solid var(--border-color);
  padding: 16px 20px 14px 20px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 10px;
}

/* FRONT FACE (Incomplete / Active) */
.habit-card-front {
  background: var(--bg-card);
  backdrop-filter: blur(12px);
  z-index: 2;
  border-color: var(--habit-color-glow, var(--border-color));
  background: radial-gradient(circle at 100% 0%, var(--habit-color-glow, transparent) 0%, var(--bg-card) 60%);
  box-shadow: 0 4px 20px -4px rgba(0, 0, 0, 0.5), 0 0 10px -2px var(--habit-color-glow, transparent);
  transition: border-color var(--transition-fast), box-shadow var(--transition-fast), transform var(--transition-fast);
  cursor: pointer;
}

.habit-card-front::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 4px;
  height: 100%;
  background: var(--habit-color, var(--accent-primary));
  opacity: 0.7;
  border-top-left-radius: var(--radius-lg);
  border-bottom-left-radius: var(--radius-lg);
}

.habit-card-front:hover {
  border-color: var(--habit-color);
  transform: translateY(-3px);
  box-shadow: var(--shadow-md), 0 10px 30px -10px var(--habit-color-glow, var(--accent-primary-glow));
}

.habit-card-container:active .habit-card-front {
  transform: translateY(0);
}

/* BACK FACE (Completed / Flipped Achievement) */
.habit-card-back {
  background: linear-gradient(135deg, var(--habit-color-glow) 0%, rgba(8, 11, 17, 0.95) 100%);
  transform: rotateY(180deg);
  z-index: 1;
  border-color: var(--habit-color-glow);
  box-shadow: inset 0 0 20px 0 var(--habit-color-glow), 0 10px 30px -10px var(--habit-color-glow);
  align-items: center;
  justify-content: center;
  text-align: center;
}

.card-back-content {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 12px;
  width: 100%;
  height: 100%;
}

.success-icon-glow {
  display: flex;
  align-items: center;
  justify-content: center;
  animation: successIconPulse 2s infinite alternate ease-in-out;
}

@keyframes successIconPulse {
  0% { transform: scale(1); filter: drop-shadow(0 0 4px var(--habit-color)); }
  100% { transform: scale(1.15); filter: drop-shadow(0 0 16px var(--habit-color)); }
}

.lock-icon-glow {
  animation: lockIconPulse 2s infinite alternate ease-in-out;
}

@keyframes lockIconPulse {
  0% { transform: scale(1); filter: drop-shadow(0 0 4px var(--accent-primary)); }
  100% { transform: scale(1.08); filter: drop-shadow(0 0 16px var(--accent-primary)); }
}

.success-title {
  font-family: 'Outfit', sans-serif;
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--text-main);
  padding: 0 10px;
}

.success-streak-stat {
  font-size: 0.85rem;
  color: var(--text-muted);
  font-weight: 500;
}

.undo-completion-btn {
  margin-top: 5px;
  padding: 8px 16px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: var(--radius-sm);
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--text-muted);
  transition: all var(--transition-fast);
  cursor: pointer;
}

.undo-completion-btn:hover {
  background: rgba(255, 255, 255, 0.08);
  color: var(--text-main);
  border-color: rgba(255, 255, 255, 0.3);
}

/* Habit Card Header */
.habit-card-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
}

.habit-icon-container {
  width: 36px;
  height: 36px;
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--habit-color-glow);
  color: var(--habit-color);
  flex-shrink: 0;
  border: 1px solid var(--habit-color-glow);
  transition: all var(--transition-fast);
}

.habit-icon-container svg {
  width: 18px;
  height: 18px;
}

.habit-card.completed .habit-icon-container {
  background: rgba(255, 255, 255, 0.02);
  border-color: transparent;
  color: var(--text-dim);
}

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

.small-habit-icon svg {
  width: 15px;
  height: 15px;
}

.habit-meta {
  display: flex;
  flex-direction: column;
  gap: 6px;
  min-width: 0;
}

.habit-category-badge {
  display: inline-flex;
  align-self: flex-start;
  padding: 4px 10px;
  background: var(--habit-color-glow, var(--accent-primary-glow));
  color: var(--habit-color, var(--accent-primary));
  font-size: 0.75rem;
  font-weight: 600;
  border-radius: var(--radius-full);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.habit-title {
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--text-main);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  font-family: 'Outfit', sans-serif;
  transition: color var(--transition-fast);
}

.habit-desc {
  font-size: 0.82rem;
  color: var(--text-muted);
  line-height: 1.4;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  min-height: auto;
  max-height: 2.8em;
  margin: 0;
}

/* Habit Card Center: History dots & streaks */
.habit-stats-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-top: 1px solid rgba(255, 255, 255, 0.03);
  padding-top: 10px;
}

.habit-streak {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--text-muted);
}

.habit-streak svg {
  width: 16px;
  height: 16px;
  color: var(--text-dim);
}

.habit-streak.active-streak svg {
  color: hsl(38, 92%, 55%);
  filter: drop-shadow(0 0 4px hsla(38, 92%, 55%, 0.4));
  animation: pulseFlame 2s infinite alternate ease-in-out;
}

@keyframes pulseFlame {
  0% { transform: scale(1); }
  100% { transform: scale(1.15); }
}

.habit-streak.active-streak {
  color: hsl(38, 92%, 65%);
}

.past-days-tracker {
  display: flex;
  gap: 5px;
}

.past-day-dot {
  width: 18px;
  height: 18px;
  border-radius: var(--radius-full);
  background: rgba(255, 255, 255, 0.04);
  border: 1.5px solid rgba(255, 255, 255, 0.08);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.55rem;
  font-weight: 700;
  color: var(--text-dim);
  transition: all var(--transition-fast);
}

.past-day-dot.completed {
  background: var(--habit-color);
  border-color: var(--habit-color);
  color: #fff;
  box-shadow: 0 0 8px var(--habit-color-glow);
}

/* Habit Card Actions: Checkbox */
.habit-card-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-top: 1px solid rgba(255, 255, 255, 0.03);
  padding-top: 10px;
}

.habit-delete-btn {
  color: var(--text-dim);
  padding: 6px;
  border-radius: var(--radius-sm);
  transition: all var(--transition-fast);
}

.habit-delete-btn:hover {
  color: var(--danger);
  background: hsla(0, 84%, 60%, 0.1);
}

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

/* Custom Checkbox Animation styling */
.checkbox-container {
  display: flex;
  align-items: center;
  gap: 10px;
}

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

.custom-checkbox {
  width: 28px;
  height: 28px;
  border-radius: 6px;
  border: 2px solid rgba(255, 255, 255, 0.15);
  background: rgba(15, 23, 42, 0.4);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all var(--transition-normal);
}

.custom-checkbox svg {
  width: 14px;
  height: 14px;
  color: #fff;
  transform: scale(0);
  transition: transform 0.25s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

/* Flipped/Completed cards hide their front-side elements to prevent tab index issues */

/* Empty State */
.empty-state {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 60px 40px;
  background: var(--bg-card);
  border: 1px dashed var(--border-color);
  border-radius: var(--radius-lg);
  color: var(--text-muted);
}

.empty-icon-container {
  width: 80px;
  height: 80px;
  border-radius: var(--radius-full);
  background: rgba(255, 255, 255, 0.02);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 24px;
  border: 1px solid var(--border-color);
}

.empty-icon-container svg {
  width: 36px;
  height: 36px;
  color: var(--text-dim);
}

.empty-title {
  font-size: 1.4rem;
  font-weight: 700;
  color: var(--text-main);
  margin-bottom: 10px;
}

.empty-desc {
  font-size: 0.95rem;
  max-width: 320px;
  margin-bottom: 24px;
}

/* ==========================================================================
   WEEKLY VIEW: Habit Grid Calendar
   ========================================================================== */
.weekly-container {
  background: var(--bg-card);
  backdrop-filter: blur(12px);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
}

.weekly-table-wrapper {
  overflow-x: auto;
}

.weekly-table {
  width: 100%;
  border-collapse: collapse;
  text-align: left;
  min-width: 700px;
}

.weekly-table th, .weekly-table td {
  padding: 16px 20px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.03);
}

.weekly-table th {
  background: rgba(0, 0, 0, 0.15);
  font-weight: 600;
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--text-muted);
  font-family: 'Outfit', sans-serif;
}

.weekly-habit-info {
  display: flex;
  flex-direction: column;
  gap: 4px;
  max-width: 200px;
}

.weekly-habit-title {
  font-weight: 600;
  font-size: 0.95rem;
  color: var(--text-main);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.weekly-habit-category {
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--habit-color);
}

.weekly-day-cell {
  text-align: center;
}

/* Clickable circle check cell */
.weekly-day-btn {
  width: 38px;
  height: 38px;
  border-radius: var(--radius-full);
  border: 2px solid rgba(255, 255, 255, 0.08);
  background: rgba(15, 23, 42, 0.4);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--text-dim);
  transition: all var(--transition-normal);
}

.weekly-day-btn:hover {
  border-color: var(--habit-color);
  background: var(--habit-color-glow);
  color: var(--habit-color);
  transform: scale(1.08);
}

.weekly-day-btn.completed {
  background: var(--habit-color);
  border-color: var(--habit-color);
  color: #fff;
  box-shadow: 0 0 10px var(--habit-color-glow);
}

.weekly-day-btn svg {
  width: 14px;
  height: 14px;
  opacity: 0;
  transform: scale(0.5);
  transition: all var(--transition-fast);
}

.weekly-day-btn.completed svg {
  opacity: 1;
  transform: scale(1);
}

/* Weekly Progress Row */
.weekly-success-cell {
  font-weight: 700;
  color: var(--text-main);
  text-align: center;
  font-size: 0.95rem;
}

/* ==========================================================================
   MONTHLY VIEW: Habits Calendar Grid
   ========================================================================== */
.monthly-layout {
  display: grid;
  grid-template-columns: 280px 1fr;
  gap: 30px;
}

.monthly-habit-selector {
  background: var(--bg-card);
  backdrop-filter: blur(12px);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: 20px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.selector-title {
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 8px;
}

.selector-list {
  display: flex;
  flex-direction: column;
  gap: 6px;
  list-style: none;
}

.selector-item button {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 14px;
  border-radius: var(--radius-md);
  background: rgba(255, 255, 255, 0.01);
  border: 1px solid transparent;
  color: var(--text-muted);
  font-weight: 500;
  font-size: 0.9rem;
  transition: all var(--transition-fast);
  text-align: left;
}

.selector-item button:hover {
  background: rgba(255, 255, 255, 0.03);
  color: var(--text-main);
}

.selector-item.active button {
  background: var(--habit-color-glow, var(--accent-primary-glow));
  border-color: var(--habit-color, var(--accent-primary));
  color: var(--text-main);
}

.selector-streak-badge {
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--habit-color);
}

/* Monthly Calendar Display */
.monthly-calendar-card {
  background: var(--bg-card);
  backdrop-filter: blur(12px);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: 30px;
  display: flex;
  flex-direction: column;
  gap: 24px;
  box-shadow: var(--shadow-lg);
}

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

.calendar-title {
  font-size: 1.5rem;
  font-weight: 700;
  font-family: 'Outfit', sans-serif;
}

.calendar-grid {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 10px;
}

.calendar-weekday {
  text-align: center;
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--text-muted);
  text-transform: uppercase;
  padding: 8px 0;
  letter-spacing: 0.05em;
  font-family: 'Outfit', sans-serif;
}

/* Calendar Days */
.calendar-day {
  aspect-ratio: 1;
  background: rgba(15, 23, 42, 0.3);
  border: 1.5px solid rgba(255, 255, 255, 0.04);
  border-radius: var(--radius-md);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 8px;
  font-weight: 600;
  font-size: 0.85rem;
  color: var(--text-dim);
  cursor: pointer;
  position: relative;
  transition: all var(--transition-normal);
}

.calendar-day:hover {
  border-color: var(--habit-color, var(--accent-primary));
  background: rgba(255, 255, 255, 0.02);
  transform: translateY(-2px);
}

.calendar-day.empty {
  visibility: hidden;
  pointer-events: none;
}

.calendar-day.other-month {
  opacity: 0.2;
}

.calendar-day-num {
  z-index: 2;
}

.calendar-day-status {
  width: 8px;
  height: 8px;
  border-radius: var(--radius-full);
  background: rgba(255, 255, 255, 0.05);
  align-self: flex-end;
  transition: all var(--transition-fast);
}

.calendar-day.completed {
  background: var(--habit-color-glow, var(--accent-primary-glow));
  border-color: var(--habit-color, var(--accent-primary));
  color: var(--text-main);
  box-shadow: inset 0 0 12px 0 var(--habit-color-glow);
}

.calendar-day.completed .calendar-day-status {
  background: var(--habit-color);
  box-shadow: 0 0 8px var(--habit-color);
}

/* Calendar Stats Summary Footer */
.calendar-summary-footer {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  border-top: 1px solid rgba(255, 255, 255, 0.03);
  padding-top: 24px;
}

.cal-stat-card {
  text-align: center;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.cal-stat-val {
  font-size: 1.6rem;
  font-weight: 700;
  color: var(--text-main);
  font-family: 'Outfit', sans-serif;
}

.cal-stat-lbl {
  font-size: 0.8rem;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

/* ==========================================================================
   YEARLY VIEW: 365-Day Heatmap & Analytics
   ========================================================================== */
.yearly-grid-layout {
  display: flex;
  flex-direction: column;
  gap: 30px;
}

/* Analytics Stats Blocks */
.stats-overview-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 20px;
}

.stat-glow-card {
  background: var(--bg-card);
  backdrop-filter: blur(12px);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: 24px;
  display: flex;
  align-items: center;
  gap: 20px;
  position: relative;
  overflow: hidden;
  box-shadow: var(--shadow-md);
  transition: border-color var(--transition-fast);
}

.stat-glow-card:hover {
  border-color: var(--border-hover);
}

.stat-icon-wrapper {
  width: 52px;
  height: 52px;
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--accent-primary-glow);
  color: var(--accent-primary);
  flex-shrink: 0;
}

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

.stat-content {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.stat-num {
  font-size: 1.8rem;
  font-weight: 700;
  font-family: 'Outfit', sans-serif;
}

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

/* Heatmap Card Component */
.heatmap-card {
  background: var(--bg-card);
  backdrop-filter: blur(12px);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: 30px;
  display: flex;
  flex-direction: column;
  gap: 24px;
  box-shadow: var(--shadow-lg);
}

.heatmap-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}

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

/* Beautiful custom select dropdown */
.custom-select {
  background: rgba(15, 23, 42, 0.6);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 8px 36px 8px 16px;
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--text-main);
  cursor: pointer;
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 24 24' stroke='white'%3E%3Cpath stroke-linecap='round' stroke-linejoin='round' stroke-width='2' d='M19 9l-7 7-7-7'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 12px center;
  background-size: 14px;
  transition: all var(--transition-fast);
}

.custom-select:focus {
  border-color: var(--accent-primary);
  box-shadow: 0 0 0 2px var(--accent-primary-glow);
}

/* SVG Heatmap Wrapper */
.heatmap-chart-wrapper {
  overflow-x: auto;
  padding: 10px 0;
}

.heatmap-legend {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 6px;
  font-size: 0.75rem;
  color: var(--text-muted);
  margin-top: 10px;
}

.legend-color {
  width: 10px;
  height: 10px;
  border-radius: 2px;
}

/* Tooltip design */
.chart-tooltip {
  position: absolute;
  padding: 8px 12px;
  background: hsla(222, 47%, 8%, 0.95);
  border: 1px solid var(--border-hover);
  border-radius: var(--radius-sm);
  font-size: 0.75rem;
  pointer-events: none;
  opacity: 0;
  transition: opacity var(--transition-fast);
  z-index: 1000;
  box-shadow: var(--shadow-md);
}

/* SVG contribution chart styling */
.heatmap-day {
  fill: rgba(255, 255, 255, 0.03);
  stroke: var(--bg-dark);
  stroke-width: 1px;
  rx: 2;
  ry: 2;
  cursor: pointer;
  transition: all var(--transition-fast);
}

.heatmap-day:hover {
  stroke: var(--text-main);
  stroke-width: 1.5px;
}

.heatmap-month-lbl, .heatmap-day-lbl {
  fill: var(--text-dim);
  font-family: 'Outfit', sans-serif;
  font-size: 9px;
  font-weight: 500;
}

/* Habit Streaks Grid List */
.habits-analysis-card {
  background: var(--bg-card);
  backdrop-filter: blur(12px);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: 30px;
  box-shadow: var(--shadow-lg);
}

.analysis-title {
  font-size: 1.3rem;
  font-weight: 700;
  margin-bottom: 20px;
  font-family: 'Outfit', sans-serif;
}

.analysis-table {
  width: 100%;
  border-collapse: collapse;
  text-align: left;
}

.analysis-table th, .analysis-table td {
  padding: 16px 20px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.03);
}

.analysis-table th {
  font-weight: 600;
  font-size: 0.85rem;
  color: var(--text-muted);
  text-transform: uppercase;
}

.analysis-table td {
  font-size: 0.95rem;
}

.analysis-habit-name {
  font-weight: 600;
}

.streak-badges-container {
  display: flex;
  align-items: center;
  gap: 12px;
}

.streak-metric-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 12px;
  border-radius: var(--radius-sm);
  font-size: 0.8rem;
  font-weight: 600;
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid rgba(255, 255, 255, 0.05);
}

.streak-metric-badge.streak-current {
  color: hsl(38, 92%, 55%);
  background: hsla(38, 92%, 55%, 0.05);
  border-color: hsla(38, 92%, 55%, 0.15);
}

.streak-metric-badge.streak-longest {
  color: hsl(280, 80%, 65%);
  background: hsla(280, 80%, 65%, 0.05);
  border-color: hsla(280, 80%, 65%, 0.15);
}

.progress-ring-mini {
  display: flex;
  align-items: center;
  gap: 10px;
}

.progress-ring-text {
  font-weight: 600;
  font-size: 0.9rem;
}

/* ==========================================================================
   MODAL DIALOG: Add/Edit Habit
   ========================================================================== */
dialog {
  margin: auto;
  background: var(--bg-dark);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: 0;
  width: 100%;
  max-width: 480px;
  box-shadow: var(--shadow-lg), 0 20px 40px -15px rgba(0, 0, 0, 0.8);
  color: var(--text-main);
  z-index: 1000;
}

/* Styling backdrop */
dialog::backdrop {
  background-color: rgba(4, 6, 12, 0.8);
  backdrop-filter: blur(8px);
}

.modal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 24px 30px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.03);
}

.modal-title {
  font-size: 1.4rem;
  font-weight: 700;
  font-family: 'Outfit', sans-serif;
}

.modal-close-btn {
  color: var(--text-dim);
  padding: 4px;
  border-radius: var(--radius-sm);
  transition: all var(--transition-fast);
}

.modal-close-btn:hover {
  color: var(--text-main);
  background: rgba(255, 255, 255, 0.04);
}

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

.modal-body {
  padding: 30px;
  display: flex;
  flex-direction: column;
  gap: 20px;
}

/* Select Color & Icon grids */
.color-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.color-option {
  position: relative;
  width: 32px;
  height: 32px;
  border-radius: var(--radius-full);
  cursor: pointer;
  border: 2px solid transparent;
  transition: all var(--transition-fast);
}

.color-option:hover {
  transform: scale(1.15);
}

.color-option.selected {
  border-color: #fff;
  box-shadow: 0 0 10px var(--opt-color);
}

.color-option input {
  position: absolute;
  opacity: 0;
  cursor: pointer;
}

.icon-grid {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 10px;
}

.icon-option {
  position: relative;
  aspect-ratio: 1;
  border-radius: var(--radius-md);
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid var(--border-color);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  color: var(--text-muted);
  transition: all var(--transition-fast);
}

.icon-option:hover {
  background: rgba(255, 255, 255, 0.04);
  color: var(--text-main);
}

.icon-option.selected {
  background: var(--accent-primary-glow);
  border-color: var(--accent-primary);
  color: var(--text-main);
}

.icon-option input {
  position: absolute;
  opacity: 0;
  cursor: pointer;
}

.icon-option svg {
  width: 20px;
  height: 20px;
}

.modal-footer {
  padding: 20px 30px 30px;
  display: flex;
  justify-content: flex-end;
  gap: 12px;
  border-top: 1px solid rgba(255, 255, 255, 0.03);
}

.btn-secondary {
  padding: 12px 20px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  font-weight: 600;
  font-size: 0.95rem;
  transition: all var(--transition-fast);
}

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

.btn-primary {
  padding: 12px 20px;
  background: var(--accent-primary);
  color: #fff;
  border-radius: var(--radius-md);
  font-weight: 600;
  font-size: 0.95rem;
  box-shadow: 0 4px 15px -3px hsla(250, 89%, 65%, 0.4);
  transition: all var(--transition-fast);
}

.btn-primary:hover {
  filter: brightness(1.1);
  box-shadow: 0 6px 20px -3px hsla(250, 89%, 65%, 0.6);
}

/* ==========================================================================
   Responsive Adaptations
   ========================================================================== */
@media (max-width: 1024px) {
  .monthly-layout {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 768px) {
  /* Sidebar responsive collapse */
  .sidebar {
    width: 100%;
    height: 60px;
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    padding: 0 20px;
    bottom: auto;
    border-right: none;
    border-bottom: 1px solid var(--border-color);
  }
  
  .logo-container {
    margin-bottom: 0;
    padding-left: 0;
  }
  
  .nav-menu {
    display: none; /* In a real app we can add a mobile menu hamburger or a bottom bar. Let's make a beautiful bottom tab bar for mobile! */
  }
  
  /* Modern Bottom Tab Bar for Mobile screen sizes */
  .mobile-tab-bar {
    display: flex !important;
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    height: 64px;
    background: var(--bg-nav);
    backdrop-filter: blur(20px);
    border-top: 1px solid var(--border-color);
    z-index: 100;
    justify-content: space-around;
    align-items: center;
    list-style: none;
    padding: 0 10px;
  }
  
  .mobile-tab-item {
    flex-grow: 1;
    display: flex;
    justify-content: center;
  }
  
  .mobile-tab-item button {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
    font-size: 0.7rem;
    font-weight: 600;
    color: var(--text-muted);
    padding: 6px 12px;
    border-radius: var(--radius-sm);
    transition: all var(--transition-fast);
  }
  
  .mobile-tab-item.active button {
    color: var(--accent-primary);
  }
  
  .mobile-tab-item button svg {
    width: 20px;
    height: 20px;
  }
  
  .user-panel {
    display: none;
  }
  
  .main-content {
    margin-left: 0;
    margin-top: 60px;
    padding: 24px 16px 84px; /* offset bottom bar and top header */
    width: 100%;
    gap: 20px;
  }
  
  .view-title {
    font-size: 1.8rem;
  }
  
  .app-header {
    flex-direction: column;
    align-items: flex-start;
  }
  
  .date-selector {
    width: 100%;
    justify-content: space-between;
  }
  
  .current-date-text {
    flex-grow: 1;
  }
  
  .daily-summary-row {
    flex-direction: column;
    align-items: stretch;
  }
  
  /* Month Calendar Responsive Fit */
  .monthly-calendar-card {
    padding: 14px 12px;
    gap: 16px;
  }
  
  .calendar-grid {
    gap: 5px;
  }
  
  .calendar-day {
    padding: 4px;
    font-size: 0.75rem;
  }
  
  .calendar-weekday {
    font-size: 0.7rem;
    padding: 4px 0;
  }
}

/* Hide bottom bar by default on desktop */
.mobile-tab-bar {
  display: none;
}

/* ==========================================================================
   Achievement Animations & Confetti Blast
   ========================================================================== */
.confetti-particle {
  position: absolute;
  width: 7px;
  height: 7px;
  pointer-events: none;
  z-index: 2000;
  animation: particleExplode 0.75s ease-out forwards;
}

@keyframes particleExplode {
  0% {
    transform: translate(0, 0) scale(1) rotate(0deg);
    opacity: 1;
  }
  100% {
    transform: translate(var(--dx), var(--dy)) rotate(var(--rot)) scale(0.2);
    opacity: 0;
  }
}

.achievement-badge {
  font-family: 'Outfit', sans-serif;
  letter-spacing: -0.01em;
  animation: badgeScaleIn 0.35s cubic-bezier(0.175, 0.885, 0.32, 1.275) forwards;
}

@keyframes badgeScaleIn {
  0% {
    transform: scale(0.7) translateY(4px);
    opacity: 0;
    filter: blur(2px);
  }
  100% {
    transform: scale(1) translateY(0);
    opacity: 1;
    filter: blur(0);
  }
}

/* ==========================================================================
   Admin View & Data Privacy Dashboard Styles
   ========================================================================== */

/* Locked date indicators */
.weekly-day-btn:not(.locked-date),
.calendar-day:not(.locked-date) {
  cursor: pointer;
}

.weekly-day-btn.locked-date,
.calendar-day.locked-date {
  cursor: not-allowed !important;
  opacity: 0.65;
  filter: grayscale(0.2);
}

/* User management actions alignment */
.admin-toggle-btn,
.admin-delete-btn {
  transition: all var(--transition-fast) ease;
}

.admin-toggle-btn:hover,
.admin-delete-btn:hover {
  filter: brightness(1.25);
  transform: translateY(-1px);
}

.admin-toggle-btn:active,
.admin-delete-btn:active {
  transform: translateY(0);
}

/* Admin Center stats badge adjustments */
#view-admin .statistics-row,
#view-privacy .yearly-dashboard-container {
  animation: badgeScaleIn 0.35s cubic-bezier(0.175, 0.885, 0.32, 1.275) forwards;
}

/* Auth email/phone spacing */
#auth-email-group,
#auth-phone-group {
  margin-top: 15px;
}
