/* ============================================================
   Levi's Screen Time — app.css
   Tailwind handles layout/spacing/color.
   This file covers only what Tailwind cannot.
   ============================================================ */

/* ── PREVENT iOS INPUT ZOOM ── */
/* iOS Safari zooms when input font-size < 16px */
input, select, textarea { font-size: 16px !important; }

/* ── SVG ICON BASE ── */
.icon {
  display: inline-block;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.5;
  stroke-linecap: round;
  stroke-linejoin: round;
  vertical-align: middle;
  flex-shrink: 0;
}

/* ── LOGIN SCREEN ── */
.login-screen {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-height: 100dvh;
  padding: 24px;
  background: #0f172a;
}

/* ── VIEW SHOW/HIDE ── */
.view { display: none; }
.view.active { display: block; }

/* ── SCROLLABLE CONTENT ── */
.view-content {
  flex: 1;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
}

/* ── PROGRESS BAR (Chart.js canvas) ── */
.chart-container { position: relative; width: 100%; }
.chart-container canvas { width: 100% !important; }

/* ── SPINNER ── */
.spinner {
  display: inline-block;
  width: 24px; height: 24px;
  border: 2.5px solid rgba(255,255,255,.3);
  border-top-color: #fff;
  border-radius: 50%;
  animation: spin .7s linear infinite;
}
.spinner-sm {
  display: inline-block;
  width: 16px; height: 16px;
  border: 2px solid rgba(255,255,255,.4);
  border-top-color: #fff;
  border-radius: 50%;
  animation: spin .7s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }

/* ── TOAST ── */
.toast {
  position: fixed;
  bottom: calc(4rem + 16px + env(safe-area-inset-bottom, 0px));
  left: 50%;
  transform: translateX(-50%) translateY(20px);
  background: #0f172a;
  color: #fff;
  padding: 10px 20px;
  border-radius: 9999px;
  font-size: 0.85rem;
  font-weight: 600;
  font-family: Avenir, Montserrat, Corbel, sans-serif;
  white-space: nowrap;
  opacity: 0;
  pointer-events: none;
  transition: opacity .2s, transform .2s;
  z-index: 200;
}
.toast.show { opacity: 1; transform: translateX(-50%) translateY(0); }
.toast.success { background: #16a34a; }
.toast.error   { background: #dc2626; }

/* ── X-CLOAK ── */
[x-cloak] { display: none !important; }

/* ── AIR DATEPICKER OVERRIDES ── */
.air-datepicker {
  --adp-font-family: Avenir, Montserrat, Corbel, sans-serif;
  --adp-font-size: 14px;
  --adp-width: 280px;
  --adp-z-index: 200;
  --adp-padding: 8px;
  --adp-color: #0f172a;
  --adp-color-secondary: #64748b;
  --adp-accent-color: #2563a8;
  --adp-color-current-date: #2563a8;
  --adp-color-other-month: #cbd5e1;
  --adp-background-color: #ffffff;
  --adp-background-color-hover: #eff6ff;
  --adp-background-color-active: #2563a8;
  --adp-color-active: #fff;
  --adp-border-color: #e2e8f0;
  --adp-border-radius: 8px;
  --adp-nav-height: 40px;
  --adp-nav-arrow-color: #64748b;
  --adp-day-name-color: #93c5fd;
  --adp-selected-color: #fff;
  box-shadow: 0 4px 24px rgba(15,23,42,.12);
}
.air-datepicker-cell.-selected- { background: #2563a8; color: #fff; border-radius: 6px; }
.air-datepicker-cell.-current-  { color: #2563a8; font-weight: 700; }
.air-datepicker-cell:hover       { border-radius: 6px; }
.air-datepicker-cell.-disabled-  { color: #e2e8f0 !important; pointer-events: none; }
.air-datepicker-nav--title        { font-weight: 700; font-size: 14px; }
