/**
 * Smart Planner — style.css
 *
 * SECTION INDEX (search for "SECTION:"):
 *   SECTION: Global base
 *   SECTION: Landing page
 *   SECTION: Landing — hero & preview
 *   SECTION: Landing — features, workflow, CTA
 *   SECTION: Landing — footer
 *   SECTION: Legacy / shared utilities
 *   SECTION: Calendar & datepicker
 *   SECTION: Dashboard (planner + analytics layout)
 *   SECTION: Dashboard — sidebar
 *   SECTION: Dashboard — main, stats, tasks
 *   SECTION: Dashboard — dark mode
 *   SECTION: Dashboard — task timers
 *   SECTION: Analytics page
 *   SECTION: Analytics — dark mode glyphs
 *   SECTION: Responsive breakpoints
 */

/* ==========================================================================
   SECTION: Global base
   ========================================================================== */
body {
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  background: radial-gradient(circle at top right, #111827 0%, #0f1115 35%, #0a0c10 100%);
  color: #f8f9fa;
}

/* ==========================================================================
   SECTION: Landing page
   ========================================================================== */
.landing-page {
  min-height: 100vh;
  background:
    radial-gradient(ellipse 120% 80% at 100% -10%, rgba(233, 133, 146, 0.35), transparent 55%),
    radial-gradient(ellipse 90% 70% at 0% 20%, rgba(124, 92, 255, 0.35), transparent 50%),
    radial-gradient(circle at 50% 100%, rgba(15, 23, 42, 0.9), #07060d 45%, #040308 100%);
  color: #eef2ff;
}

.landing-page a {
  color: inherit;
}

.landing-header {
  position: sticky;
  top: 0;
  z-index: 1000;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(7, 6, 16, 0.72);
  backdrop-filter: blur(12px);
}

.landing-nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding-top: 0.9rem;
  padding-bottom: 0.9rem;
}

.landing-brand {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  font-weight: 700;
  font-size: 1.05rem;
  letter-spacing: -0.02em;
  text-decoration: none;
  color: #fff !important;
}

.landing-brand-mark {
  width: 2rem;
  height: 2rem;
  border-radius: 0.65rem;
  background: linear-gradient(145deg, #e98592, #ffb3bc);
  color: #3a0a12;
  display: grid;
  place-items: center;
  font-size: 0.95rem;
  box-shadow: 0 6px 20px rgba(233, 133, 146, 0.45);
}

.landing-brand-mark--sm {
  width: 1.55rem;
  height: 1.55rem;
  font-size: 0.72rem;
  border-radius: 0.45rem;
  vertical-align: middle;
  margin-right: 0.35rem;
  box-shadow: none;
}

.landing-nav-actions {
  display: none;
  align-items: center;
  gap: 0.35rem;
}

@media (min-width: 992px) {
  .landing-nav-actions {
    display: flex;
  }
}

.landing-nav-link {
  color: rgba(230, 224, 255, 0.85) !important;
  text-decoration: none;
  font-size: 0.92rem;
  padding: 0.4rem 0.75rem;
  border-radius: 999px;
  transition: background 0.15s ease, color 0.15s ease;
}

.landing-nav-link:hover {
  background: rgba(255, 255, 255, 0.08);
  color: #fff !important;
}

.landing-btn-primary {
  --lp-coral: #e98592;
  background: linear-gradient(135deg, var(--lp-coral), #ff9ead) !important;
  border: none !important;
  color: #2a0f14 !important;
  font-weight: 600;
  padding: 0.45rem 1.1rem;
  border-radius: 999px;
  box-shadow: 0 8px 24px rgba(233, 133, 146, 0.35);
  transition:
    transform 0.15s ease,
    box-shadow 0.15s ease;
}

.landing-btn-primary:hover {
  transform: translateY(-1px);
  box-shadow: 0 12px 28px rgba(233, 133, 146, 0.45);
  color: #1a0609 !important;
}

.landing-btn-primary:focus-visible {
  outline: 2px solid rgba(191, 219, 254, 0.9);
  outline-offset: 2px;
}

.landing-btn-ghost {
  border: 1px solid rgba(255, 255, 255, 0.22) !important;
  color: #f1f5ff !important;
  background: rgba(255, 255, 255, 0.04) !important;
  font-weight: 600;
  border-radius: 999px;
}

.landing-btn-ghost:hover {
  background: rgba(255, 255, 255, 0.1) !important;
  color: #fff !important;
}

.landing-btn-pill {
  border-radius: 999px !important;
  padding-left: 1.35rem !important;
  padding-right: 1.35rem !important;
}

.landing-menu-toggle {
  border: 1px solid rgba(255, 255, 255, 0.2);
  background: rgba(255, 255, 255, 0.06);
  color: #fff;
  width: 2.5rem;
  height: 2.5rem;
  border-radius: 0.65rem;
  display: grid;
  place-items: center;
}

@media (min-width: 992px) {
  .landing-menu-toggle {
    display: none !important;
  }
}

.landing-mobile-nav {
  display: none;
  flex-direction: column;
  gap: 0.35rem;
  padding-bottom: 1rem;
}

.landing-mobile-nav.is-open {
  display: flex;
}

@media (min-width: 992px) {
  .landing-mobile-nav {
    display: none !important;
  }

  .landing-mobile-nav.is-open {
    display: none !important;
  }
}

/* --- Landing: hero & preview mockup --- */
.landing-hero {
  position: relative;
  overflow: hidden;
}

.landing-eyebrow {
  display: inline-flex;
  align-items: center;
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: #c4b5fd;
  margin-bottom: 1rem;
}

.landing-title {
  font-size: clamp(2rem, 4vw + 1rem, 3.25rem);
  font-weight: 800;
  letter-spacing: -0.035em;
  line-height: 1.08;
  margin-bottom: 1rem;
  color: #fff;
}

.landing-title-accent {
  background: linear-gradient(90deg, #f9a8d4, #e98592, #fde68a);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.landing-lead {
  font-size: 1.08rem;
  line-height: 1.65;
  color: rgba(226, 232, 255, 0.82);
  max-width: 36rem;
  margin-bottom: 1.5rem;
}

.landing-cta-group {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-bottom: 1.5rem;
}

.landing-trust-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem 1.25rem;
  font-size: 0.88rem;
  color: rgba(199, 210, 254, 0.88);
}

.landing-trust-list li {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
}

.landing-trust-list i {
  color: #a5b4fc;
  opacity: 0.95;
}

.landing-preview {
  position: relative;
  padding: 0.5rem;
}

.landing-preview-glow {
  position: absolute;
  inset: 10% 5% 20%;
  background: radial-gradient(circle, rgba(124, 92, 255, 0.5), transparent 65%);
  filter: blur(40px);
  opacity: 0.7;
  pointer-events: none;
}

.landing-preview-shell {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 120px) minmax(0, 1fr);
  gap: 0;
  border-radius: 1.1rem;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.12);
  box-shadow:
    0 24px 60px rgba(0, 0, 0, 0.45),
    0 0 0 1px rgba(255, 255, 255, 0.04) inset;
  background: rgba(8, 6, 20, 0.45);
  backdrop-filter: blur(8px);
}

.landing-preview-sidebar {
  background: linear-gradient(180deg, #34207a 0%, #2a1a62 100%);
  color: #e8e0ff;
  padding: 0.75rem 0.55rem;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  font-size: 0.65rem;
}

.landing-preview-side-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.landing-preview-dot {
  width: 1.35rem;
  height: 1.35rem;
  border-radius: 50%;
  background: #e98592;
  display: grid;
  place-items: center;
  font-size: 0.55rem;
  color: #3a0f14;
}

.landing-preview-dots {
  display: flex;
  gap: 0.2rem;
}

.landing-preview-dots span {
  width: 0.35rem;
  height: 0.35rem;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.35);
}

.landing-preview-nav {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
}

.landing-preview-nav span {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.3rem 0.35rem;
  border-radius: 0.35rem;
  color: rgba(230, 224, 255, 0.75);
}

.landing-preview-nav span.active {
  background: rgba(255, 255, 255, 0.15);
  color: #fff;
}

.landing-preview-nav i {
  width: 0.85rem;
  text-align: center;
  font-size: 0.68rem;
}

.landing-preview-main {
  background: linear-gradient(180deg, #f9f9fb 0%, #f3f4f8 100%);
  color: #1d1d1f;
  padding: 0.85rem 0.9rem 1rem;
  font-size: 0.72rem;
}

.landing-preview-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-bottom: 0.65rem;
  border-bottom: 1px solid #e8e8ed;
  margin-bottom: 0.65rem;
}

.landing-preview-heading {
  font-weight: 700;
  font-size: 0.85rem;
}

.landing-preview-sub {
  color: #888;
  font-size: 0.68rem;
}

.landing-preview-pill {
  background: #e98592;
  color: #fff;
  font-weight: 600;
  font-size: 0.62rem;
  padding: 0.28rem 0.55rem;
  border-radius: 999px;
  white-space: nowrap;
}

.landing-preview-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.45rem;
  margin-bottom: 0.75rem;
}

.landing-preview-stats > div {
  background: #fff;
  border: 1px solid #ececf1;
  border-radius: 0.55rem;
  padding: 0.45rem 0.4rem;
  text-align: center;
}

.landing-preview-stats strong {
  display: block;
  font-size: 1rem;
  font-weight: 800;
  line-height: 1.1;
}

.landing-preview-stats span {
  font-size: 0.58rem;
  color: #666;
}

.landing-preview-row {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 0.45rem;
  padding: 0.45rem 0.35rem;
  border-radius: 0.5rem;
  background: #fff;
  border: 1px solid #f0f0f4;
  margin-bottom: 0.4rem;
}

.landing-preview-row.done {
  opacity: 0.72;
}

.landing-preview-row.done .landing-preview-task-title {
  text-decoration: line-through;
}

.landing-preview-check {
  color: #9ca3af;
  font-size: 0.85rem;
}

.landing-preview-task {
  min-width: 0;
}

.landing-preview-task-title {
  font-weight: 600;
  font-size: 0.72rem;
  display: block;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.landing-preview-meta {
  font-size: 0.6rem;
  color: #888;
}

.landing-preview-badge {
  font-size: 0.55rem;
  font-weight: 600;
  padding: 0.2rem 0.45rem;
  border-radius: 999px;
  background: #fafafa;
  border: 1px solid #ebebef;
  color: #4b5563;
  white-space: nowrap;
}

.landing-preview-badge.focus {
  background: rgba(233, 133, 146, 0.18);
  border-color: rgba(233, 133, 146, 0.45);
  color: #9f1330;
}

/* --- Landing: features, workflow, CTA band --- */
.landing-section {
  padding: 4rem 0;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
}

.landing-section--alt {
  background: rgba(0, 0, 0, 0.22);
}

.landing-section-head {
  text-align: center;
  max-width: 40rem;
  margin: 0 auto 2.5rem;
}

.landing-section-title {
  font-size: clamp(1.55rem, 2vw + 1rem, 2.1rem);
  font-weight: 800;
  letter-spacing: -0.03em;
  color: #fff;
  margin-bottom: 0.75rem;
}

.landing-section-desc {
  color: rgba(199, 210, 254, 0.88);
  font-size: 1.02rem;
  line-height: 1.55;
  margin-bottom: 0;
}

.landing-card {
  height: 100%;
  padding: 1.35rem 1.25rem;
  border-radius: 1rem;
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: linear-gradient(165deg, rgba(255, 255, 255, 0.07), rgba(12, 10, 24, 0.65));
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.25);
  transition:
    transform 0.18s ease,
    border-color 0.18s ease,
    box-shadow 0.18s ease;
}

.landing-card:hover {
  transform: translateY(-4px);
  border-color: rgba(233, 133, 146, 0.45);
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.35);
}

.landing-card-icon {
  width: 2.5rem;
  height: 2.5rem;
  border-radius: 0.75rem;
  display: grid;
  place-items: center;
  font-size: 1rem;
  margin-bottom: 1rem;
  color: #fff;
}

.landing-card-icon.coral {
  background: linear-gradient(135deg, #e98592, #f9a8d4);
}

.landing-card-icon.violet {
  background: linear-gradient(135deg, #7c5cff, #a78bfa);
}

.landing-card-icon.mint {
  background: linear-gradient(135deg, #34d399, #6ee7b7);
}

.landing-card-icon.amber {
  background: linear-gradient(135deg, #f59e0b, #fcd34d);
}

.landing-card-icon.sky {
  background: linear-gradient(135deg, #38bdf8, #7dd3fc);
}

.landing-card-icon.slate {
  background: linear-gradient(135deg, #64748b, #94a3b8);
}

.landing-card-title {
  font-size: 1.05rem;
  font-weight: 700;
  margin-bottom: 0.45rem;
  color: #fff;
}

.landing-card-text {
  font-size: 0.92rem;
  line-height: 1.55;
  color: rgba(203, 213, 245, 0.9);
  margin: 0;
}

.landing-steps {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.landing-steps li {
  display: flex;
  gap: 1rem;
  align-items: flex-start;
  padding: 1.15rem 1.2rem;
  border-radius: 1rem;
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: rgba(255, 255, 255, 0.04);
}

.landing-step-num {
  flex-shrink: 0;
  width: 2.25rem;
  height: 2.25rem;
  border-radius: 0.65rem;
  background: linear-gradient(135deg, #e98592, #fca5a5);
  color: #2a0f14;
  font-weight: 800;
  display: grid;
  place-items: center;
  font-size: 1rem;
}

.landing-steps strong {
  display: block;
  color: #fff;
  margin-bottom: 0.2rem;
}

.landing-step-desc {
  display: block;
  font-size: 0.92rem;
  color: rgba(199, 210, 254, 0.9);
  line-height: 1.5;
}

.landing-cta-band {
  padding-bottom: 4.5rem;
  border-top: 0;
}

.landing-cta-panel {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
  align-items: flex-start;
  padding: 2rem 1.75rem;
  border-radius: 1.25rem;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background:
    linear-gradient(120deg, rgba(233, 133, 146, 0.22), rgba(124, 92, 255, 0.22)),
    rgba(8, 6, 18, 0.75);
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.35);
}

@media (min-width: 768px) {
  .landing-cta-panel {
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
  }
}

.landing-cta-title {
  font-size: 1.45rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  color: #fff;
}

.landing-cta-desc {
  color: rgba(226, 232, 255, 0.88);
  max-width: 32rem;
}

.landing-cta-panel-actions {
  flex-shrink: 0;
}

/* ==========================================================================
   SECTION: Landing — footer
   ========================================================================== */
.landing-footer {
  position: relative;
  margin-top: 0;
  padding: 0 0 2rem;
  font-size: 0.9rem;
  color: rgba(199, 210, 254, 0.82);
  background: linear-gradient(180deg, transparent 0%, rgba(4, 3, 12, 0.92) 18%, rgba(3, 2, 8, 0.98) 100%);
}

.landing-footer-accent {
  height: 3px;
  margin-bottom: 2.5rem;
  background: linear-gradient(
    90deg,
    transparent,
    rgba(124, 92, 255, 0.85) 18%,
    rgba(233, 133, 146, 0.95) 50%,
    rgba(251, 191, 36, 0.75) 72%,
    transparent
  );
  opacity: 0.9;
}

.landing-footer-main {
  display: grid;
  gap: 2.25rem 2rem;
  padding-bottom: 2.25rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

@media (min-width: 768px) {
  .landing-footer-main {
    grid-template-columns: minmax(0, 1.35fr) minmax(0, 0.85fr) minmax(0, 1fr);
    align-items: start;
  }
}

.landing-footer-about {
  max-width: 22rem;
}

.landing-footer-brand-link {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-weight: 700;
  font-size: 1.05rem;
  letter-spacing: -0.02em;
  color: #fff !important;
  text-decoration: none;
  margin-bottom: 0.85rem;
  transition: color 0.15s ease, opacity 0.15s ease;
}

.landing-footer-brand-link:hover {
  color: #fde68a !important;
}

.landing-footer-tagline {
  margin: 0;
  font-size: 0.9rem;
  line-height: 1.6;
  color: rgba(199, 210, 254, 0.78);
}

.landing-footer-heading {
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: rgba(196, 181, 253, 0.95);
  margin: 0 0 1rem;
}

.landing-footer-links {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
}

.landing-footer-links a {
  color: rgba(226, 232, 255, 0.88) !important;
  text-decoration: none;
  transition: color 0.15s ease, transform 0.15s ease;
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
}

.landing-footer-links a:hover {
  color: #fff !important;
}

.landing-footer-links a::after {
  content: "\f054";
  font-family: "Font Awesome 6 Free";
  font-weight: 900;
  font-size: 0.55rem;
  opacity: 0;
  transform: translateX(-4px);
  transition:
    opacity 0.15s ease,
    transform 0.15s ease;
}

.landing-footer-links a:hover::after {
  opacity: 0.65;
  transform: translateX(2px);
}

.landing-footer-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  font-size: 0.85rem;
  color: rgba(226, 232, 255, 0.82);
  padding: 0.35rem 0.65rem;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.055);
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.landing-footer-pill i {
  font-size: 0.75rem;
  color: #a5b4fc;
  opacity: 0.95;
}

.landing-footer-bottom {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  padding-top: 1.35rem;
  text-align: center;
}

@media (min-width: 576px) {
  .landing-footer-bottom {
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    text-align: left;
  }
}

.landing-footer-copy,
.landing-footer-meta {
  margin: 0;
  font-size: 0.82rem;
}

.landing-footer-copy {
  color: rgba(203, 213, 245, 0.88);
  font-weight: 500;
}

.landing-footer-meta {
  color: rgba(148, 163, 236, 0.55);
}

@media (max-width: 575px) {
  .landing-cta-group .btn-lg {
    width: 100%;
    justify-content: center;
  }
}

/* ==========================================================================
   SECTION: Legacy / shared utilities
   ========================================================================== */
.landing-stat-card {
  backdrop-filter: blur(3px);
}

.app-navbar {
  backdrop-filter: blur(8px);
  background: rgba(0, 0, 0, 0.65) !important;
}

.hero-title {
  line-height: 1.1;
}

.hero-subtitle {
  max-width: 42rem;
}

.soft-divider {
  border-top: 1px solid rgba(255, 255, 255, 0.08) !important;
}

.feature-card {
  transition:
    transform 140ms ease,
    border-color 140ms ease,
    box-shadow 140ms ease;
}

.feature-card:hover {
  transform: translateY(-3px);
  border-color: rgba(13, 110, 253, 0.45) !important;
  box-shadow: 0 10px 22px rgba(0, 0, 0, 0.25);
}

.card {
  border-radius: 1rem;
  background: linear-gradient(180deg, rgba(7, 8, 12, 0.92), rgba(4, 6, 9, 0.95)) !important;
  border-color: rgba(255, 255, 255, 0.08) !important;
  box-shadow: 0 10px 26px rgba(0, 0, 0, 0.28);
}

.card-header {
  background-color: rgba(255, 255, 255, 0.02);
}

.btn-primary {
  background: linear-gradient(135deg, #0d6efd, #3b82f6);
  border-color: transparent;
}

.btn-primary:hover,
.btn-primary:focus {
  background: linear-gradient(135deg, #1f76ff, #5f9cff);
  border-color: transparent;
}

.btn-outline-light,
.btn-outline-secondary,
.btn-outline-danger,
.btn-outline-info {
  border-color: rgba(255, 255, 255, 0.25);
}

.form-control,
.form-select {
  background-color: rgba(255, 255, 255, 0.03) !important;
  border-color: rgba(255, 255, 255, 0.14) !important;
}

.form-control:focus,
.form-select:focus {
  box-shadow: 0 0 0 0.2rem rgba(13, 110, 253, 0.2);
}

.list-group-item {
  background-color: rgba(0, 0, 0, 0.28);
  border-color: rgba(255, 255, 255, 0.08);
}

.list-group-item.completed {
  opacity: 0.58;
  text-decoration: line-through;
}

.task-time {
  min-width: 3.5rem;
}

.badge-category {
  font-size: 0.65rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.planner-calendar-header {
  background: linear-gradient(135deg, rgba(13, 110, 253, 0.22), rgba(25, 135, 84, 0.14));
}

.calendar-weekdays {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 6px;
  margin-bottom: 6px;
  padding: 0 4px;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  font-size: 0.68rem;
  font-weight: 600;
}

.calendar-grid {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 6px;
  padding: 2px 4px 8px;
}

.calendar-day {
  position: relative;
  min-height: 2.35rem;
  border-radius: 0.7rem;
  border: 1px solid #2b2b2b;
  background: #050505;
  padding: 0.45rem 0.45rem 0.35rem;
  cursor: pointer;
  transition:
    transform 120ms ease,
    border-color 120ms ease,
    background-color 120ms ease,
    box-shadow 120ms ease;
}

.calendar-day:hover {
  transform: translateY(-1px);
  border-color: #6c757d;
}

.calendar-day.out-month {
  opacity: 0.35;
  cursor: default;
}

.calendar-day.selected {
  border-color: #0d6efd;
  box-shadow: 0 0 0 2px rgba(13, 110, 253, 0.22);
}

.calendar-day.has-tasks {
  border-color: rgba(25, 135, 84, 0.75);
}

.calendar-day-number {
  font-weight: 650;
  font-size: 0.85rem;
  line-height: 1;
}

.calendar-count-badge {
  position: absolute;
  right: 6px;
  bottom: 6px;
  font-size: 0.7rem;
  padding: 0.15rem 0.45rem;
  border-radius: 999px;
  background: rgba(13, 110, 253, 0.18);
  border: 1px solid rgba(13, 110, 253, 0.35);
  color: #bfe0ff;
}

.calendar-count-badge--done {
  background: rgba(25, 135, 84, 0.18);
  border-color: rgba(25, 135, 84, 0.45);
  color: #bff4d0;
}

.calendar-day-number.now {
  color: #e9f3ff;
}

.week-day-card {
  background-color: #050505;
  border-radius: 0.75rem;
  border: 1px solid #2b2b2b;
  padding: 0.45rem 0.25rem;
  cursor: default;
}

.week-day-card .day-name {
  font-size: 0.7rem;
}

.week-day-card .day-number {
  font-size: 0.8rem;
}

.week-day-card-today {
  border-color: #0d6efd;
}

.week-day-card-has-tasks {
  border-color: #198754;
}

.week-day-card-count {
  font-size: 0.65rem;
}

/* ==========================================================================
   SECTION: Calendar & datepicker (sidebar date picker)
   ========================================================================== */
.datepicker {
  background-color: #05070c;
  color: #e9ecef;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 0.75rem;
  padding: 0.5rem;
  box-shadow: 0 14px 30px rgba(0, 0, 0, 0.35);
}

.datepicker table {
  width: 100%;
}

.datepicker thead tr th {
  color: #adb5bd;
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.datepicker td,
.datepicker th {
  text-align: center;
}

.datepicker td.day {
  color: #ced4da;
  border-radius: 0.5rem;
}

.datepicker td.day:hover {
  background-color: rgba(13, 110, 253, 0.2);
}

.datepicker td.today {
  color: #bfe0ff;
  font-weight: 650;
}

.datepicker td.active,
.datepicker td.active:hover {
  background-color: rgba(13, 110, 253, 0.55);
  color: #fff;
}

.section-heading {
  letter-spacing: -0.015em;
}

.planner-shell {
  max-width: 1280px;
}

.task-toolbar {
  gap: 0.6rem;
}

.focus-box {
  background-color: rgba(255, 255, 255, 0.02);
}

/* ==========================================================================
   SECTION: Dashboard (planner.html + analytics.html)
   ========================================================================== */
.dashboard-page {
  background: #2a1e68;
  color: #222;
}

.dashboard-page .dashboard-app {
  min-height: 100vh;
  display: grid;
  grid-template-columns: 220px 1fr;
  gap: 0.45rem;
  padding: 0.45rem;
}

/* --- Dashboard: sidebar navigation --- */
.dashboard-page .dashboard-sidebar {
  background: #2f1f72;
  color: #fff;
  padding: 10px 12px;
  display: flex;
  flex-direction: column;
  border-radius: 12px;
}

.dashboard-page .sidebar-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 0.8rem;
  gap: 0.35rem;
}

.dashboard-page .sidebar-brand {
  display: flex;
  align-items: center;
  gap: 0.45rem;
  min-width: 0;
  flex: 1;
}

.dashboard-page .sidebar-brand-label {
  font-size: 0.76rem;
  font-weight: 750;
  letter-spacing: -0.02em;
  line-height: 1.15;
  color: #fff;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.dashboard-page .logo-dot {
  width: 30px;
  height: 30px;
  border-radius: 50%;
  background: linear-gradient(145deg, #f38a9a, #ffb3bc);
  display: grid;
  place-items: center;
  font-size: 0.72rem;
  font-weight: 700;
  flex-shrink: 0;
  color: #3a0f14;
  text-decoration: none;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.18);
  transition:
    transform 0.15s ease,
    filter 0.15s ease,
    box-shadow 0.15s ease;
}

.dashboard-page .logo-dot:hover {
  color: #1a0609;
  filter: brightness(1.06);
  transform: scale(1.04);
  box-shadow: 0 3px 12px rgba(0, 0, 0, 0.22);
}

.dashboard-page .logo-dot:focus-visible {
  outline: 2px solid rgba(255, 255, 255, 0.9);
  outline-offset: 2px;
}

.dashboard-page .sidebar-top-icons {
  display: flex;
  gap: 0.45rem;
}

.dashboard-page .icon-btn {
  width: 22px;
  height: 22px;
  border: 0;
  background: transparent;
  color: #d5cdfd;
  border-radius: 50%;
  display: grid;
  place-items: center;
  font-size: 0.72rem;
}

.dashboard-page .search-shell {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 0.4rem;
  background: rgba(255, 255, 255, 0.12);
  border-radius: 999px;
  padding: 0.25rem 0.45rem;
}

.dashboard-page .search-shell > i {
  color: rgba(255, 255, 255, 0.75);
  font-size: 0.72rem;
}

.dashboard-page .search-edit-btn {
  width: 20px;
  height: 20px;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.3);
  background: transparent;
  color: rgba(255, 255, 255, 0.75);
  display: grid;
  place-items: center;
  font-size: 0.62rem;
}

.dashboard-page .sidebar-search {
  background: transparent !important;
  border: 0 !important;
  color: #f8f9fa !important;
  border-radius: 0 !important;
  font-size: 0.8rem;
  padding: 0.25rem 0 !important;
}

.dashboard-page .sidebar-search::placeholder {
  color: rgba(255, 255, 255, 0.7);
}

.dashboard-page .sidebar-nav {
  display: grid;
  gap: 0.4rem;
  margin-top: 1rem;
}

.dashboard-page .sidebar-item {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  background: transparent;
  color: #ddd5ff;
  border: 0;
  padding: 0.5rem 0.65rem;
  border-radius: 8px;
  text-align: left;
  font-size: 0.92rem;
  text-decoration: none;
}

.dashboard-page .sidebar-item-muted {
  color: #e6e0ff;
}

.dashboard-page .sidebar-item i {
  width: 1rem;
  text-align: center;
  font-size: 0.84rem;
  opacity: 0.95;
}

.dashboard-page .sidebar-item:hover,
.dashboard-page .sidebar-item.active {
  background: rgba(255, 255, 255, 0.12);
  color: #fff;
}

.dashboard-page .sidebar-bottom {
  margin-top: auto;
}

.dashboard-page .sidebar-user {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.dashboard-page .user-avatar {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: #ef8b98;
  color: #fff;
  display: grid;
  place-items: center;
  font-size: 0.66rem;
  font-weight: 700;
}

/* --- Dashboard: main area, header, stats, task list --- */
.dashboard-page .dashboard-main {
  background: #f9f9fb;
  border-radius: 0.75rem;
  margin: 0;
  padding: 0.75rem 1rem 1rem;
  border: 1px solid #d7d7de;
}

.dashboard-page .dashboard-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  padding-bottom: 0.8rem;
  border-bottom: 1px solid #e2e2e7;
}

.dashboard-page .dashboard-actions {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.dashboard-page .date-input {
  width: 130px;
  background: #fff !important;
  color: #222 !important;
  font-size: 0.8rem;
}

.dashboard-page .icon-btn-light {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  border: 1px solid #dddfe5;
  background: #fff;
  color: #6e7581;
}

.dashboard-page .add-task-pill {
  border-radius: 999px;
  background: #e98592;
  border-color: #e98592;
  font-size: 0.78rem;
  padding: 0.3rem 0.7rem;
}

/* ==========================================================================
   SECTION: Dashboard — dark mode
   ========================================================================== */
.dashboard-page.dark-mode {
  background: #1a1530;
  color: #e8e9ee;
}

.dashboard-page.dark-mode .dashboard-sidebar {
  background: #201744;
}

.dashboard-page.dark-mode .dashboard-main {
  background: #151926;
  border-color: #30374b;
}

.dashboard-page.dark-mode .dashboard-header {
  border-bottom-color: #2f364a;
}

.dashboard-page.dark-mode #selectedDateHeading {
  color: #edf1ff;
}

.dashboard-page.dark-mode #selectedDateSubheading,
.dashboard-page.dark-mode .text-muted {
  color: #9ca7c2 !important;
}

.dashboard-page.dark-mode .stat-card,
.dashboard-page.dark-mode .projects-panel,
.dashboard-page.dark-mode .focus-inline-box {
  background: #1b2132;
  border-color: #30374b;
}

.dashboard-page.dark-mode .stat-number,
.dashboard-page.dark-mode .projects-head h5,
.dashboard-page.dark-mode .project-task-list .list-group-item {
  color: #eef2ff;
}

.dashboard-page.dark-mode .stat-label {
  color: #b4bfd8;
}

.dashboard-page.dark-mode .task-form .form-control,
.dashboard-page.dark-mode .task-form .form-select,
.dashboard-page.dark-mode .date-input {
  background: #141a2a !important;
  color: #e8ecf8 !important;
  border-color: #35405a !important;
}

.dashboard-page.dark-mode .project-task-list .badge {
  background: #242d44 !important;
  border-color: #36415e;
  color: #d8e1ff !important;
}

.dashboard-page.dark-mode .icon-btn-light {
  background: #1b2132;
  border-color: #38435d;
  color: #d7ddf2;
}

.dashboard-page .stats-grid {
  margin-top: 1rem;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.9rem;
}

.dashboard-page .stat-card {
  position: relative;
  background: #fff;
  border: 1px solid #ececf1;
  border-radius: 14px;
  padding: 1.05rem 1rem 0.9rem;
}

.dashboard-page .stat-icon {
  position: absolute;
  right: 0.7rem;
  top: 0.65rem;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  background: #e98592;
  color: #fff;
  display: grid;
  place-items: center;
  font-size: 0.78rem;
}

.dashboard-page .stat-number {
  font-size: 2rem;
  font-weight: 700;
  color: #1d1d1f;
  line-height: 1;
}

.dashboard-page .stat-label {
  font-size: 0.92rem;
  color: #666;
  margin-top: 0.3rem;
}

.dashboard-page .projects-panel {
  background: #fff;
  border: 1px solid #ececf1;
  border-radius: 14px;
  padding: 0.9rem 1rem;
  margin-top: 1rem;
}

.dashboard-page .projects-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 0.65rem;
}

.dashboard-page .task-form {
  display: grid;
  grid-template-columns: 2.2fr 1fr 1fr auto;
  gap: 0.5rem;
}

.dashboard-page .task-form .form-control,
.dashboard-page .task-form .form-select {
  background: #fff !important;
  color: #222 !important;
  border-color: #dfe0e6 !important;
  box-shadow: none !important;
}

.dashboard-page .task-form .btn {
  white-space: nowrap;
}

.dashboard-page .project-task-list .list-group-item {
  background: transparent;
  border: 0;
  border-top: 1px solid #f0f0f4;
  color: #1f1f22;
  padding-top: 0.72rem !important;
  padding-bottom: 0.72rem !important;
}

.dashboard-page .project-task-list .list-group-item:first-child {
  border-top: 0;
}

.dashboard-page .project-task-list .badge {
  background: #fafafa !important;
  border: 1px solid #ebebef;
  color: #2f3340 !important;
  font-weight: 500;
  border-radius: 999px;
  padding: 0.32rem 0.58rem;
  text-transform: none;
}

.dashboard-page .badge-category {
  letter-spacing: 0;
  font-size: 0.78rem;
  text-transform: none;
}

.dashboard-page .task-highlight {
  background: #ffe08a;
  color: #171717;
  border-radius: 4px;
  padding: 0 0.18rem;
}

.dashboard-page .project-task-list .btn-outline-info,
.dashboard-page .project-task-list .btn-outline-danger {
  border-color: #d9d9de;
  color: #666;
  opacity: 0;
  transition: opacity 0.12s ease;
}

.dashboard-page .project-task-list .list-group-item:hover .btn-outline-info,
.dashboard-page .project-task-list .list-group-item:hover .btn-outline-danger {
  opacity: 1;
}

.dashboard-page .focus-inline-box {
  background: #fff;
  border: 1px solid #ececf1;
  border-radius: 12px;
  padding: 0.65rem 0.8rem;
}

.dashboard-page .focus-inline {
  display: none;
}

/* ==========================================================================
   SECTION: Dashboard — task timers (start / pause)
   ========================================================================== */
.dashboard-page .task-timer-row {
  max-width: 100%;
}

.dashboard-page .task-timer-icon {
  color: #94a3b8;
  font-size: 0.8rem;
  opacity: 0.95;
}

.dashboard-page .task-timer-display {
  font-variant-numeric: tabular-nums;
  font-weight: 600;
  color: #64748b;
  min-width: 3.5rem;
}

.dashboard-page .task-timer-display--active {
  color: #ea580c;
}

.dashboard-page .task-timer-btn {
  font-size: 0.72rem !important;
  padding: 0.15rem 0.5rem !important;
  line-height: 1.3;
}

.dashboard-page.dark-mode .task-timer-display {
  color: #a8b5cf;
}

.dashboard-page.dark-mode .task-timer-display--active {
  color: #fdba74;
}

.dashboard-page.dark-mode .task-timer-icon {
  color: #7c8aad;
}

/* ==========================================================================
   SECTION: Analytics page (analytics.html)
   ========================================================================== */
.dashboard-page .analytics-page-main {
  scroll-margin-top: 1.25rem;
}

.dashboard-page .analytics-subheading {
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: #6e7581;
  margin-bottom: 0.65rem;
}

.dashboard-page.dark-mode .analytics-subheading {
  color: #9ca7c2;
}

.dashboard-page .analytics-stat-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(142px, 1fr));
  gap: 0.65rem;
}

.dashboard-page .analytics-stat-chip {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  padding: 0.65rem 0.75rem;
  border-radius: 12px;
  border: 1px solid #ececf1;
  background: #fafbfc;
}

.dashboard-page.dark-mode .analytics-stat-chip {
  background: #1b2132;
  border-color: #30374b;
}

.dashboard-page .analytics-stat-icon {
  width: 34px;
  height: 34px;
  border-radius: 10px;
  background: #ede9fe;
  color: #5b21b6;
  display: grid;
  place-items: center;
  font-size: 0.85rem;
  flex-shrink: 0;
}

.dashboard-page .analytics-stat-icon--done {
  background: #d1fae5;
  color: #047857;
}

.dashboard-page .analytics-stat-icon--open {
  background: #f1f5f9;
  color: #475569;
}

.dashboard-page .analytics-stat-icon--time {
  background: #ffedd5;
  color: #c2410c;
}

.dashboard-page .analytics-stat-icon--cal {
  background: #e0e7ff;
  color: #4338ca;
}

.dashboard-page .analytics-stat-icon--track {
  background: #fce7f3;
  color: #9d174d;
}

.dashboard-page .analytics-stat-body {
  display: flex;
  flex-direction: column;
  min-width: 0;
}

.dashboard-page .analytics-stat-value {
  font-size: 1.15rem;
  font-weight: 800;
  line-height: 1.1;
  color: #1d1d1f;
}

.dashboard-page .analytics-stat-value--mono {
  font-variant-numeric: tabular-nums;
  font-size: 1rem;
}

.dashboard-page.dark-mode .analytics-stat-value {
  color: #eef2ff;
}

.dashboard-page .analytics-stat-label {
  font-size: 0.72rem;
  color: #6e7581;
}

.dashboard-page.dark-mode .analytics-stat-label {
  color: #9ca7c2;
}

.dashboard-page .analytics-day-bars {
  min-height: 0;
}

.dashboard-page .analytics-day-grid {
  display: flex;
  align-items: flex-end;
  gap: 0.35rem;
  min-height: 96px;
}

.dashboard-page .analytics-day-col {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.35rem;
  min-width: 0;
}

.dashboard-page .analytics-day-bar-wrap {
  height: 76px;
  width: 100%;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  align-items: center;
}

.dashboard-page .analytics-day-bar {
  width: 100%;
  max-width: 20px;
  min-height: 2px;
  border-radius: 6px 6px 0 0;
  background: linear-gradient(180deg, #e98592 0%, #a855f7 100%);
  transition: height 0.2s ease;
}

.dashboard-page .analytics-day-bar--today {
  box-shadow: 0 0 0 2px rgba(233, 133, 146, 0.55);
}

.dashboard-page .analytics-day-label {
  font-size: 0.65rem;
  font-weight: 600;
  color: #888cab;
  text-transform: uppercase;
}

.dashboard-page.dark-mode .analytics-day-label {
  color: #7c8aad;
}

.dashboard-page .analytics-cat-row {
  margin-bottom: 0.65rem;
}

.dashboard-page .analytics-cat-row:last-child {
  margin-bottom: 0;
}

.dashboard-page .analytics-cat-label {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.8rem;
  margin-bottom: 0.25rem;
  color: #334155;
}

.dashboard-page.dark-mode .analytics-cat-label {
  color: #c7d2fe;
}

.dashboard-page .analytics-cat-num {
  font-weight: 700;
  color: #64748b;
}

.dashboard-page.dark-mode .analytics-cat-num {
  color: #94a3b8;
}

.dashboard-page .analytics-bar-track {
  height: 7px;
  border-radius: 999px;
  background: #eef0f5;
  overflow: hidden;
}

.dashboard-page.dark-mode .analytics-bar-track {
  background: #252d42;
}

.dashboard-page .analytics-bar-fill {
  height: 100%;
  border-radius: 999px;
  background: linear-gradient(90deg, #e98592, #818cf8);
}

.dashboard-page .analytics-table-wrap {
  border: 1px solid #ececf1;
  border-radius: 12px;
  max-height: 280px;
  overflow: auto;
}

.dashboard-page.dark-mode .analytics-table-wrap {
  border-color: #30374b;
}

.dashboard-page .analytics-table thead th {
  position: sticky;
  top: 0;
  z-index: 1;
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  background: #f4f5f8;
  color: #64748b;
  border-bottom: 1px solid #e2e2e7;
  white-space: nowrap;
}

.dashboard-page.dark-mode .analytics-table thead th {
  background: #1b2132;
  color: #9ca7c2;
  border-bottom-color: #30374b;
}

.dashboard-page .analytics-table tbody td {
  vertical-align: middle;
  border-color: #f0f0f4;
  color: #1f2937;
}

.dashboard-page.dark-mode .analytics-table tbody td {
  border-color: #2a3145;
  color: #e2e8f0;
}

.dashboard-page .analytics-badge-cat {
  font-weight: 500;
  background: #fafafa !important;
  border: 1px solid #ebebef;
  color: #374151 !important;
}

.dashboard-page.dark-mode .analytics-badge-cat {
  background: #242d44 !important;
  border-color: #36415e;
  color: #d8e1ff !important;
}

.dashboard-page .analytics-table-mono {
  font-variant-numeric: tabular-nums;
}

.dashboard-page .analytics-feed {
  max-height: 320px;
  overflow-y: auto;
  border: 1px solid #ececf1;
  border-radius: 12px;
  padding: 0.5rem 0.65rem;
  background: #fafbfc;
}

.dashboard-page.dark-mode .analytics-feed {
  border-color: #30374b;
  background: #151a26;
}

.dashboard-page .analytics-feed-item {
  display: flex;
  gap: 0.65rem;
  padding: 0.5rem 0.25rem;
  border-bottom: 1px solid #eef0f5;
}

.dashboard-page.dark-mode .analytics-feed-item {
  border-bottom-color: #252d42;
}

.dashboard-page .analytics-feed-item:last-child {
  border-bottom: 0;
}

.dashboard-page .analytics-feed-icon {
  width: 30px;
  height: 30px;
  border-radius: 9px;
  display: grid;
  place-items: center;
  flex-shrink: 0;
  font-size: 0.8rem;
  background: #f1f5f9;
  color: #475569;
}

.dashboard-page.dark-mode .analytics-feed-icon {
  background: #242d44;
  color: #cbd5e1;
}

.dashboard-page .analytics-glyph--create {
  background: #ecfdf5;
  color: #047857;
}

.dashboard-page .analytics-glyph--done {
  background: #ecfdf5;
  color: #047857;
}

.dashboard-page .analytics-glyph--reopen {
  background: #fffbeb;
  color: #b45309;
}

.dashboard-page .analytics-glyph--delete {
  background: #fef2f2;
  color: #b91c1c;
}

.dashboard-page .analytics-glyph--time {
  background: #eff6ff;
  color: #1d4ed8;
}

.dashboard-page .analytics-glyph--focus {
  background: #ecfeff;
  color: #0e7490;
}

.dashboard-page .analytics-glyph--clear {
  background: #f4f4f5;
  color: #52525b;
}

.dashboard-page .analytics-glyph--default {
  background: #f1f5f9;
  color: #64748b;
}

/* --- Analytics: activity feed icon tones (dark mode) --- */
.dashboard-page.dark-mode .analytics-glyph--create,
.dashboard-page.dark-mode .analytics-glyph--done {
  background: rgba(16, 185, 129, 0.15);
  color: #34d399;
}

.dashboard-page.dark-mode .analytics-glyph--reopen {
  background: rgba(251, 191, 36, 0.12);
  color: #fbbf24;
}

.dashboard-page.dark-mode .analytics-glyph--delete {
  background: rgba(239, 68, 68, 0.12);
  color: #f87171;
}

.dashboard-page.dark-mode .analytics-glyph--time {
  background: rgba(59, 130, 246, 0.15);
  color: #60a5fa;
}

.dashboard-page.dark-mode .analytics-glyph--focus {
  background: rgba(6, 182, 212, 0.12);
  color: #22d3ee;
}

.dashboard-page.dark-mode .analytics-glyph--clear,
.dashboard-page.dark-mode .analytics-glyph--default {
  background: #242d44;
  color: #94a3b8;
}

.dashboard-page .analytics-feed-body {
  min-width: 0;
}

.dashboard-page .analytics-feed-msg {
  color: #1f2937;
  line-height: 1.4;
}

.dashboard-page.dark-mode .analytics-feed-msg {
  color: #e8ecf8;
}

.dashboard-page .analytics-feed-when {
  font-size: 0.7rem;
  margin-top: 0.15rem;
}

.dashboard-page .analytics-feed-empty {
  padding: 1rem 0.5rem;
  text-align: center;
}

.dashboard-page .form-check-input {
  border-radius: 999px;
}

.dashboard-page .list-group-item.completed {
  opacity: 0.65;
}

/* ==========================================================================
   SECTION: Responsive breakpoints
   ========================================================================== */
@media (max-width: 767px) {
  nav .navbar-brand {
    font-size: 1rem;
  }

  #taskForm .form-label {
    font-size: 0.7rem;
  }

  .calendar-day {
    min-height: 2.0rem;
    padding: 0.35rem 0.35rem 0.25rem;
  }

  .hero-title {
    font-size: 2rem;
  }
}

@media (max-width: 992px) {
  .dashboard-page .dashboard-app {
    grid-template-columns: 1fr;
  }

  .dashboard-page .dashboard-sidebar {
    border-radius: 0;
  }

  .dashboard-page .dashboard-main {
    margin: 0;
    border-radius: 0;
  }

  .dashboard-page .stats-grid {
    grid-template-columns: 1fr;
  }

  .dashboard-page .task-form {
    grid-template-columns: 1fr;
  }
}

