/* ═══════════════════════════════════════════════
   MENING REJAM — Premium Dark Theme CSS
   ═══════════════════════════════════════════════ */

:root {
  --bg: #eef2f5;
  --bg-card: #ffffff;
  --bg-card2: #f8fafc;
  --bg-card3: #eef6f6;
  --border: rgba(15, 23, 42, 0.1);
  --border-light: rgba(15, 23, 42, 0.08);
  --purple: #0f766e;
  --purple-mid: #2563eb;
  --purple-light: #0f766e;
  --purple-glow: rgba(15, 118, 110, 0.16);
  --text: #172033;
  --text-muted: #475569;
  --text-dim: #7b8794;
  --success: #10b981;
  --warning: #f59e0b;
  --danger: #ef4444;
  --info: #3b82f6;
  --sidebar-width: 260px;
  --right-panel-width: 280px;
  --radius-sm: 8px;
  --radius: 12px;
  --radius-lg: 16px;
  --radius-xl: 24px;
  --transition: 0.2s ease;
  --shadow: 0 16px 36px rgba(15, 23, 42, 0.08);
  --shadow-glow: 0 14px 28px var(--purple-glow);
  --glass-bg: rgba(255, 255, 255, 0.86);
  --glass-border: rgba(15, 23, 42, 0.08);
}

/* ─── RESET & BASE ─────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; }

body {
  font-family: 'Inter', -apple-system, sans-serif;
  background: var(--bg);
  color: var(--text);
  min-height: 100vh;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

a { text-decoration: none; color: inherit; }
button { cursor: pointer; font-family: inherit; border: none; background: none; }
input, select, textarea { font-family: inherit; }
input:focus, select:focus, textarea:focus { outline: none; }

/* ─── SCROLLBAR ─────────────────────────────────────────────── */
::-webkit-scrollbar { width: 6px; height: 6px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb { background: rgba(124,58,237,0.3); border-radius: 3px; }
::-webkit-scrollbar-thumb:hover { background: rgba(124,58,237,0.5); }

/* ─── GLASSMORPHISM ─────────────────────────────────────────── */
.glass-card {
  background: var(--glass-bg);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-lg);
}

/* ─── HIDDEN / SHOW ─────────────────────────────────────────── */
.hidden { display: none !important; }

/* ═══════════════════════════════════════════════
   ANIMATIONS
   ═══════════════════════════════════════════════ */
@keyframes fadeIn { from { opacity:0 } to { opacity:1 } }
@keyframes slideInLeft { from { opacity:0; transform: translateX(-20px) } to { opacity:1; transform: translateX(0) } }
@keyframes slideInRight { from { opacity:0; transform: translateX(20px) } to { opacity:1; transform: translateX(0) } }
@keyframes slideUp { from { opacity:0; transform: translateY(16px) } to { opacity:1; transform: translateY(0) } }
@keyframes scaleIn { from { opacity:0; transform: scale(0.94) } to { opacity:1; transform: scale(1) } }
@keyframes pulse { 0%,100% { box-shadow: 0 0 0 0 var(--purple-glow) } 50% { box-shadow: 0 0 24px 6px var(--purple-glow) } }
@keyframes spin { to { transform: rotate(360deg) } }
@keyframes shimmer { 0% { background-position: -200% 0 } 100% { background-position: 200% 0 } }
@keyframes checkmark { 0% { transform: scale(0) rotate(-10deg) } 60% { transform: scale(1.2) rotate(5deg) } 100% { transform: scale(1) rotate(0) } }
@keyframes progressFill { from { width:0 } to { width: var(--target-width) } }
@keyframes timerFlash { 0%,100% { opacity:1 } 50% { opacity:0.3 } }
@keyframes blobFloat {
  0%,100% { transform: translate(0,0) scale(1) }
  33% { transform: translate(30px,-20px) scale(1.05) }
  66% { transform: translate(-20px,10px) scale(0.95) }
}
@keyframes toastIn { from { opacity:0; transform: translateY(20px) } to { opacity:1; transform: translateY(0) } }
@keyframes toastOut { from { opacity:1; transform: translateY(0) } to { opacity:0; transform: translateY(20px) } }

/* ═══════════════════════════════════════════════
   LOGIN PAGE
   ═══════════════════════════════════════════════ */
.login-page {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: hidden;
  background: radial-gradient(ellipse at 30% 50%, rgba(124,58,237,0.18) 0%, transparent 60%),
              radial-gradient(ellipse at 80% 20%, rgba(168,85,247,0.12) 0%, transparent 50%),
              var(--bg);
  padding: 24px;
}

.login-bg { position: absolute; inset: 0; pointer-events: none; }

.login-blob {
  position: absolute;
  border-radius: 50%;
  filter: blur(60px);
  animation: blobFloat 8s ease-in-out infinite;
}
.blob-1 { width: 400px; height: 400px; background: rgba(124,58,237,0.15); top: -100px; left: -100px; animation-delay: 0s; }
.blob-2 { width: 300px; height: 300px; background: rgba(168,85,247,0.1); bottom: -80px; right: -80px; animation-delay: 3s; }
.blob-3 { width: 250px; height: 250px; background: rgba(192,132,252,0.08); top: 50%; left: 60%; animation-delay: 6s; }

.login-card {
  width: 100%;
  max-width: 420px;
  padding: 40px;
  position: relative;
  z-index: 1;
  animation: scaleIn 0.4s ease;
  border: 1px solid rgba(124,58,237,0.25);
  box-shadow: 0 8px 64px rgba(124,58,237,0.15), 0 0 0 1px rgba(124,58,237,0.05);
}

.login-logo {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 32px;
}

.logo-icon {
  width: 52px;
  height: 52px;
  border-radius: 14px;
  background: linear-gradient(135deg, #7c3aed, #a855f7);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 16px rgba(124,58,237,0.4);
  flex-shrink: 0;
}
.logo-icon.small { width: 36px; height: 36px; border-radius: 10px; }

.logo-text h1 { font-size: 1.5rem; font-weight: 700; background: linear-gradient(135deg, #fff, #c084fc); -webkit-background-clip: text; -webkit-text-fill-color: transparent; }
.logo-text p { font-size: 0.8rem; color: var(--text-dim); margin-top: 2px; }

.login-form { display: flex; flex-direction: column; gap: 18px; }

.form-group { display: flex; flex-direction: column; gap: 8px; }
.form-group label { font-size: 0.82rem; font-weight: 500; color: var(--text-muted); letter-spacing: 0.02em; }

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

.input-icon {
  position: absolute;
  left: 14px;
  color: var(--text-dim);
  pointer-events: none;
  flex-shrink: 0;
}

.input-wrapper input {
  width: 100%;
  padding: 12px 14px 12px 44px;
  background: rgba(255,255,255,0.05);
  border: 1px solid var(--border-light);
  border-radius: var(--radius);
  color: var(--text);
  font-size: 0.95rem;
  transition: border-color var(--transition), box-shadow var(--transition);
}
.input-wrapper input:focus {
  border-color: rgba(124,58,237,0.5);
  box-shadow: 0 0 0 3px rgba(124,58,237,0.12);
}
.input-wrapper input::placeholder { color: var(--text-dim); }

.toggle-password {
  position: absolute;
  right: 12px;
  color: var(--text-dim);
  padding: 4px;
  transition: color var(--transition);
}
.toggle-password:hover { color: var(--text-muted); }

.login-error {
  background: rgba(239,68,68,0.12);
  border: 1px solid rgba(239,68,68,0.25);
  color: #fca5a5;
  border-radius: var(--radius-sm);
  padding: 10px 14px;
  font-size: 0.85rem;
  animation: slideUp 0.2s ease;
}

.login-hints {
  margin-top: 20px;
  text-align: center;
}
.hint-title { font-size: 0.78rem; color: var(--text-dim); margin-bottom: 8px; }
.hint-pills { display: flex; gap: 8px; justify-content: center; flex-wrap: wrap; }
.hint-pill {
  background: rgba(124,58,237,0.12);
  border: 1px solid rgba(124,58,237,0.2);
  color: var(--purple-light);
  padding: 4px 12px;
  border-radius: 20px;
  font-size: 0.8rem;
  cursor: pointer;
  transition: all var(--transition);
}
.hint-pill:hover { background: rgba(124,58,237,0.25); }

/* ═══════════════════════════════════════════════
   BUTTONS
   ═══════════════════════════════════════════════ */
.btn-primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 11px 20px;
  background: linear-gradient(135deg, #7c3aed, #a855f7);
  color: white;
  border-radius: var(--radius);
  font-size: 0.9rem;
  font-weight: 600;
  transition: all var(--transition);
  box-shadow: 0 4px 12px rgba(124,58,237,0.3);
  white-space: nowrap;
}
.btn-primary:hover { transform: translateY(-1px); box-shadow: 0 6px 20px rgba(124,58,237,0.45); filter: brightness(1.1); }
.btn-primary:active { transform: scale(0.97); }
.btn-full { width: 100%; }

.btn-outline {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 18px;
  border: 1px solid var(--border-light);
  color: var(--text-muted);
  border-radius: var(--radius);
  font-size: 0.9rem;
  font-weight: 500;
  transition: all var(--transition);
  background: transparent;
}
.btn-outline:hover { border-color: rgba(124,58,237,0.4); color: var(--text); background: rgba(124,58,237,0.08); }
.btn-outline:active { transform: scale(0.97); }

.btn-danger {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 18px;
  background: rgba(239,68,68,0.15);
  border: 1px solid rgba(239,68,68,0.3);
  color: #fca5a5;
  border-radius: var(--radius);
  font-size: 0.9rem;
  font-weight: 600;
  transition: all var(--transition);
}
.btn-danger:hover { background: rgba(239,68,68,0.25); }

.btn-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  border-radius: var(--radius);
  color: var(--text-muted);
  transition: all var(--transition);
  background: transparent;
  flex-shrink: 0;
}
.btn-icon:hover { background: rgba(124,58,237,0.15); color: var(--purple-light); }
.btn-icon:active { transform: scale(0.93); }

.btn-logout {
  display: flex;
  align-items: center;
  gap: 10px;
  width: 100%;
  padding: 11px 16px;
  color: var(--text-muted);
  border-radius: var(--radius);
  font-size: 0.88rem;
  font-weight: 500;
  transition: all var(--transition);
  background: transparent;
}
.btn-logout:hover { background: rgba(239,68,68,0.1); color: #fca5a5; }

/* ═══════════════════════════════════════════════
   APP LAYOUT
   ═══════════════════════════════════════════════ */
.app {
  display: flex;
  min-height: 100vh;
  position: relative;
}

/* ─── SIDEBAR ─────────────────────────────────── */
.sidebar {
  width: var(--sidebar-width);
  min-height: 100vh;
  background: var(--bg-card);
  border-right: 1px solid var(--border-light);
  display: flex;
  flex-direction: column;
  position: fixed;
  left: 0;
  top: 0;
  z-index: 100;
  transition: transform 0.3s ease;
}

.sidebar-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 20px 16px 16px;
  border-bottom: 1px solid var(--border-light);
}

.sidebar-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 0.95rem;
  font-weight: 700;
  background: linear-gradient(135deg, #fff, #c084fc);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.sidebar-close { display: none; color: var(--text-dim); }

.sidebar-user {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 16px;
  margin: 8px;
  border-radius: var(--radius);
  background: rgba(124,58,237,0.08);
  border: 1px solid rgba(124,58,237,0.1);
}

.user-avatar {
  width: 38px;
  height: 38px;
  border-radius: 10px;
  background: linear-gradient(135deg, #7c3aed, #a855f7);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1rem;
  font-weight: 700;
  color: white;
  flex-shrink: 0;
}

.user-name { font-size: 0.88rem; font-weight: 600; }
.user-role {
  font-size: 0.74rem;
  color: var(--purple-light);
  text-transform: capitalize;
  margin-top: 2px;
}

.sidebar-nav {
  flex: 1;
  padding: 12px 8px;
  display: flex;
  flex-direction: column;
  gap: 2px;
  overflow-y: auto;
}

.nav-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 14px;
  border-radius: var(--radius);
  color: var(--text-muted);
  font-size: 0.88rem;
  font-weight: 500;
  transition: all var(--transition);
  position: relative;
}
.nav-item:hover { background: rgba(124,58,237,0.1); color: var(--text); }
.nav-item.active {
  background: linear-gradient(135deg, rgba(124,58,237,0.25), rgba(168,85,247,0.15));
  color: var(--purple-light);
  border: 1px solid rgba(124,58,237,0.2);
}
.nav-item.active svg { color: var(--purple-light); }

.sidebar-footer { padding: 12px 8px 16px; border-top: 1px solid var(--border-light); }

/* ─── MAIN CONTENT ────────────────────────────── */
.main-content {
  flex: 1;
  margin-left: var(--sidebar-width);
  margin-right: var(--right-panel-width);
  min-height: 100vh;
  padding: 28px 28px 80px;
  animation: fadeIn 0.3s ease;
}

/* ─── TOP BAR (Mobile) ────────────────────────── */
.topbar {
  display: none;
  align-items: center;
  justify-content: space-between;
  padding: 12px 16px;
  background: var(--bg-card);
  border-bottom: 1px solid var(--border-light);
  position: sticky;
  top: 0;
  z-index: 50;
}
.menu-toggle { color: var(--text); }
.topbar-title { font-weight: 700; font-size: 1rem; }

/* ─── RIGHT PANEL ─────────────────────────────── */
.right-panel {
  width: var(--right-panel-width);
  position: fixed;
  right: 0;
  top: 0;
  height: 100vh;
  padding: 20px 16px;
  background: var(--bg-card);
  border-left: 1px solid var(--border-light);
  display: flex;
  flex-direction: column;
  gap: 16px;
  overflow-y: auto;
}

/* ─── BOTTOM NAV (Mobile) ─────────────────────── */
.bottom-nav {
  display: none;
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  background: rgba(26,26,46,0.95);
  backdrop-filter: blur(16px);
  border-top: 1px solid var(--border-light);
  padding: 8px 0 env(safe-area-inset-bottom, 8px);
  z-index: 100;
  align-items: center;
  justify-content: space-around;
}

.bottom-nav-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2px;
  padding: 4px 4px;
  color: var(--text-dim);
  font-size: 0.58rem;
  font-weight: 500;
  transition: all var(--transition);
  min-width: 0;
  flex: 1;
}
.bottom-nav-item.active { color: var(--purple-light); }
.bottom-nav-item:not(.bottom-nav-add):hover { color: var(--purple-light); }

.bottom-nav-add { padding: 0; }
.add-btn-circle {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  background: linear-gradient(135deg, #7c3aed, #a855f7);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 16px rgba(124,58,237,0.4);
  color: white;
  transition: all var(--transition);
  margin-bottom: 8px;
}
.add-btn-circle:hover { transform: scale(1.05); box-shadow: 0 6px 20px rgba(124,58,237,0.5); }

/* ═══════════════════════════════════════════════
   PAGES
   ═══════════════════════════════════════════════ */
.page { display: none; }
.page.active { display: block; animation: fadeIn 0.3s ease; }

.page-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  margin-bottom: 24px;
  gap: 16px;
  flex-wrap: wrap;
}

.page-title {
  font-size: 1.6rem;
  font-weight: 800;
  background: linear-gradient(135deg, #fff 0%, #c084fc 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  line-height: 1.2;
}

.page-subtitle { font-size: 0.85rem; color: var(--text-dim); margin-top: 4px; }

/* ─── WEEK NAV ────────────────────────────────── */
.week-nav {
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin-bottom: 20px;
}
.week-nav-row {
  display: flex;
  gap: 6px;
  justify-content: space-between;
}
.week-nav-row .week-day {
  flex: 1;
  min-width: 0;
  padding: 8px 4px;
}
.week-nav-divider {
  height: 1px;
  background: rgba(255,255,255,0.07);
  margin: 2px 0;
}

.week-day {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  padding: 10px 14px;
  border-radius: var(--radius);
  cursor: pointer;
  transition: all var(--transition);
  min-width: 60px;
  border: 1px solid transparent;
  flex-shrink: 0;
}
.week-day:hover { background: rgba(124,58,237,0.1); border-color: rgba(124,58,237,0.2); }
.week-day.active {
  background: linear-gradient(135deg, rgba(124,58,237,0.3), rgba(168,85,247,0.2));
  border-color: rgba(124,58,237,0.4);
  box-shadow: 0 2px 12px rgba(124,58,237,0.2);
}

.week-day-name { font-size: 0.72rem; color: var(--text-dim); font-weight: 500; text-transform: uppercase; }
.week-day.active .week-day-name { color: var(--purple-light); }
.week-day-num { font-size: 1.1rem; font-weight: 700; }
.week-day.active .week-day-num { color: white; }
.week-day-dot { width: 5px; height: 5px; border-radius: 50%; background: var(--purple-mid); opacity: 0; transition: opacity var(--transition); }
.week-day.has-tasks .week-day-dot { opacity: 1; }
.week-day.today-marker .week-day-num { color: var(--purple-light); }
.week-day.today-marker:not(.active) { border-color: rgba(124,58,237,0.35); }

/* ─── PROGRESS CARD ────────────────────────────── */
.progress-card {
  padding: 20px;
  margin-bottom: 16px;
}

.progress-info {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 10px;
}
.progress-label { font-size: 0.85rem; color: var(--text-muted); font-weight: 500; }
.progress-count { font-size: 0.9rem; font-weight: 700; color: var(--purple-light); }

.progress-bar-wrap {
  height: 8px;
  background: rgba(255,255,255,0.07);
  border-radius: 4px;
  overflow: hidden;
  margin-bottom: 8px;
}

.progress-bar-fill {
  height: 100%;
  background: linear-gradient(90deg, #7c3aed, #a855f7, #c084fc);
  border-radius: 4px;
  transition: width 0.6s cubic-bezier(0.4,0,0.2,1);
  box-shadow: 0 0 8px rgba(124,58,237,0.5);
}

.progress-meta {
  display: flex;
  justify-content: space-between;
  font-size: 0.78rem;
  color: var(--text-dim);
}

/* ─── QUOTE CARD ────────────────────────────────── */
.quote-card {
  padding: 20px;
  margin-bottom: 20px;
  position: relative;
  overflow: hidden;
}

.quote-card::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(124,58,237,0.05), rgba(168,85,247,0.03));
  pointer-events: none;
}

.quote-icon {
  font-size: 3rem;
  line-height: 1;
  color: rgba(124,58,237,0.3);
  font-family: Georgia, serif;
  margin-bottom: 6px;
}

.quote-text { font-size: 0.9rem; color: var(--text); line-height: 1.6; font-style: italic; }
.quote-author { font-size: 0.78rem; color: var(--purple-light); margin-top: 8px; font-weight: 500; }

/* ─── SECTION HEADER ────────────────────────────── */
.section-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 14px;
  gap: 12px;
}
.section-header h2 { font-size: 1rem; font-weight: 700; }
.section-actions { display: flex; align-items: center; gap: 10px; }

/* ─── SEARCH BOX ────────────────────────────────── */
.search-box {
  position: relative;
  display: flex;
  align-items: center;
}
.search-box svg { position: absolute; left: 10px; color: var(--text-dim); pointer-events: none; }
.search-box input {
  padding: 8px 12px 8px 34px;
  background: rgba(255,255,255,0.05);
  border: 1px solid var(--border-light);
  border-radius: var(--radius);
  color: var(--text);
  font-size: 0.85rem;
  width: 200px;
  transition: all var(--transition);
}
.search-box input:focus { border-color: rgba(124,58,237,0.4); width: 240px; }
.search-box input::placeholder { color: var(--text-dim); }

/* ─── FILTERS BAR ────────────────────────────────── */
.filters-bar {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin-bottom: 20px;
  align-items: center;
}

.filter-select {
  padding: 8px 12px;
  background: #1a1a2e;
  border: 1px solid var(--border-light);
  border-radius: var(--radius);
  color: var(--text);
  font-size: 0.85rem;
  cursor: pointer;
  transition: all var(--transition);
  appearance: none;
  padding-right: 28px;
  background-image: url("data:image/svg+xml,%3Csvg width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%2364748b' stroke-width='2'%3E%3Cpolyline points='6 9 12 15 18 9'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 8px center;
  background-size: auto, 12px;
}
.filter-select:focus { border-color: rgba(124,58,237,0.4); outline: none; }
.filter-select option {
  background: #1a1a2e;
  color: #e2e8f0;
  padding: 8px 12px;
}

/* ═══════════════════════════════════════════════
   TASKS LIST
   ═══════════════════════════════════════════════ */
.tasks-list { display: flex; flex-direction: column; gap: 8px; }

.task-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 16px;
  background: var(--glass-bg);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius);
  transition: all var(--transition);
  cursor: grab;
  animation: slideUp 0.25s ease both;
}
.task-item:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 20px rgba(0,0,0,0.3), 0 0 0 1px rgba(124,58,237,0.15);
  border-color: rgba(124,58,237,0.25);
}
.task-item.dragging { opacity: 0.5; cursor: grabbing; }
.task-item.drag-over { border-color: var(--purple); box-shadow: 0 0 0 2px rgba(124,58,237,0.3); }

.task-color-bar {
  width: 4px;
  height: 36px;
  border-radius: 2px;
  flex-shrink: 0;
}

.task-checkbox {
  width: 22px;
  height: 22px;
  border-radius: 6px;
  border: 2px solid rgba(124,58,237,0.4);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all var(--transition);
  flex-shrink: 0;
  background: transparent;
}
.task-checkbox:hover { border-color: var(--purple); background: rgba(124,58,237,0.1); }
.task-checkbox.checked {
  background: linear-gradient(135deg, #7c3aed, #a855f7);
  border-color: transparent;
  animation: checkmark 0.3s ease;
}
.task-checkbox.checked svg { display: block; }
.task-checkbox svg { display: none; color: white; }

.task-body { flex: 1; min-width: 0; }

.task-title {
  font-size: 0.9rem;
  font-weight: 600;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  transition: all var(--transition);
}
.task-item.completed .task-title {
  text-decoration: line-through;
  color: var(--text-dim);
}

.task-meta {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-top: 4px;
  flex-wrap: wrap;
}

.task-time, .task-category, .task-duration {
  display: flex;
  align-items: center;
  gap: 3px;
  font-size: 0.72rem;
  color: var(--text-dim);
}

.task-category-badge {
  padding: 2px 8px;
  border-radius: 10px;
  font-size: 0.7rem;
  font-weight: 600;
  background: rgba(124,58,237,0.15);
  color: var(--purple-light);
}

.task-priority {
  display: flex;
  gap: 2px;
}
.task-priority-dot {
  width: 5px;
  height: 5px;
  border-radius: 50%;
}

.task-actions {
  display: flex;
  align-items: center;
  gap: 2px;
  opacity: 0.45;
  transition: opacity var(--transition);
}
.task-item:hover .task-actions { opacity: 1; }

@media (max-width: 768px) {
  .task-actions { opacity: 1; }
}

.task-btn {
  width: 30px;
  height: 30px;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-dim);
  transition: all var(--transition);
}
.task-btn:hover { background: rgba(124,58,237,0.15); color: var(--purple-light); }
.task-btn.important.active { color: #f59e0b; }
.task-btn.delete:hover { background: rgba(239,68,68,0.12); color: #fca5a5; }

/* ─── EMPTY STATE ────────────────────────────────── */
.empty-state {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  padding: 48px 24px;
  color: var(--text-dim);
  text-align: center;
  animation: fadeIn 0.3s ease;
}
.empty-icon { color: rgba(124,58,237,0.3); }
.empty-state p { font-size: 0.9rem; }

/* ═══════════════════════════════════════════════
   CALENDAR
   ═══════════════════════════════════════════════ */
.view-switcher {
  display: flex;
  gap: 4px;
  background: rgba(255,255,255,0.05);
  border-radius: var(--radius);
  padding: 4px;
}
.view-btn {
  padding: 7px 14px;
  border-radius: 8px;
  font-size: 0.82rem;
  font-weight: 500;
  color: var(--text-muted);
  transition: all var(--transition);
}
.view-btn.active { background: linear-gradient(135deg, #7c3aed, #a855f7); color: white; }
.view-btn:hover:not(.active) { background: rgba(124,58,237,0.1); color: var(--text); }

.calendar-nav {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 20px;
}
.cal-nav-label { font-size: 1rem; font-weight: 700; flex: 1; text-align: center; }

.calendar-container { animation: fadeIn 0.25s ease; }

/* MONTH VIEW */
.cal-month { display: flex; flex-direction: column; gap: 0; }
.cal-month-header {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 0;
  margin-bottom: 4px;
}
.cal-month-header span {
  text-align: center;
  font-size: 0.72rem;
  font-weight: 600;
  color: var(--text-dim);
  padding: 8px 0;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.cal-month-grid {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 4px;
}

.cal-day {
  min-height: 90px;
  padding: 8px;
  background: rgba(255,255,255,0.02);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-sm);
  cursor: pointer;
  transition: all var(--transition);
  position: relative;
}
.cal-day:hover { background: rgba(124,58,237,0.07); border-color: rgba(124,58,237,0.2); }
.cal-day.today { border-color: rgba(124,58,237,0.4); background: rgba(124,58,237,0.08); }
.cal-day.other-month { opacity: 0.35; }
.cal-day.selected { border-color: var(--purple); background: rgba(124,58,237,0.15); }

.cal-day-num {
  font-size: 0.82rem;
  font-weight: 600;
  margin-bottom: 4px;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
}
.cal-day.today .cal-day-num { background: linear-gradient(135deg, #7c3aed, #a855f7); color: white; }

.cal-event {
  font-size: 0.68rem;
  padding: 2px 6px;
  border-radius: 4px;
  margin-bottom: 2px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  font-weight: 500;
  color: white;
  opacity: 0.9;
}
.cal-more { font-size: 0.68rem; color: var(--text-dim); padding: 0 2px; }

/* WEEK VIEW */
.cal-week {
  display: grid;
  grid-template-columns: 50px repeat(7, 1fr);
  gap: 0;
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--border-light);
}

.cal-week-header {
  display: contents;
}
.cal-week-corner { background: var(--bg-card2); border-bottom: 1px solid var(--border-light); padding: 8px; }
.cal-week-day-header {
  background: var(--bg-card2);
  border-bottom: 1px solid var(--border-light);
  border-left: 1px solid var(--border-light);
  padding: 8px;
  text-align: center;
}
.cal-week-day-header .wdh-name { font-size: 0.72rem; color: var(--text-dim); text-transform: uppercase; }
.cal-week-day-header .wdh-num { font-size: 1.1rem; font-weight: 700; margin-top: 2px; }
.cal-week-day-header.today .wdh-num { color: var(--purple-light); }

.cal-week-time-col { display: flex; flex-direction: column; }
.cal-week-time-slot {
  height: 48px;
  border-bottom: 1px solid var(--border-light);
  padding: 2px 6px;
  font-size: 0.68rem;
  color: var(--text-dim);
  display: flex;
  align-items: center;
}

.cal-week-day-col {
  border-left: 1px solid var(--border-light);
  position: relative;
}
.cal-week-event {
  position: absolute;
  left: 2px;
  right: 2px;
  padding: 2px 6px;
  border-radius: 4px;
  font-size: 0.72rem;
  font-weight: 600;
  color: white;
  overflow: hidden;
  cursor: pointer;
  transition: all var(--transition);
  z-index: 1;
}
.cal-week-event:hover { filter: brightness(1.2); transform: scale(1.01); }

/* YEAR VIEW */
.cal-year {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
}
.cal-year-month {
  background: var(--bg-card2);
  border: 1px solid var(--border-light);
  border-radius: 12px;
  padding: 12px;
  cursor: pointer;
  transition: all var(--transition);
}
.cal-year-month:hover {
  border-color: rgba(124,58,237,0.4);
  transform: translateY(-2px);
  box-shadow: 0 4px 16px rgba(124,58,237,0.12);
}
.cal-year-month-title {
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--purple-light);
  margin-bottom: 8px;
  text-align: center;
}
.cal-year-mini-header {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  margin-bottom: 4px;
}
.cal-year-mini-header span {
  text-align: center;
  font-size: 0.6rem;
  color: var(--text-dim);
  font-weight: 600;
}
.cal-year-mini-grid {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 1px;
}
.cal-mini-day {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.68rem;
  width: 100%;
  aspect-ratio: 1;
  border-radius: 50%;
  cursor: pointer;
  color: var(--text-secondary);
  transition: all 0.15s;
  line-height: 1;
}
.cal-mini-day:hover { background: rgba(124,58,237,0.2); color: #fff; }
.cal-mini-day.empty { cursor: default; pointer-events: none; }
.cal-mini-day.today {
  background: rgba(124,58,237,0.25);
  color: var(--purple-light);
  font-weight: 700;
}
.cal-mini-day.selected {
  background: var(--purple);
  color: #fff;
  font-weight: 700;
}
.cal-mini-day.has-tasks { color: #fff; }
.mini-dot {
  position: absolute;
  bottom: 1px;
  left: 50%;
  transform: translateX(-50%);
  width: 3px;
  height: 3px;
  border-radius: 50%;
}
@media (max-width: 1024px) {
  .cal-year { grid-template-columns: repeat(3, 1fr); }
}
@media (max-width: 768px) {
  .cal-year { grid-template-columns: repeat(2, 1fr); gap: 10px; }
  .cal-year-month { padding: 10px; }
}
@media (max-width: 480px) {
  .cal-year { grid-template-columns: repeat(2, 1fr); gap: 8px; }
}

/* DAY VIEW */
.cal-day-view { display: flex; gap: 16px; }
.cal-day-header { font-size: 1.1rem; font-weight: 700; margin-bottom: 16px; }

.cal-day-timeline {
  display: flex;
  flex-direction: column;
  flex: 1;
  gap: 0;
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--border-light);
}
.cal-day-hour {
  display: flex;
  min-height: 54px;
  border-bottom: 1px solid var(--border-light);
}
.cal-day-hour-label {
  width: 50px;
  flex-shrink: 0;
  font-size: 0.72rem;
  color: var(--text-dim);
  padding: 6px 8px;
  border-right: 1px solid var(--border-light);
  display: flex;
  align-items: flex-start;
  background: var(--bg-card2);
}
.cal-day-hour-events {
  flex: 1;
  padding: 4px;
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.cal-day-event {
  padding: 4px 8px;
  border-radius: 6px;
  font-size: 0.78rem;
  font-weight: 600;
  color: white;
  cursor: pointer;
  transition: all var(--transition);
}
.cal-day-event:hover { filter: brightness(1.2); transform: translateX(2px); }

/* ═══════════════════════════════════════════════
   RECURRING
   ═══════════════════════════════════════════════ */
.recurring-list { display: flex; flex-direction: column; gap: 12px; }

.recurring-item {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 16px;
  background: var(--glass-bg);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-lg);
  transition: all var(--transition);
  animation: slideUp 0.25s ease both;
}
.recurring-item:hover { transform: translateY(-2px); box-shadow: var(--shadow); }

.rec-color-dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  flex-shrink: 0;
}

.rec-body { flex: 1; min-width: 0; }
.rec-title { font-size: 0.92rem; font-weight: 600; }
.rec-meta { font-size: 0.78rem; color: var(--text-dim); margin-top: 4px; display: flex; gap: 12px; flex-wrap: wrap; }

.rec-badge {
  padding: 3px 8px;
  border-radius: 6px;
  font-size: 0.72rem;
  font-weight: 600;
  background: rgba(124,58,237,0.15);
  color: var(--purple-light);
}
.rec-badge.paused { background: rgba(239,68,68,0.12); color: #fca5a5; }

.rec-actions { display: flex; gap: 4px; }

/* ═══════════════════════════════════════════════
   STATISTICS
   ═══════════════════════════════════════════════ */
.stats-content { display: flex; flex-direction: column; gap: 20px; }
.stats-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); gap: 16px; }

.stat-card {
  padding: 20px;
  border-radius: var(--radius-lg);
  background: var(--glass-bg);
  border: 1px solid var(--glass-border);
  transition: all var(--transition);
  text-align: center;
}
.stat-card:hover { transform: translateY(-3px); box-shadow: 0 8px 24px rgba(0,0,0,0.3); }

.stat-value {
  font-size: 2rem;
  font-weight: 800;
  background: linear-gradient(135deg, #fff, #c084fc);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  line-height: 1.1;
}
.stat-label { font-size: 0.8rem; color: var(--text-dim); margin-top: 6px; }

.chart-card {
  padding: 20px;
  background: var(--glass-bg);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-lg);
}
.chart-title { font-size: 0.92rem; font-weight: 700; margin-bottom: 16px; }

/* Weekly bar chart */
.bar-chart {
  display: flex;
  align-items: flex-end;
  gap: 8px;
  height: 150px;
}
.bar-col { display: flex; flex-direction: column; align-items: center; gap: 6px; flex: 1; }
.bar-wrap {
  flex: 1;
  width: 100%;
  display: flex;
  align-items: flex-end;
  background: rgba(255,255,255,0.04);
  border-radius: 4px 4px 0 0;
}
.bar-fill {
  width: 100%;
  border-radius: 4px 4px 0 0;
  background: linear-gradient(to top, #7c3aed, #a855f7);
  transition: height 0.6s cubic-bezier(0.4,0,0.2,1);
  min-height: 4px;
}
.bar-label { font-size: 0.7rem; color: var(--text-dim); }
.bar-value { font-size: 0.72rem; color: var(--purple-light); font-weight: 600; }

/* Category breakdown */
.cat-list { display: flex; flex-direction: column; gap: 10px; }
.cat-item { display: flex; flex-direction: column; gap: 4px; }
.cat-item-header { display: flex; justify-content: space-between; font-size: 0.82rem; }
.cat-bar { height: 6px; background: rgba(255,255,255,0.06); border-radius: 3px; overflow: hidden; }
.cat-bar-fill { height: 100%; background: linear-gradient(90deg, #7c3aed, #a855f7); border-radius: 3px; transition: width 0.6s ease; }

/* ═══════════════════════════════════════════════
   SETTINGS
   ═══════════════════════════════════════════════ */
.settings-content { display: flex; flex-direction: column; gap: 20px; max-width: 600px; }

.settings-card {
  padding: 24px;
  background: var(--glass-bg);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-lg);
}
.settings-card h3 { font-size: 1rem; font-weight: 700; margin-bottom: 20px; color: var(--purple-light); }

.settings-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 0;
  border-bottom: 1px solid var(--border-light);
}
.settings-row:last-child { border-bottom: none; padding-bottom: 0; }

.settings-label { font-size: 0.88rem; }
.settings-sublabel { font-size: 0.76rem; color: var(--text-dim); margin-top: 2px; }

/* Toggle Switch */
.toggle-switch {
  position: relative;
  width: 44px;
  height: 24px;
}
.toggle-switch input { opacity: 0; width: 0; height: 0; }
.toggle-slider {
  position: absolute;
  inset: 0;
  background: rgba(255,255,255,0.1);
  border-radius: 12px;
  cursor: pointer;
  transition: all 0.3s;
}
.toggle-slider::before {
  content: '';
  position: absolute;
  width: 18px;
  height: 18px;
  background: white;
  border-radius: 50%;
  top: 3px;
  left: 3px;
  transition: transform 0.3s;
}
.toggle-switch input:checked + .toggle-slider { background: linear-gradient(135deg, #7c3aed, #a855f7); }
.toggle-switch input:checked + .toggle-slider::before { transform: translateX(20px); }

.settings-input {
  width: 80px;
  padding: 7px 10px;
  background: rgba(255,255,255,0.05);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-sm);
  color: var(--text);
  font-size: 0.88rem;
  text-align: center;
}
.settings-input:focus { border-color: rgba(124,58,237,0.4); }
.settings-input option { background: #1a1a2e; color: #fff; }

.avatar-editor {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 16px;
}
.avatar-large {
  width: 64px;
  height: 64px;
  border-radius: 18px;
  background: linear-gradient(135deg, #7c3aed, #a855f7);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.8rem;
  font-weight: 700;
  color: white;
  box-shadow: 0 4px 16px rgba(124,58,237,0.35);
}

/* ═══════════════════════════════════════════════
   MODALS
   ═══════════════════════════════════════════════ */
.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.7);
  backdrop-filter: blur(8px);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 200;
  padding: 16px;
  animation: fadeIn 0.2s ease;
}

.modal-card {
  width: 100%;
  max-width: 520px;
  max-height: 90vh;
  overflow-y: auto;
  animation: scaleIn 0.25s ease;
  border: 1px solid rgba(124,58,237,0.2);
}

.confirm-card {
  max-width: 380px;
  text-align: center;
  padding: 32px;
}
.confirm-icon { color: rgba(239,68,68,0.7); margin-bottom: 16px; display: flex; justify-content: center; }
.confirm-card h3 { font-size: 1.1rem; font-weight: 700; margin-bottom: 8px; }
.confirm-card p { font-size: 0.88rem; color: var(--text-muted); margin-bottom: 24px; }

.modal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 20px 24px 16px;
  border-bottom: 1px solid var(--border-light);
}
.modal-header h3 { font-size: 1rem; font-weight: 700; }

.modal-tabs { display: flex; gap: 0; background: rgba(255,255,255,0.05); border-radius: var(--radius); padding: 4px; }
.modal-tab {
  padding: 7px 16px;
  border-radius: 8px;
  font-size: 0.83rem;
  font-weight: 500;
  color: var(--text-muted);
  transition: all var(--transition);
}
.modal-tab.active { background: linear-gradient(135deg, #7c3aed, #a855f7); color: white; }
.modal-tab:hover:not(.active) { color: var(--text); }

.modal-close { color: var(--text-dim); padding: 6px; border-radius: 8px; transition: all var(--transition); }
.modal-close:hover { background: rgba(239,68,68,0.1); color: #fca5a5; }

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

.modal-footer {
  display: flex;
  justify-content: flex-end;
  gap: 10px;
  padding-top: 8px;
  margin-top: 8px;
  border-top: 1px solid var(--border-light);
}

/* Form elements inside modal */
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }

.modal-body input[type="text"],
.modal-body input[type="date"],
.modal-body input[type="time"],
.modal-body input[type="number"],
.modal-body input[type="password"],
.modal-body select,
.modal-body textarea {
  width: 100%;
  padding: 10px 14px;
  background: rgba(255,255,255,0.05);
  border: 1px solid var(--border-light);
  border-radius: var(--radius);
  color: var(--text);
  font-size: 0.88rem;
  transition: all var(--transition);
}
.modal-body input:focus,
.modal-body select:focus,
.modal-body textarea:focus {
  border-color: rgba(124,58,237,0.5);
  box-shadow: 0 0 0 3px rgba(124,58,237,0.1);
}
.modal-body textarea { resize: vertical; min-height: 70px; }
.modal-body select { appearance: none; cursor: pointer; }

input[type="date"]::-webkit-calendar-picker-indicator,
input[type="time"]::-webkit-calendar-picker-indicator {
  filter: invert(0.7);
}

/* Priority Selector */
.priority-selector { display: flex; gap: 6px; flex-wrap: wrap; }
.priority-btn {
  display: flex;
  align-items: center;
  gap: 5px;
  padding: 7px 12px;
  border-radius: var(--radius);
  border: 1px solid var(--border-light);
  color: var(--text-dim);
  font-size: 0.78rem;
  font-weight: 500;
  transition: all var(--transition);
  background: transparent;
}
.priority-btn:hover { border-color: rgba(124,58,237,0.3); color: var(--text); }
.priority-btn.active { background: rgba(124,58,237,0.15); border-color: rgba(124,58,237,0.4); color: var(--purple-light); }
.priority-btn[data-value="5"].active { background: rgba(239,68,68,0.12); border-color: rgba(239,68,68,0.3); color: #fca5a5; }
.priority-btn[data-value="4"].active { background: rgba(245,158,11,0.12); border-color: rgba(245,158,11,0.3); color: #fbbf24; }
.priority-btn[data-value="2"].active { background: rgba(59,130,246,0.12); border-color: rgba(59,130,246,0.3); color: #60a5fa; }
.priority-btn[data-value="1"].active { background: rgba(100,116,139,0.12); border-color: rgba(100,116,139,0.3); color: #94a3b8; }

/* Color Picker */
.color-picker { display: flex; gap: 8px; flex-wrap: wrap; }
.color-swatch {
  width: 28px;
  height: 28px;
  border-radius: 8px;
  cursor: pointer;
  transition: all var(--transition);
  border: 2px solid transparent;
}
.color-swatch:hover { transform: scale(1.15); }
.color-swatch.active { border-color: white; box-shadow: 0 0 0 1px rgba(255,255,255,0.3); transform: scale(1.1); }

/* Days Selector */
.days-selector { display: flex; gap: 8px; flex-wrap: wrap; }
.day-check {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 7px 12px;
  border-radius: var(--radius);
  border: 1px solid var(--border-light);
  cursor: pointer;
  font-size: 0.82rem;
  font-weight: 500;
  transition: all var(--transition);
  color: var(--text-muted);
}
.day-check input { display: none; }
.day-check:has(input:checked) { background: rgba(124,58,237,0.15); border-color: rgba(124,58,237,0.4); color: var(--purple-light); }
.day-check:hover { border-color: rgba(124,58,237,0.3); }

/* ═══════════════════════════════════════════════
   WIDGETS (Right Panel)
   ═══════════════════════════════════════════════ */
.widget-card { padding: 18px; }

.widget-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 14px;
}
.widget-header h3 { font-size: 0.88rem; font-weight: 700; }

/* ─── POMODORO ────────────────────────────────── */
.pomodoro-widget { position: relative; overflow: hidden; }
.pomodoro-widget::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse at 50% 50%, rgba(124,58,237,0.07), transparent);
  pointer-events: none;
}

.pomodoro-sessions {
  display: flex;
  align-items: center;
  gap: 5px;
  font-size: 0.82rem;
  color: var(--purple-light);
  font-weight: 700;
}

.pomodoro-modes {
  display: flex;
  gap: 4px;
  background: rgba(255,255,255,0.04);
  border-radius: var(--radius);
  padding: 3px;
  margin-bottom: 16px;
}
.mode-btn {
  flex: 1;
  padding: 6px;
  border-radius: 8px;
  font-size: 0.74rem;
  font-weight: 600;
  color: var(--text-muted);
  transition: all var(--transition);
  text-align: center;
}
.mode-btn.active { background: linear-gradient(135deg, #7c3aed, #a855f7); color: white; }
.mode-btn:hover:not(.active) { background: rgba(255,255,255,0.05); color: var(--text); }

.pomodoro-circle {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 16px;
  width: 160px;
  height: 160px;
}

.timer-svg { position: absolute; inset: 0; transform: rotate(-90deg); }
.timer-bg { fill: none; stroke: rgba(255,255,255,0.05); stroke-width: 8; }
.timer-progress {
  fill: none;
  stroke: url(#timerGrad);
  stroke-width: 8;
  stroke-linecap: round;
  transition: stroke-dashoffset 1s linear;
  filter: drop-shadow(0 0 8px rgba(124,58,237,0.6));
}

.timer-display {
  position: relative;
  text-align: center;
  z-index: 1;
}
.timer-time {
  font-size: 2rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  background: linear-gradient(135deg, #fff, #c084fc);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  cursor: pointer;
  transition: opacity 0.15s;
}
.timer-time:hover { opacity: 0.75; }
.timer-edit-input {
  width: 90px;
  font-size: 2rem;
  font-weight: 800;
  text-align: center;
  background: rgba(124,58,237,0.15);
  border: 2px solid #7c3aed;
  border-radius: 12px;
  color: #fff;
  outline: none;
  padding: 2px 8px;
  letter-spacing: -0.02em;
  -moz-appearance: textfield;
}
.timer-edit-input::-webkit-outer-spin-button,
.timer-edit-input::-webkit-inner-spin-button { -webkit-appearance: none; }
.timer-label { font-size: 0.7rem; color: var(--text-dim); margin-top: 4px; }

.pomodoro-controls {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
}

.btn-pomodoro-main {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  background: linear-gradient(135deg, #7c3aed, #a855f7);
  color: white;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all var(--transition);
  box-shadow: 0 4px 16px rgba(124,58,237,0.35);
}
.btn-pomodoro-main:hover { transform: scale(1.05); box-shadow: 0 6px 24px rgba(124,58,237,0.5); }
.btn-pomodoro-main:active { transform: scale(0.96); }

/* ─── TODAY STATS WIDGET ─────────────────────── */
.stats-mini-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}
.stats-mini-item {
  background: rgba(255,255,255,0.03);
  border-radius: var(--radius);
  padding: 10px;
  text-align: center;
}
.stats-mini-value {
  display: block;
  font-size: 1.4rem;
  font-weight: 800;
  background: linear-gradient(135deg, #fff, #c084fc);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}
.streak-val { color: #f59e0b !important; -webkit-text-fill-color: #f59e0b !important; }
.stats-mini-label { font-size: 0.7rem; color: var(--text-dim); margin-top: 3px; display: block; }

/* ═══════════════════════════════════════════════
   TOAST NOTIFICATIONS
   ═══════════════════════════════════════════════ */
.toast-container {
  position: fixed;
  bottom: 80px;
  right: 20px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  z-index: 1000;
  max-width: 320px;
}

.toast {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 16px;
  background: var(--bg-card2);
  border-radius: var(--radius);
  border-left: 3px solid var(--purple);
  box-shadow: 0 4px 20px rgba(0,0,0,0.4);
  animation: toastIn 0.3s ease;
  font-size: 0.85rem;
}
.toast.success { border-left-color: var(--success); }
.toast.error { border-left-color: var(--danger); }
.toast.warning { border-left-color: var(--warning); }
.toast.removing { animation: toastOut 0.3s ease forwards; }

/* ═══════════════════════════════════════════════
   SIDEBAR OVERLAY (mobile)
   ═══════════════════════════════════════════════ */
.sidebar-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.6);
  z-index: 99;
  backdrop-filter: blur(4px);
}

/* ═══════════════════════════════════════════════
   SVG GRADIENT DEFS (inline)
   ═══════════════════════════════════════════════ */
.timer-svg defs { display: none; }

/* ═══════════════════════════════════════════════
   LOADING SKELETON
   ═══════════════════════════════════════════════ */
.skeleton {
  background: linear-gradient(90deg, rgba(255,255,255,0.04) 25%, rgba(255,255,255,0.08) 50%, rgba(255,255,255,0.04) 75%);
  background-size: 200% 100%;
  animation: shimmer 1.4s infinite;
  border-radius: var(--radius);
}
.skeleton-line { height: 14px; margin-bottom: 8px; }
.skeleton-card { height: 72px; margin-bottom: 8px; }

/* ═══════════════════════════════════════════════
   RESPONSIVE — TABLET
   ═══════════════════════════════════════════════ */
@media (max-width: 1200px) {
  :root { --right-panel-width: 240px; }
}

@media (max-width: 1024px) {
  .right-panel { display: none; }
  .main-content { margin-right: 0; }
}

/* ═══════════════════════════════════════════════
   RESPONSIVE — MOBILE
   ═══════════════════════════════════════════════ */
@media (max-width: 768px) {
  .sidebar {
    transform: translateX(-100%);
    z-index: 100;
  }
  .sidebar.open { transform: translateX(0); }
  .sidebar-close { display: flex; }

  .main-content {
    margin-left: 0;
    margin-right: 0;
    padding: 0 0 80px;
  }

  .topbar { display: flex; }

  .page { padding: 16px; }

  .page-header { flex-direction: column; gap: 12px; }
  .page-header .btn-primary { width: 100%; }

  .bottom-nav { display: flex; }

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

  .week-nav { gap: 4px; }
  .week-day { min-width: 48px; padding: 8px 10px; }

  .search-box input { width: 160px; }
  .search-box input:focus { width: 160px; }

  .stats-grid { grid-template-columns: repeat(2, 1fr); }

  .modal-card { max-height: 95vh; }
  .modal-body { padding: 16px; }
  .modal-header { padding: 16px; }

  .cal-month-grid { gap: 2px; }
  .cal-day { min-height: 60px; padding: 4px; }

  .filters-bar { gap: 6px; }
  .filter-select { font-size: 0.8rem; padding: 7px 10px; }
}

@media (max-width: 480px) {
  .priority-selector { gap: 4px; }
  .priority-btn { padding: 6px 8px; font-size: 0.72rem; }

  .modal-tabs { gap: 0; }
  .modal-tab { padding: 6px 10px; font-size: 0.78rem; }

  .hint-pills { gap: 6px; }
}

/* ═══════════════════════════════════════════════
   HABITS PAGE & CARDS
   ═══════════════════════════════════════════════ */
.habits-count-badge {
  font-size: 0.82rem;
  font-weight: 500;
  color: var(--purple-light);
  background: rgba(124,58,237,0.15);
  padding: 2px 10px;
  border-radius: 20px;
  margin-left: 8px;
  vertical-align: middle;
}

#habits-list {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 16px;
  padding-bottom: 24px;
}

.habit-card {
  background: var(--bg-card);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-lg);
  padding: 18px 18px 14px;
  position: relative;
  overflow: hidden;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  animation: slideUp 0.35s ease both;
}

.habit-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 32px rgba(0,0,0,0.35);
}

.habit-card-accent {
  position: absolute;
  left: 0;
  top: 0;
  width: 3px;
  height: 100%;
  border-radius: 4px 0 0 4px;
}

.habit-header {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  margin-bottom: 14px;
}

.habit-icon-wrap {
  width: 42px;
  height: 42px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.habit-icon {
  font-size: 1.4rem;
  line-height: 1;
}

.habit-info {
  flex: 1;
  min-width: 0;
}

.habit-name {
  font-size: 0.97rem;
  font-weight: 600;
  color: var(--text);
  margin-bottom: 2px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.habit-desc {
  font-size: 0.78rem;
  color: var(--text-dim);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.habit-check-btn {
  flex-shrink: 0;
  padding: 7px 14px;
  border-radius: 20px;
  border: 1px solid var(--border-light);
  background: rgba(255,255,255,0.04);
  color: var(--text-muted);
  font-size: 0.8rem;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.18s ease;
  white-space: nowrap;
}

.habit-check-btn:hover {
  border-color: var(--purple);
  color: var(--purple-light);
  background: rgba(124,58,237,0.12);
}

.habit-check-btn.done {
  color: #fff;
  font-weight: 600;
  transform: scale(1.03);
}

.habit-stats-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 12px;
  gap: 10px;
}

.habit-streak {
  display: flex;
  align-items: center;
  gap: 4px;
  background: rgba(245,158,11,0.1);
  border: 1px solid rgba(245,158,11,0.2);
  border-radius: 20px;
  padding: 4px 10px;
  flex-shrink: 0;
}

.streak-fire {
  font-size: 0.95rem;
}

.streak-num {
  font-size: 0.9rem;
  font-weight: 700;
  color: #f59e0b;
}

.streak-label {
  font-size: 0.73rem;
  color: var(--text-dim);
}

.habit-week-dots {
  display: flex;
  gap: 5px;
  align-items: center;
}

.habit-week-dot {
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: rgba(255,255,255,0.07);
  border: 1px solid rgba(255,255,255,0.08);
  transition: all 0.2s ease;
  flex-shrink: 0;
}

.habit-week-dot.done {
  border-color: transparent;
}

.habit-progress-wrap {
  margin-bottom: 10px;
}

.habit-progress-info {
  display: flex;
  justify-content: space-between;
  margin-bottom: 5px;
}

.habit-progress-label {
  font-size: 0.75rem;
  color: var(--text-dim);
}

.habit-progress-val {
  font-size: 0.75rem;
  color: var(--purple-light);
  font-weight: 500;
}

.habit-progress-bar {
  height: 5px;
  background: rgba(255,255,255,0.06);
  border-radius: 10px;
  overflow: hidden;
}

.habit-progress-fill {
  height: 100%;
  border-radius: 10px;
  transition: width 0.5s ease;
  min-width: 0;
}

.habit-actions {
  display: flex;
  justify-content: flex-end;
  gap: 4px;
  border-top: 1px solid var(--border-light);
  padding-top: 10px;
  margin-top: 4px;
}

/* Target day selector in modal */
.habit-target-selector {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
}

.target-day-btn {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  border: 1px solid var(--border-light);
  background: rgba(255,255,255,0.04);
  color: var(--text-muted);
  font-size: 0.85rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.15s ease;
  display: flex;
  align-items: center;
  justify-content: center;
}

.target-day-btn:hover {
  border-color: var(--purple);
  color: var(--purple-light);
}

.target-day-btn.active {
  background: linear-gradient(135deg, var(--purple), var(--purple-mid));
  border-color: transparent;
  color: #fff;
  box-shadow: 0 0 12px rgba(124,58,237,0.4);
}

@media (max-width: 768px) {
  #habits-list {
    grid-template-columns: 1fr;
  }
  .habit-week-dot {
    width: 18px;
    height: 18px;
  }
}

/* ═══════════════════════════════════════════════
   POMODORO PAGE (mobile full screen)
   ═══════════════════════════════════════════════ */
.pomodoro-page-content {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 20px;
  padding-bottom: 24px;
}

.pom-modes-page {
  width: 100%;
  max-width: 360px;
  margin-bottom: 4px;
}

.pom-circle-page {
  width: 240px;
  height: 240px;
  margin: 0 auto;
}

.pom-controls-page {
  gap: 24px;
}

.pom-btn-big {
  width: 72px !important;
  height: 72px !important;
}

/* Modern light workspace theme overrides */
body {
  background:
    linear-gradient(180deg, #f8fafc 0%, #eef2f5 48%, #e8f1f0 100%);
}

::-webkit-scrollbar-thumb { background: rgba(15,118,110,0.28); }
::-webkit-scrollbar-thumb:hover { background: rgba(15,118,110,0.42); }

.glass-card,
.task-item,
.habit-card,
.stat-card,
.chart-card,
.settings-card,
.widget-card,
.modal-card,
.confirm-card {
  background: rgba(255,255,255,0.92);
  border: 1px solid rgba(15,23,42,0.08);
  box-shadow: 0 14px 34px rgba(15,23,42,0.08);
}

.sidebar,
.right-panel,
.topbar {
  background: rgba(255,255,255,0.94);
  color: var(--text);
  box-shadow: 10px 0 32px rgba(15,23,42,0.04);
}

.sidebar-logo,
.page-title,
.logo-text h1 {
  background: none;
  -webkit-text-fill-color: currentColor;
  color: #0f172a;
}

.logo-icon,
.add-btn-circle,
.btn-primary,
.btn-pomodoro-main,
.task-checkbox.checked,
.modal-tab.active,
.target-day-btn.active,
.toggle-switch input:checked + .toggle-slider {
  background: linear-gradient(135deg, #0f766e, #2563eb);
  box-shadow: 0 10px 22px rgba(15,118,110,0.22);
}

.btn-primary:hover,
.add-btn-circle:hover,
.btn-pomodoro-main:hover {
  box-shadow: 0 14px 30px rgba(37,99,235,0.22);
  filter: none;
}

.btn-outline,
.btn-icon,
.task-btn,
.modal-close {
  background: #ffffff;
  border: 1px solid rgba(15,23,42,0.08);
  color: var(--text-muted);
}

.btn-outline:hover,
.btn-icon:hover,
.task-btn:hover {
  background: #edf7f6;
  border-color: rgba(15,118,110,0.24);
  color: #0f766e;
}

.sidebar-user {
  background: #eff8f7;
  border: 1px solid rgba(15,118,110,0.12);
}

.user-avatar {
  background: linear-gradient(135deg, #0f766e, #2563eb) !important;
}

.user-role,
.progress-count,
.quote-author,
.week-day.active .week-day-name,
.week-day.today-marker .week-day-num,
.bottom-nav-item.active,
.bottom-nav-item:not(.bottom-nav-add):hover,
.settings-card h3 {
  color: #0f766e;
}

.nav-item {
  color: #64748b;
}

.nav-item:hover {
  background: #f1f7f6;
  color: #0f172a;
}

.nav-item.active {
  background: #e6f4f2;
  border: 1px solid rgba(15,118,110,0.16);
  color: #0f766e;
  box-shadow: inset 3px 0 0 #0f766e;
}

.nav-item.active svg {
  color: #0f766e;
}

.main-content {
  background:
    radial-gradient(circle at top right, rgba(37,99,235,0.08), transparent 34rem),
    radial-gradient(circle at 8% 12%, rgba(15,118,110,0.1), transparent 30rem);
}

.progress-bar-wrap,
.habit-progress-bar {
  background: #e2e8f0;
}

.progress-bar-fill,
.habit-progress-fill {
  background: linear-gradient(90deg, #0f766e, #2563eb);
  box-shadow: none;
}

.quote-card::before {
  background: linear-gradient(135deg, rgba(15,118,110,0.08), rgba(37,99,235,0.05));
}

.quote-icon,
.empty-icon {
  color: rgba(15,118,110,0.24);
}

.week-nav-divider {
  background: rgba(15,23,42,0.08);
}

.week-day:hover,
.target-day-btn:hover {
  background: #f1f7f6;
  border-color: rgba(15,118,110,0.16);
  color: #0f766e;
}

.week-day.active,
.cal-day.selected,
.cal-mini-day.selected,
.day-check:has(input:checked) {
  background: #e6f4f2;
  border-color: rgba(15,118,110,0.3);
  box-shadow: none;
}

.week-day.active .week-day-num {
  color: #0f172a;
}

.week-day-dot {
  background: #2563eb;
}

.search-box input,
.filter-select,
.settings-input,
.timer-edit-input,
.target-day-btn,
.modal-body input[type="text"],
.modal-body input[type="date"],
.modal-body input[type="time"],
.modal-body input[type="number"],
.modal-body input[type="password"],
.modal-body select,
.modal-body textarea,
.input-wrapper input {
  background: #ffffff;
  border: 1px solid rgba(15,23,42,0.1);
  color: var(--text);
  box-shadow: 0 1px 2px rgba(15,23,42,0.03);
}

.search-box input:focus,
.filter-select:focus,
.settings-input:focus,
.timer-edit-input:focus,
.modal-body input:focus,
.modal-body select:focus,
.modal-body textarea:focus,
.input-wrapper input:focus {
  border-color: rgba(15,118,110,0.45);
  box-shadow: 0 0 0 3px rgba(15,118,110,0.12);
}

.filter-select,
.settings-input option,
.filter-select option {
  background-color: #ffffff;
  color: var(--text);
}

.task-item:hover,
.habit-card:hover,
.stat-card:hover {
  transform: translateY(-2px);
  border-color: rgba(15,118,110,0.2);
  box-shadow: 0 18px 36px rgba(15,23,42,0.1);
}

.task-checkbox {
  border-color: rgba(15,118,110,0.42);
}

.task-checkbox:hover {
  border-color: #0f766e;
  background: #e6f4f2;
}

.task-item.drag-over {
  border-color: #0f766e;
  box-shadow: 0 0 0 3px rgba(15,118,110,0.14);
}

.task-category-badge,
.hint-pill {
  background: #e6f4f2;
  border-color: rgba(15,118,110,0.14);
  color: #0f766e;
}

.task-btn.delete:hover,
.btn-logout:hover,
.modal-close:hover {
  background: rgba(239,68,68,0.08);
  color: #dc2626;
}

.modal-overlay {
  background: rgba(15,23,42,0.32);
}

.modal-tabs {
  background: #eef2f5;
}

.bottom-nav {
  background: rgba(255,255,255,0.94);
  border-top: 1px solid rgba(15,23,42,0.08);
  box-shadow: 0 -12px 30px rgba(15,23,42,0.08);
}

.login-page {
  background:
    radial-gradient(circle at 20% 20%, rgba(15,118,110,0.14), transparent 28rem),
    radial-gradient(circle at 80% 20%, rgba(37,99,235,0.12), transparent 24rem),
    linear-gradient(180deg, #f8fafc, #eef2f5);
}

.blob-1 { background: rgba(15,118,110,0.12); }
.blob-2 { background: rgba(37,99,235,0.1); }
.blob-3 { background: rgba(20,184,166,0.08); }

.login-card {
  border-color: rgba(15,118,110,0.16);
  box-shadow: 0 24px 54px rgba(15,23,42,0.1);
}

/* Number readability fixes for the light theme */
.week-day-num,
.cal-day-num,
.wdh-num,
.cal-mini-day,
.cal-week-time-slot,
.cal-day-hour-label,
.stat-value,
.stats-mini-value,
.streak-num,
.habit-progress-val,
.progress-count,
.progress-meta,
.timer-time,
.timer-edit-input,
.bar-value,
.task-time,
.task-duration,
.habits-count-badge {
  color: #0f172a;
  -webkit-text-fill-color: currentColor;
}

.stat-value,
.stats-mini-value,
.timer-time,
.streak-num {
  font-weight: 800;
}

.progress-meta,
.task-time,
.task-duration,
.cal-week-time-slot,
.cal-day-hour-label {
  color: #334155;
}

.cal-mini-day.has-tasks {
  color: #0f172a;
}

.cal-mini-day.today,
.cal-day.today .cal-day-num {
  background: #0f766e;
  color: #ffffff;
  -webkit-text-fill-color: #ffffff;
}

.cal-mini-day.selected,
.week-day.active .week-day-num {
  color: #0f172a;
  -webkit-text-fill-color: #0f172a;
}

.bar-value,
.progress-count,
.habit-progress-val {
  color: #0f766e;
  -webkit-text-fill-color: #0f766e;
}

/* Dark mode */
body[data-theme="dark"] {
  --bg: #0f172a;
  --bg-card: #111827;
  --bg-card2: #172033;
  --bg-card3: #1e293b;
  --border: rgba(148, 163, 184, 0.16);
  --border-light: rgba(148, 163, 184, 0.12);
  --purple: #2dd4bf;
  --purple-mid: #60a5fa;
  --purple-light: #5eead4;
  --purple-glow: rgba(45, 212, 191, 0.18);
  --text: #f8fafc;
  --text-muted: #cbd5e1;
  --text-dim: #94a3b8;
  --glass-bg: rgba(15, 23, 42, 0.88);
  --glass-border: rgba(148, 163, 184, 0.14);
  background:
    radial-gradient(circle at top right, rgba(37,99,235,0.16), transparent 34rem),
    radial-gradient(circle at 8% 12%, rgba(45,212,191,0.13), transparent 30rem),
    linear-gradient(180deg, #0f172a 0%, #111827 52%, #0b1120 100%);
}

body[data-theme="dark"] .glass-card,
body[data-theme="dark"] .task-item,
body[data-theme="dark"] .habit-card,
body[data-theme="dark"] .stat-card,
body[data-theme="dark"] .chart-card,
body[data-theme="dark"] .settings-card,
body[data-theme="dark"] .widget-card,
body[data-theme="dark"] .modal-card,
body[data-theme="dark"] .confirm-card {
  background: rgba(17, 24, 39, 0.94);
  border-color: rgba(148, 163, 184, 0.14);
  box-shadow: 0 18px 42px rgba(0,0,0,0.32);
}

body[data-theme="dark"] .sidebar,
body[data-theme="dark"] .right-panel,
body[data-theme="dark"] .topbar,
body[data-theme="dark"] .bottom-nav {
  background: rgba(15, 23, 42, 0.96);
  border-color: rgba(148, 163, 184, 0.12);
  color: var(--text);
}

body[data-theme="dark"] .main-content {
  background:
    radial-gradient(circle at top right, rgba(37,99,235,0.15), transparent 34rem),
    radial-gradient(circle at 8% 12%, rgba(45,212,191,0.12), transparent 30rem);
}

body[data-theme="dark"] .sidebar-logo,
body[data-theme="dark"] .page-title,
body[data-theme="dark"] .logo-text h1 {
  color: #f8fafc;
}

body[data-theme="dark"] .sidebar-user,
body[data-theme="dark"] .week-day.active,
body[data-theme="dark"] .cal-day.selected,
body[data-theme="dark"] .cal-mini-day.selected,
body[data-theme="dark"] .day-check:has(input:checked),
body[data-theme="dark"] .task-category-badge,
body[data-theme="dark"] .hint-pill {
  background: rgba(45, 212, 191, 0.12);
  border-color: rgba(45, 212, 191, 0.24);
  color: #5eead4;
}

body[data-theme="dark"] .nav-item {
  color: #cbd5e1;
}

body[data-theme="dark"] .nav-item:hover {
  background: rgba(45, 212, 191, 0.08);
  color: #f8fafc;
}

body[data-theme="dark"] .nav-item.active {
  background: rgba(45, 212, 191, 0.14);
  border-color: rgba(45, 212, 191, 0.22);
  color: #5eead4;
  box-shadow: inset 3px 0 0 #2dd4bf;
}

body[data-theme="dark"] .btn-outline,
body[data-theme="dark"] .btn-icon,
body[data-theme="dark"] .task-btn,
body[data-theme="dark"] .modal-close,
body[data-theme="dark"] .search-box input,
body[data-theme="dark"] .filter-select,
body[data-theme="dark"] .settings-input,
body[data-theme="dark"] .timer-edit-input,
body[data-theme="dark"] .target-day-btn,
body[data-theme="dark"] .modal-body input[type="text"],
body[data-theme="dark"] .modal-body input[type="date"],
body[data-theme="dark"] .modal-body input[type="time"],
body[data-theme="dark"] .modal-body input[type="number"],
body[data-theme="dark"] .modal-body input[type="password"],
body[data-theme="dark"] .modal-body select,
body[data-theme="dark"] .modal-body textarea,
body[data-theme="dark"] .input-wrapper input {
  background: #0f172a;
  border-color: rgba(148, 163, 184, 0.18);
  color: #f8fafc;
}

body[data-theme="dark"] .filter-select option,
body[data-theme="dark"] .settings-input option {
  background: #0f172a;
  color: #f8fafc;
}

body[data-theme="dark"] .progress-bar-wrap,
body[data-theme="dark"] .habit-progress-bar,
body[data-theme="dark"] .modal-tabs {
  background: rgba(148, 163, 184, 0.14);
}

body[data-theme="dark"] .week-nav-divider {
  background: rgba(148, 163, 184, 0.12);
}

body[data-theme="dark"] .week-day-num,
body[data-theme="dark"] .cal-day-num,
body[data-theme="dark"] .wdh-num,
body[data-theme="dark"] .cal-mini-day,
body[data-theme="dark"] .cal-week-time-slot,
body[data-theme="dark"] .cal-day-hour-label,
body[data-theme="dark"] .stat-value,
body[data-theme="dark"] .stats-mini-value,
body[data-theme="dark"] .streak-num,
body[data-theme="dark"] .habit-progress-val,
body[data-theme="dark"] .progress-count,
body[data-theme="dark"] .progress-meta,
body[data-theme="dark"] .timer-time,
body[data-theme="dark"] .timer-edit-input,
body[data-theme="dark"] .bar-value,
body[data-theme="dark"] .task-time,
body[data-theme="dark"] .task-duration,
body[data-theme="dark"] .habits-count-badge,
body[data-theme="dark"] .cal-mini-day.selected,
body[data-theme="dark"] .week-day.active .week-day-num {
  color: #f8fafc;
  -webkit-text-fill-color: #f8fafc;
}

body[data-theme="dark"] .bar-value,
body[data-theme="dark"] .progress-count,
body[data-theme="dark"] .habit-progress-val,
body[data-theme="dark"] .user-role,
body[data-theme="dark"] .quote-author,
body[data-theme="dark"] .settings-card h3 {
  color: #5eead4;
  -webkit-text-fill-color: #5eead4;
}

body[data-theme="dark"] .cal-mini-day.today,
body[data-theme="dark"] .cal-day.today .cal-day-num {
  background: #2dd4bf;
  color: #0f172a;
  -webkit-text-fill-color: #0f172a;
}
