/* ============================================
   ConteggiatORE — Design System
   Dark theme · Glassmorphism · Mobile-first
   ============================================ */

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

/* --- CSS Custom Properties --- */
:root {
  /* Colors */
  --bg-primary: #07071a;
  --bg-secondary: #0d0d28;
  --bg-gradient: linear-gradient(160deg, #07071a 0%, #0d0d28 40%, #0f0a24 100%);

  --surface: rgba(255, 255, 255, 0.04);
  --surface-hover: rgba(255, 255, 255, 0.07);
  --surface-active: rgba(255, 255, 255, 0.10);
  --surface-glass: rgba(16, 16, 48, 0.65);

  --border: rgba(255, 255, 255, 0.07);
  --border-light: rgba(255, 255, 255, 0.12);
  --border-focus: rgba(124, 92, 252, 0.6);

  --text-primary: #ececf6;
  --text-secondary: #9494b8;
  --text-muted: #5a5a7a;
  --text-inverse: #07071a;

  --accent: #7c5cfc;
  --accent-hover: #9278ff;
  --accent-light: rgba(124, 92, 252, 0.15);
  --accent-gradient: linear-gradient(135deg, #7c5cfc 0%, #5b8def 100%);

  --success: #34d399;
  --success-bg: rgba(52, 211, 153, 0.12);
  --warning: #fbbf24;
  --warning-bg: rgba(251, 191, 36, 0.12);
  --danger: #f87171;
  --danger-bg: rgba(248, 113, 113, 0.12);

  --ore-color: #7c5cfc;
  --km-color: #38bdf8;
  --spese-color: #fbbf24;

  /* Spacing */
  --space-2xs: 2px;
  --space-xs: 4px;
  --space-sm: 8px;
  --space-md: 16px;
  --space-lg: 24px;
  --space-xl: 32px;
  --space-2xl: 48px;

  /* Radius */
  --radius-xs: 6px;
  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 16px;
  --radius-xl: 20px;
  --radius-full: 100px;

  /* Typography */
  --font: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --font-mono: 'SF Mono', 'Fira Code', monospace;

  /* Shadows */
  --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.25);
  --shadow-md: 0 4px 20px rgba(0, 0, 0, 0.35);
  --shadow-lg: 0 8px 40px rgba(0, 0, 0, 0.45);
  --shadow-glow: 0 0 20px rgba(124, 92, 252, 0.2);

  /* Layout */
  --header-height: 60px;
  --nav-height: 68px;
  --safe-top: env(safe-area-inset-top, 0px);
  --safe-bottom: env(safe-area-inset-bottom, 0px);
  --max-width: 600px;

  /* Transitions */
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
  --ease-in-out: cubic-bezier(0.65, 0, 0.35, 1);
  --duration-fast: 150ms;
  --duration-normal: 250ms;
  --duration-slow: 400ms;
}

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

html {
  -webkit-text-size-adjust: 100%;
  -webkit-tap-highlight-color: transparent;
  scroll-behavior: smooth;
}

[hidden] {
  display: none !important;
}

body {
  font-family: var(--font);
  font-size: 15px;
  line-height: 1.5;
  color: var(--text-primary);
  background: var(--bg-gradient);
  background-attachment: fixed;
  min-height: 100dvh;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

input, button, textarea, select {
  font: inherit;
  color: inherit;
}

button {
  cursor: pointer;
  border: none;
  background: none;
}

a {
  color: var(--accent);
  text-decoration: none;
}

ul, ol {
  list-style: none;
}

img {
  max-width: 100%;
  display: block;
}

/* --- Scrollbar --- */
::-webkit-scrollbar {
  width: 4px;
}
::-webkit-scrollbar-track {
  background: transparent;
}
::-webkit-scrollbar-thumb {
  background: var(--border-light);
  border-radius: var(--radius-full);
}

/* ============================
   Loading & Splash
   ============================ */
#loading-screen {
  position: fixed;
  inset: 0;
  z-index: 9999;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  background: var(--bg-gradient);
  background-attachment: fixed;
  transition: opacity var(--duration-slow) var(--ease-out);
}

#loading-screen.fade-out {
  opacity: 0;
  pointer-events: none;
}

.loading-logo {
  font-size: 2rem;
  font-weight: 800;
  background: var(--accent-gradient);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  margin-bottom: var(--space-lg);
}

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

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

/* ============================
   Login Screen
   ============================ */
#login-screen {
  position: fixed;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: var(--space-xl);
  background: var(--bg-gradient);
  background-attachment: fixed;
  z-index: 100;
}

#login-screen[hidden] {
  display: none;
}

.login-content {
  text-align: center;
  max-width: 340px;
  width: 100%;
}

.login-icon {
  font-size: 4rem;
  margin-bottom: var(--space-lg);
  filter: drop-shadow(0 0 30px rgba(124, 92, 252, 0.3));
}

.login-title {
  font-size: 2.2rem;
  font-weight: 800;
  letter-spacing: -0.03em;
  background: var(--accent-gradient);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  margin-bottom: var(--space-sm);
}

.login-subtitle {
  font-size: 0.95rem;
  color: var(--text-secondary);
  margin-bottom: var(--space-2xl);
  line-height: 1.6;
}

.btn-google {
  display: inline-flex;
  align-items: center;
  gap: var(--space-md);
  padding: 14px 28px;
  background: #fff;
  color: #333;
  font-weight: 600;
  font-size: 0.95rem;
  border-radius: var(--radius-full);
  box-shadow: var(--shadow-md);
  transition: transform var(--duration-fast) var(--ease-out),
              box-shadow var(--duration-fast) var(--ease-out);
  width: 100%;
  justify-content: center;
}

.btn-google:active {
  transform: scale(0.97);
  box-shadow: var(--shadow-sm);
}

.btn-google svg {
  width: 20px;
  height: 20px;
  flex-shrink: 0;
}

/* Login Divider */
.login-divider {
  display: flex;
  align-items: center;
  gap: var(--space-md);
  margin: var(--space-lg) 0;
  color: var(--text-muted);
  font-size: 0.8rem;
}

.login-divider::before,
.login-divider::after {
  content: '';
  flex: 1;
  height: 1px;
  background: var(--border);
}

/* Apple Sign-in Button */
.btn-apple {
  display: inline-flex;
  align-items: center;
  gap: var(--space-md);
  padding: 14px 28px;
  background: #000;
  color: #fff;
  font-weight: 600;
  font-size: 0.95rem;
  border-radius: var(--radius-full);
  box-shadow: var(--shadow-md);
  border: 1px solid rgba(255, 255, 255, 0.15);
  transition: transform var(--duration-fast) var(--ease-out),
              box-shadow var(--duration-fast) var(--ease-out);
  width: 100%;
  justify-content: center;
}

.btn-apple:active {
  transform: scale(0.97);
  box-shadow: var(--shadow-sm);
}

.btn-apple svg {
  width: 20px;
  height: 20px;
  flex-shrink: 0;
}

/* ============================
   App Layout
   ============================ */
#app {
  display: flex;
  flex-direction: column;
  min-height: 100dvh;
  overflow-x: hidden;
}

#app[hidden] {
  display: none;
}

/* --- Header --- */
.app-header {
  position: sticky;
  top: 0;
  z-index: 50;
  height: var(--header-height);
  padding: 0 var(--space-md);
  padding-top: var(--safe-top);
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: rgba(7, 7, 26, 0.85);
  backdrop-filter: blur(20px) saturate(180%);
  -webkit-backdrop-filter: blur(20px) saturate(180%);
  border-bottom: 1px solid var(--border);
}

.header-brand {
  font-size: 1.15rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  background: var(--accent-gradient);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

.header-avatar {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  border: 2px solid var(--border-light);
  object-fit: cover;
}

/* --- Main Content --- */
.app-content {
  flex: 1;
  padding-bottom: calc(var(--nav-height) + var(--safe-bottom) + var(--space-md));
  overflow-y: auto;
}

/* --- Views --- */
.view {
  display: none;
  padding: var(--space-md);
  max-width: var(--max-width);
  margin: 0 auto;
  animation: fadeSlideIn var(--duration-normal) var(--ease-out);
}

.view.active {
  display: block;
}

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

/* --- Bottom Navigation --- */
.app-nav {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 50;
  height: calc(var(--nav-height) + var(--safe-bottom));
  padding-bottom: var(--safe-bottom);
  display: flex;
  align-items: center;
  justify-content: space-around;
  background: rgba(7, 7, 26, 0.9);
  backdrop-filter: blur(20px) saturate(180%);
  -webkit-backdrop-filter: blur(20px) saturate(180%);
  border-top: 1px solid var(--border);
}

.nav-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--space-2xs);
  padding: var(--space-sm) var(--space-md);
  border-radius: var(--radius-md);
  color: var(--text-muted);
  font-size: 0.65rem;
  font-weight: 500;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  transition: color var(--duration-fast) var(--ease-out);
  -webkit-tap-highlight-color: transparent;
  position: relative;
}

.nav-item svg {
  width: 22px;
  height: 22px;
  stroke-width: 1.8;
  transition: transform var(--duration-fast) var(--ease-out);
}

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

.nav-item.active svg {
  transform: scale(1.1);
  filter: drop-shadow(0 0 6px rgba(124, 92, 252, 0.4));
}

.nav-item.active::before {
  content: '';
  position: absolute;
  top: -1px;
  left: 50%;
  transform: translateX(-50%);
  width: 24px;
  height: 3px;
  background: var(--accent-gradient);
  border-radius: 0 0 var(--radius-full) var(--radius-full);
}

/* ============================
   Date Navigation
   ============================ */
.date-nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: var(--space-md);
  margin-bottom: var(--space-md);
  background: var(--surface-glass);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
}

.date-nav-btn {
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--radius-md);
  color: var(--text-secondary);
  background: var(--surface);
  transition: all var(--duration-fast) var(--ease-out);
  -webkit-tap-highlight-color: transparent;
}

.date-nav-btn:active {
  background: var(--surface-active);
  transform: scale(0.92);
}

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

.date-display {
  text-align: center;
  cursor: pointer;
  padding: var(--space-sm) var(--space-md);
  border-radius: var(--radius-sm);
  border: none;
  background: none;
  color: inherit;
  font-family: inherit;
  transition: background var(--duration-fast) var(--ease-out);
  position: relative;
}

.date-display:active {
  background: var(--surface);
}

.date-display-day {
  font-size: 0.75rem;
  font-weight: 500;
  color: var(--accent);
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.date-display-full {
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--text-primary);
  margin-top: var(--space-2xs);
}

/* ============================
   Calendar Popover
   ============================ */
.calendar-popover {
  background: #121236;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: var(--radius-xl);
  padding: var(--space-md);
  margin-bottom: var(--space-md);
  box-shadow: 0 16px 48px rgba(0, 0, 0, 0.4);
  animation: calendarSlideDown var(--duration-normal) var(--ease-out);
}

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

.calendar-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: var(--space-md);
}

.calendar-month {
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--text-primary);
  text-transform: capitalize;
}

.calendar-nav {
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--radius-sm);
  color: var(--text-muted);
  transition: all var(--duration-fast) var(--ease-out);
}

.calendar-nav:active {
  background: var(--surface-active);
  color: var(--text-primary);
}

.calendar-weekdays {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 2px;
  margin-bottom: var(--space-xs);
}

.calendar-weekdays span {
  text-align: center;
  font-size: 0.7rem;
  font-weight: 600;
  color: var(--text-muted);
  text-transform: uppercase;
  padding: var(--space-xs);
}

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

.cal-day {
  aspect-ratio: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--radius-sm);
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--text-secondary);
  transition: all var(--duration-fast) var(--ease-out);
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
}

.cal-day:active {
  transform: scale(0.9);
}

.cal-day.other-month {
  color: var(--text-muted);
  opacity: 0.4;
}

.cal-day.today {
  border: 1.5px solid var(--accent);
  color: var(--accent);
  font-weight: 700;
}

.cal-day.selected {
  background: var(--accent-gradient);
  color: #fff;
  font-weight: 700;
}

.cal-day.selected.today {
  border-color: transparent;
}

.cal-day.has-data::after {
  content: '';
  position: absolute;
  bottom: 3px;
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: var(--accent);
}

.cal-day {
  position: relative;
}

.calendar-today {
  width: 100%;
  margin-top: var(--space-sm);
  padding: var(--space-sm);
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  color: var(--accent);
  font-size: 0.8rem;
  font-weight: 600;
  text-align: center;
  transition: all var(--duration-fast) var(--ease-out);
}

.calendar-today:active {
  background: var(--accent-light);
}

/* ============================
   Day Type Selector
   ============================ */
.day-type-selector {
  margin-bottom: var(--space-md);
}

.day-type-pills {
  display: flex;
  gap: var(--space-xs);
  padding: var(--space-xs);
  background: var(--surface-glass);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
}

.day-type-pill {
  flex: 1;
  padding: 10px var(--space-xs);
  background: transparent;
  border: none;
  border-radius: var(--radius-md);
  color: var(--text-muted);
  font-size: 0.75rem;
  font-weight: 500;
  text-align: center;
  transition: all var(--duration-fast) var(--ease-out);
  -webkit-tap-highlight-color: transparent;
}

.day-type-pill:active {
  transform: scale(0.96);
}

.day-type-pill.active[data-type="lavoro"] {
  background: rgba(124, 92, 252, 0.15);
  color: var(--accent-hover);
}

.day-type-pill.active[data-type="ferie"] {
  background: rgba(52, 211, 153, 0.15);
  color: var(--success);
}

.day-type-pill.active[data-type="permesso"] {
  background: rgba(56, 189, 248, 0.15);
  color: var(--km-color);
}

.day-type-pill.active[data-type="malattia"] {
  background: rgba(251, 191, 36, 0.15);
  color: var(--warning);
}

/* ============================
   Territory Toggle
   ============================ */
.territory-toggle {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: var(--space-md);
  margin-bottom: var(--space-lg);
  background: var(--surface-glass);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  transition: border-color var(--duration-fast) var(--ease-out);
}

.territory-toggle.active {
  border-color: rgba(52, 211, 153, 0.3);
  background: rgba(52, 211, 153, 0.05);
}

.territory-label {
  display: flex;
  align-items: center;
  gap: var(--space-md);
  font-size: 0.9rem;
  font-weight: 500;
}

.territory-label .icon {
  font-size: 1.3rem;
}

/* Toggle Switch */
.toggle-switch {
  position: relative;
  width: 48px;
  height: 28px;
  flex-shrink: 0;
}

.toggle-switch input {
  position: absolute;
  opacity: 0;
  width: 0;
  height: 0;
}

.toggle-slider {
  position: absolute;
  inset: 0;
  background: var(--surface-active);
  border-radius: var(--radius-full);
  cursor: pointer;
  transition: background var(--duration-normal) var(--ease-out);
}

.toggle-slider::before {
  content: '';
  position: absolute;
  left: 3px;
  top: 3px;
  width: 22px;
  height: 22px;
  background: var(--text-secondary);
  border-radius: 50%;
  transition: all var(--duration-normal) var(--ease-out);
}

.toggle-switch input:checked + .toggle-slider {
  background: var(--success);
}

.toggle-switch input:checked + .toggle-slider::before {
  transform: translateX(20px);
  background: #fff;
}

/* ============================
   Pernotto & Area Selector
   ============================ */
.pernotto-block {
  margin-bottom: var(--space-lg);
}

.pernotto-block .territory-toggle {
  margin-bottom: 0;
  transition: border-color var(--duration-fast) var(--ease-out),
              border-radius var(--duration-fast) var(--ease-out);
}

.pernotto-block.active .territory-toggle {
  border-color: rgba(168, 130, 255, 0.3);
  background: rgba(124, 92, 252, 0.05);
  border-radius: var(--radius-lg) var(--radius-lg) 0 0;
}

.area-selector {
  padding: var(--space-md);
  background: var(--surface-glass);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid rgba(168, 130, 255, 0.3);
  border-top: none;
  border-radius: 0 0 var(--radius-lg) var(--radius-lg);
  animation: fadeSlideIn var(--duration-normal) var(--ease-out);
}

.area-selector[hidden] {
  display: none;
}

.area-selector-label {
  font-size: 0.72rem;
  font-weight: 600;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin-bottom: var(--space-sm);
}

.area-pills {
  display: flex;
  gap: var(--space-sm);
}

.area-pill {
  flex: 1;
  padding: 10px var(--space-sm);
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  color: var(--text-secondary);
  font-size: 0.8rem;
  font-weight: 500;
  text-align: center;
  transition: all var(--duration-fast) var(--ease-out);
  -webkit-tap-highlight-color: transparent;
}

.area-pill:active {
  transform: scale(0.96);
}

.area-pill.active {
  background: var(--accent-light);
  border-color: rgba(124, 92, 252, 0.4);
  color: var(--accent-hover);
  box-shadow: 0 0 12px rgba(124, 92, 252, 0.15);
}

/* ============================
   Section Headers
   ============================ */
.section-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: var(--space-md);
}

.section-title {
  display: flex;
  align-items: center;
  gap: var(--space-sm);
  font-size: 0.85rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.section-title .dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  flex-shrink: 0;
}

.section-title .dot.ore { background: var(--ore-color); }
.section-title .dot.km { background: var(--km-color); }
.section-title .dot.spese { background: var(--spese-color); }

.section-total {
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--text-secondary);
  font-variant-numeric: tabular-nums;
}

/* ============================
   Entry Cards
   ============================ */
.entries-section {
  margin-bottom: var(--space-lg);
}

.entries-list {
  display: flex;
  flex-direction: column;
  gap: var(--space-sm);
}

.entry-card {
  display: flex;
  align-items: center;
  gap: var(--space-md);
  padding: var(--space-md);
  background: var(--surface-glass);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  transition: all var(--duration-fast) var(--ease-out);
  animation: cardIn var(--duration-normal) var(--ease-out);
}

@keyframes cardIn {
  from {
    opacity: 0;
    transform: translateY(6px) scale(0.98);
  }
}

.entry-card:active {
  background: var(--surface-hover);
}

.entry-amount {
  font-size: 1.35rem;
  font-weight: 700;
  min-width: 60px;
  font-variant-numeric: tabular-nums;
}

.entry-amount.ore { color: var(--ore-color); }
.entry-amount.km { color: var(--km-color); }
.entry-amount.spese { color: var(--spese-color); }

.entry-amount small {
  font-size: 0.7rem;
  font-weight: 500;
  opacity: 0.7;
}

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

.entry-commessa {
  font-size: 0.85rem;
  font-weight: 600;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.entry-note {
  font-size: 0.78rem;
  color: var(--text-secondary);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  margin-top: var(--space-2xs);
}

.entry-actions {
  display: flex;
  gap: var(--space-xs);
  flex-shrink: 0;
}

.entry-edit,
.entry-delete {
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--radius-sm);
  color: var(--text-muted);
  flex-shrink: 0;
  transition: all var(--duration-fast) var(--ease-out);
  -webkit-tap-highlight-color: transparent;
}

.entry-edit:active,
.entry-edit:hover {
  color: var(--accent);
  background: var(--accent-light);
}

.entry-delete:active,
.entry-delete:hover {
  color: var(--danger);
  background: var(--danger-bg);
}

.entry-edit svg,
.entry-delete svg {
  width: 16px;
  height: 16px;
}

/* Empty state */
.entries-empty {
  text-align: center;
  padding: var(--space-lg) var(--space-md);
  color: var(--text-muted);
  font-size: 0.85rem;
}

/* ============================
   Add Button (FAB-like)
   ============================ */
.btn-add {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-sm);
  width: 100%;
  padding: 12px;
  margin-top: var(--space-sm);
  background: var(--surface);
  border: 1px dashed var(--border-light);
  border-radius: var(--radius-md);
  color: var(--text-secondary);
  font-size: 0.85rem;
  font-weight: 500;
  transition: all var(--duration-fast) var(--ease-out);
  -webkit-tap-highlight-color: transparent;
}

.btn-add:active {
  background: var(--surface-active);
  border-color: var(--accent);
  color: var(--accent);
  transform: scale(0.98);
}

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

/* ============================
   Modal (Dialog)
   ============================ */
dialog {
  border: none;
  background: none;
  padding: 0;
  margin: 0;
  max-width: 100vw;
  max-height: 100dvh;
  width: 100vw;
  height: 100dvh;
}

dialog::backdrop {
  background: rgba(0, 0, 0, 0.6);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
}

dialog[open] {
  display: flex;
  align-items: flex-end;
  justify-content: center;
  position: fixed;
  inset: 0;
  z-index: 200;
  animation: modalOverlayIn var(--duration-normal) var(--ease-out);
}

@keyframes modalOverlayIn {
  from { opacity: 0; }
}

.modal-content {
  width: 100%;
  max-width: var(--max-width);
  max-height: 85dvh;
  overflow-y: auto;
  background: #121236;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-bottom: none;
  border-radius: var(--radius-xl) var(--radius-xl) 0 0;
  padding: var(--space-lg);
  padding-bottom: calc(var(--space-xl) + var(--safe-bottom));
  animation: modalSlideUp var(--duration-slow) var(--ease-out);
}

@keyframes modalSlideUp {
  from {
    transform: translateY(100%);
  }
  to {
    transform: translateY(0);
  }
}

.modal-handle {
  width: 36px;
  height: 4px;
  background: var(--border-light);
  border-radius: var(--radius-full);
  margin: 0 auto var(--space-lg);
}

.modal-title {
  font-size: 1.2rem;
  font-weight: 700;
  color: #fff;
  margin-bottom: var(--space-lg);
}

/* ============================
   Form Elements
   ============================ */
.form-group {
  margin-bottom: var(--space-md);
}

.form-label {
  display: block;
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--text-primary);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: var(--space-sm);
}

.form-input {
  width: 100%;
  padding: 12px var(--space-md);
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  color: var(--text-primary);
  font-size: 1rem;
  transition: border-color var(--duration-fast) var(--ease-out),
              background var(--duration-fast) var(--ease-out);
  -webkit-appearance: none;
  appearance: none;
}

.form-input:focus {
  outline: none;
  border-color: var(--border-focus);
  background: var(--surface-hover);
}

.form-input::placeholder {
  color: var(--text-muted);
}

/* Number inputs */
.form-input[type="number"] {
  font-variant-numeric: tabular-nums;
  font-weight: 600;
  font-size: 1.2rem;
}

/* Remove number spinners on mobile */
.form-input[type="number"]::-webkit-inner-spin-button,
.form-input[type="number"]::-webkit-outer-spin-button {
  -webkit-appearance: none;
  margin: 0;
}

.form-input[type="number"] {
  -moz-appearance: textfield;
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-md);
}

/* ============================
   Buttons
   ============================ */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-sm);
  padding: 14px var(--space-lg);
  font-size: 0.95rem;
  font-weight: 600;
  border-radius: var(--radius-md);
  transition: all var(--duration-fast) var(--ease-out);
  -webkit-tap-highlight-color: transparent;
  width: 100%;
}

.btn:active {
  transform: scale(0.97);
}

.btn-primary {
  background: var(--accent-gradient);
  color: #fff;
  box-shadow: 0 4px 16px rgba(124, 92, 252, 0.3);
}

.btn-primary:active {
  box-shadow: 0 2px 8px rgba(124, 92, 252, 0.2);
}

.btn-secondary {
  background: var(--surface);
  color: var(--text-secondary);
  border: 1px solid var(--border);
}

.btn-danger {
  background: var(--danger-bg);
  color: var(--danger);
}

.btn-sm {
  padding: 10px var(--space-md);
  font-size: 0.85rem;
}

.modal-actions {
  display: flex;
  gap: var(--space-md);
  margin-top: var(--space-lg);
}

.modal-actions .btn {
  flex: 1;
}

/* ============================
   Riepilogo
   ============================ */
.month-nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: var(--space-md);
  margin-bottom: var(--space-lg);
  background: var(--surface-glass);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
}

.month-display {
  font-size: 1.1rem;
  font-weight: 600;
  text-transform: capitalize;
}

.summary-cards {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-md);
  margin-bottom: var(--space-lg);
}

.summary-card {
  padding: var(--space-md);
  background: var(--surface-glass);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
}

.summary-card.full-width {
  grid-column: 1 / -1;
}

.summary-card-label {
  font-size: 0.72rem;
  font-weight: 600;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin-bottom: var(--space-sm);
}

.summary-card-value {
  font-size: 1.5rem;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
}

.summary-card-value.ore { color: var(--ore-color); }
.summary-card-value.km { color: var(--km-color); }
.summary-card-value.spese { color: var(--spese-color); }
.summary-card-value.territory { color: var(--success); }
.summary-card-value.pernotto { color: var(--accent); }
.summary-card-value.ferie { color: var(--success); }
.summary-card-value.permesso { color: var(--km-color); }
.summary-card-value.malattia { color: var(--warning); }

/* Breakdown table */
.breakdown-section {
  margin-bottom: var(--space-lg);
}

.breakdown-title {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--text-secondary);
  margin-bottom: var(--space-md);
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.breakdown-list {
  display: flex;
  flex-direction: column;
  gap: var(--space-sm);
}

.breakdown-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: var(--space-md);
  background: var(--surface-glass);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
}

.breakdown-row-label {
  font-size: 0.9rem;
  font-weight: 500;
}

.breakdown-row-value {
  font-size: 0.95rem;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
}

/* Export CSV button */
.btn-export-csv {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-sm);
  margin-top: var(--space-lg);
  padding: var(--space-md) var(--space-lg);
  background: var(--surface-glass);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  color: var(--text-secondary);
  font-size: 0.9rem;
  font-weight: 600;
  transition: all var(--duration-fast) var(--ease-out);
  -webkit-tap-highlight-color: transparent;
}

.btn-export-csv:active {
  background: var(--surface-active);
  border-color: var(--accent);
  color: var(--accent);
  transform: scale(0.98);
}

/* ============================
   Settimana View
   ============================ */
.week-grid {
  margin-top: var(--space-md);
  display: flex;
  gap: var(--space-md);
  overflow-x: auto;
  padding-bottom: var(--space-md);
  scroll-snap-type: x mandatory;
  -webkit-overflow-scrolling: touch;
}

.week-day-card {
  background: var(--surface-glass);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: var(--space-md);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  align-items: flex-start;
  min-width: 140px;
  flex: 0 0 auto;
  scroll-snap-align: start;
  cursor: pointer;
  transition: all var(--duration-fast) var(--ease-out);
  -webkit-tap-highlight-color: transparent;
}

.week-day-card:active,
.week-day-card:hover {
  background: var(--surface-hover);
  transform: translateY(-2px);
}

.week-day-info {
  margin-bottom: var(--space-md);
}

.week-day-name {
  font-weight: 700;
  color: var(--text-primary);
  text-transform: capitalize;
  margin-bottom: 2px;
}

.week-day-date {
  font-size: 0.8rem;
  color: var(--text-muted);
}

.week-day-stats {
  display: flex;
  flex-direction: column;
  gap: var(--space-xs);
  font-size: 0.95rem;
  font-weight: 600;
  text-align: left;
}

.week-day-stats .ore { color: var(--accent); }
.week-day-stats .km { color: var(--km-color); }
.week-day-stats .spese { color: var(--spese-color); }

.week-day-details {
  margin-top: var(--space-sm);
  font-size: 0.75rem;
  color: var(--text-muted);
  display: flex;
  flex-direction: column;
  gap: 2px;
  width: 100%;
}

.week-day-detail-item {
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  display: flex;
  justify-content: space-between;
  border-bottom: 1px solid var(--border);
  padding-bottom: 2px;
}

.week-day-detail-item:last-child {
  border-bottom: none;
}

.week-progress-bar {
  height: 4px;
  background: var(--surface);
  border-radius: 2px;
  margin-top: var(--space-sm);
  width: 100%;
  overflow: hidden;
  display: flex;
}

.week-progress-segment {
  height: 100%;
}

/* ============================
   Mese View
   ============================ */
.month-grid {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: var(--space-xs);
  margin-top: var(--space-md);
}

.month-grid-header {
  text-align: center;
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--text-muted);
  text-transform: uppercase;
  margin-bottom: var(--space-xs);
}

.month-day-cell {
  background: var(--surface-glass);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  min-height: 70px;
  display: flex;
  flex-direction: column;
  padding: 6px;
  cursor: pointer;
  transition: all var(--duration-fast);
  position: relative;
  overflow: hidden;
}

.month-day-cell:hover {
  background: var(--surface-hover);
}

.month-day-cell.weekend {
  background: rgba(255, 255, 255, 0.02);
}

.month-day-cell.empty {
  background: transparent;
  border-color: transparent;
  cursor: default;
}

.month-day-cell.today {
  border-color: var(--accent);
}

.month-day-number {
  font-size: 0.75rem;
  font-weight: 600;
  text-align: right;
  color: var(--text-muted);
  margin-bottom: auto;
}

.month-day-cell.today .month-day-number {
  color: var(--accent);
}

.month-day-icon {
  font-size: 1.2rem;
  text-align: center;
  margin: 4px 0;
}

.month-day-stats {
  font-size: 0.65rem;
  font-weight: 700;
  color: var(--accent);
  text-align: center;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* ============================
   Skeleton Loading
   ============================ */
@keyframes shimmer {
  0% { background-position: -200% 0; }
  100% { background-position: 200% 0; }
}

.skeleton {
  background: linear-gradient(90deg, var(--surface) 25%, var(--surface-hover) 50%, var(--surface) 75%);
  background-size: 200% 100%;
  animation: shimmer 1.5s infinite linear;
  border-radius: var(--radius-sm);
}

.skeleton-text {
  height: 12px;
  width: 60%;
  border-radius: 4px;
}

.skeleton-block {
  width: 100%;
  height: 100%;
  border-radius: var(--radius-md);
}

/* ============================
   Day Off Placeholder
   ============================ */
.day-off-placeholder {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: var(--space-2xl) var(--space-xl);
  background: var(--surface-glass);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px dashed var(--border);
  border-radius: var(--radius-lg);
  margin-top: var(--space-xl);
  text-align: center;
  animation: fadeIn 0.4s ease-out forwards;
}

.day-off-emoji {
  font-size: 3.5rem;
  margin-bottom: var(--space-md);
}

.day-off-text {
  font-size: 1.1rem;
  font-weight: 500;
  color: var(--text-secondary);
}

/* ============================
   Impostazioni
   ============================ */
.settings-section {
  margin-bottom: var(--space-xl);
}

.settings-section-title {
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin-bottom: var(--space-md);
}

.settings-card {
  background: var(--surface-glass);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
}

.settings-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: var(--space-md);
  border-bottom: 1px solid var(--border);
  transition: background var(--duration-fast) var(--ease-out);
  -webkit-tap-highlight-color: transparent;
}

.settings-item:last-child {
  border-bottom: none;
}

.settings-item:active {
  background: var(--surface-hover);
}

.settings-item-left {
  display: flex;
  align-items: center;
  gap: var(--space-md);
}

.settings-item-icon {
  font-size: 1.2rem;
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--surface);
  border-radius: var(--radius-sm);
}

.settings-item-text {
  font-size: 0.9rem;
  font-weight: 500;
}

.settings-item-desc {
  font-size: 0.78rem;
  color: var(--text-secondary);
  margin-top: var(--space-2xs);
}

.settings-item-right {
  color: var(--text-muted);
}

.settings-item-right svg {
  width: 16px;
  height: 16px;
}

/* Commesse list */
.commessa-tag {
  display: inline-flex;
  align-items: center;
  gap: var(--space-sm);
  padding: var(--space-sm) var(--space-md);
  background: var(--accent-light);
  border: 1px solid rgba(124, 92, 252, 0.2);
  border-radius: var(--radius-full);
  font-size: 0.82rem;
  font-weight: 500;
  color: var(--accent-hover);
  margin: var(--space-xs);
}

.commessa-tag-remove {
  width: 18px;
  height: 18px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: rgba(124, 92, 252, 0.2);
  color: var(--accent);
  font-size: 0.75rem;
  transition: all var(--duration-fast) var(--ease-out);
}

.commessa-tag-remove:active {
  background: var(--danger-bg);
  color: var(--danger);
}

.commesse-tags {
  display: flex;
  flex-wrap: wrap;
  padding: var(--space-md);
  gap: var(--space-xs);
}

.add-commessa-row {
  display: flex;
  gap: var(--space-sm);
  padding: var(--space-md);
  padding-top: 0;
}

.add-commessa-row .form-input {
  flex: 1;
}

.btn-icon {
  width: 44px;
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--radius-md);
  background: var(--accent-gradient);
  color: #fff;
  flex-shrink: 0;
  transition: transform var(--duration-fast) var(--ease-out);
}

.btn-icon:active {
  transform: scale(0.92);
}

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

/* ============================
   Toast Notifications
   ============================ */
.toast-container {
  position: fixed;
  top: calc(var(--header-height) + var(--safe-top) + var(--space-md));
  left: 50%;
  transform: translateX(-50%);
  z-index: 300;
  display: flex;
  flex-direction: column;
  gap: var(--space-sm);
  pointer-events: none;
  width: calc(100% - var(--space-xl));
  max-width: var(--max-width);
}

.toast {
  padding: var(--space-md);
  background: var(--bg-secondary);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-md);
  font-size: 0.85rem;
  font-weight: 500;
  box-shadow: var(--shadow-lg);
  animation: toastIn var(--duration-normal) var(--ease-out);
  pointer-events: auto;
}

.toast.success {
  border-left: 3px solid var(--success);
}

.toast.error {
  border-left: 3px solid var(--danger);
}

.toast.fade-out {
  animation: toastOut var(--duration-normal) var(--ease-out) forwards;
}

@keyframes toastIn {
  from {
    opacity: 0;
    transform: translateY(-10px) scale(0.95);
  }
}

@keyframes toastOut {
  to {
    opacity: 0;
    transform: translateY(-10px) scale(0.95);
  }
}

/* ============================
   Confirm Dialog
   ============================ */
.confirm-overlay {
  position: fixed;
  inset: 0;
  z-index: 250;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: var(--space-xl);
  background: rgba(0, 0, 0, 0.6);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  animation: modalOverlayIn var(--duration-fast) var(--ease-out);
}

.confirm-overlay[hidden] {
  display: none;
}

.confirm-box {
  width: 100%;
  max-width: 320px;
  padding: var(--space-lg);
  background: var(--bg-secondary);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-xl);
  text-align: center;
  animation: modalSlideUp var(--duration-normal) var(--ease-out);
}

.confirm-message {
  font-size: 0.95rem;
  font-weight: 500;
  margin-bottom: var(--space-lg);
  line-height: 1.6;
}

.confirm-actions {
  display: flex;
  gap: var(--space-md);
}

.confirm-actions .btn {
  flex: 1;
}

/* ============================
   Empty State Illustrations
   ============================ */
.empty-state {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: var(--space-2xl) var(--space-md);
  text-align: center;
}

.empty-state-icon {
  font-size: 3rem;
  margin-bottom: var(--space-md);
  opacity: 0.4;
}

.empty-state-text {
  font-size: 0.9rem;
  color: var(--text-muted);
  max-width: 240px;
}

/* ============================
   Utility Classes
   ============================ */
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.text-danger {
  color: var(--danger);
}

.mt-sm { margin-top: var(--space-sm); }
.mt-md { margin-top: var(--space-md); }
.mt-lg { margin-top: var(--space-lg); }
.mb-md { margin-bottom: var(--space-md); }

/* ============================
   Responsive (Tablet — 768px+)
   ============================ */
@media (min-width: 768px) {
  :root {
    --header-height: 64px;
    --nav-height: 72px;
  }

  .date-nav, .territory-toggle, .entry-card, .summary-card, .settings-card {
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
  }

  .login-title {
    font-size: 2.8rem;
  }

  /* Modal: centered card instead of bottom sheet */
  dialog[open] {
    align-items: center;
  }

  .modal-content {
    max-width: 440px;
    max-height: 80dvh;
    border-radius: var(--radius-xl);
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-bottom: 1px solid rgba(255, 255, 255, 0.12);
    box-shadow: 0 24px 80px rgba(0, 0, 0, 0.5);
    padding-bottom: var(--space-xl);
    animation: modalPopIn var(--duration-normal) var(--ease-out);
  }

  @keyframes modalPopIn {
    from {
      opacity: 0;
      transform: scale(0.92) translateY(20px);
    }
    to {
      opacity: 1;
      transform: scale(1) translateY(0);
    }
  }

  .modal-handle {
    display: none;
  }
}

/* ============================
   Responsive (Desktop — 1024px+)
   ============================ */
@media (min-width: 1024px) {
  :root {
    --max-width: 1200px;
  }

  /* Sidebar nav instead of bottom bar */
  #app {
    flex-direction: row;
  }

  .app-header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 60;
    height: var(--header-height);
  }

  .app-nav {
    position: fixed;
    top: var(--header-height);
    left: 0;
    bottom: 0;
    width: 200px;
    height: auto;
    flex-direction: column;
    justify-content: flex-start;
    padding: var(--space-lg) var(--space-sm);
    gap: var(--space-xs);
    border-top: none;
    border-right: 1px solid var(--border);
    z-index: 50;
  }

  .nav-item {
    flex-direction: row;
    justify-content: flex-start;
    gap: var(--space-md);
    padding: var(--space-md);
    border-radius: var(--radius-md);
    font-size: 0.8rem;
    width: 100%;
    text-transform: none;
    letter-spacing: normal;
  }

  .nav-item.active {
    background: var(--accent-light);
  }

  .nav-item.active::before {
    display: none;
  }

  .nav-item svg {
    width: 20px;
    height: 20px;
  }

  .app-content {
    margin-left: 200px;
    margin-top: var(--header-height);
    padding-bottom: var(--space-xl);
    padding-top: var(--space-md);
  }

  .view {
    padding: var(--space-lg) var(--space-xl);
  }

  /* 2-Column Giornata layout */
  .giornata-layout {
    display: grid;
    grid-template-columns: 1fr 2fr;
    gap: var(--space-xl);
    align-items: start;
  }

  .giornata-col-left {
    position: sticky;
    top: calc(var(--header-height) + var(--space-md));
  }

  /* Wider summary grid */
  .summary-cards {
    grid-template-columns: repeat(3, 1fr);
  }

  /* Week grid wrapped on desktop */
  .week-grid {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    overflow-x: visible;
    gap: var(--space-md);
  }

  /* Better entry cards on hover */
  .entry-card:hover {
    background: var(--surface-hover);
    border-color: var(--border-light);
  }

  .entry-delete:hover {
    color: var(--danger);
    background: var(--danger-bg);
  }

  .btn-add:hover {
    background: var(--surface-hover);
    border-color: var(--accent);
    color: var(--accent);
  }

  .nav-item:hover {
    background: var(--surface-hover);
    color: var(--text-primary);
  }

  .settings-item:hover {
    background: var(--surface-hover);
  }

  .date-nav-btn:hover {
    background: var(--surface-active);
    color: var(--text-primary);
  }

  .area-pill:hover {
    background: var(--surface-hover);
    border-color: var(--border-light);
  }
}

/* ============================
   Stampa / Esportazione PDF
   ============================ */
@media print {
  /* Nascondi elementi non necessari */
  .bottom-nav,
  header,
  .month-nav button,
  #btn-print,
  #loading-screen,
  #login-screen,
  #view-mese,
  #view-settimana,
  #view-impostazioni,
  #view-giornata {
    display: none !important;
  }

  /* Mostra sempre il riepilogo in stampa */
  #view-riepilogo {
    display: block !important;
  }

  body {
    background: white !important;
    color: black !important;
    padding: 0 !important;
    margin: 0 !important;
  }

  main {
    padding-bottom: 0 !important;
  }

  /* Ripulisci sfondi e bordi */
  .summary-card,
  .breakdown-card {
    background: none !important;
    border: 1px solid #ccc !important;
    box-shadow: none !important;
    break-inside: avoid;
    page-break-inside: avoid;
    margin-bottom: 15px;
    padding: 10px !important;
  }

  .summary-card-value {
    color: black !important;
  }

  .month-display {
    color: black !important;
    font-size: 24px !important;
  }

  .section-subtitle {
    color: #333 !important;
  }
}
