.dash-wrap { max-width: 1100px; margin: 40px auto 80px; padding: 0 24px; }

/* ── Dashboard nav (overrides landing.css mobile rules that hide non-CTA links) ── */
nav.dash-nav { display: flex; align-items: center; justify-content: space-between; }
nav.dash-nav .dash-nav-toggle { display: none; }   /* hidden checkbox drives the toggle */
nav.dash-nav .dash-nav-burger { display: none; }   /* shown only on mobile */
nav.dash-nav .dash-nav-links {
  display: flex; gap: 20px; align-items: center;
}
nav.dash-nav .dash-nav-links a {
  color: var(--text-muted); text-decoration: none; font-weight: 600; font-size: 14px;
}
nav.dash-nav .dash-nav-links a:hover { color: var(--text-main); }
nav.dash-nav .dash-nav-links a.nav-cta {
  background: var(--primary);
  border: 1px solid var(--primary);
  color: #ffffff;
  padding: 8px 16px;
  border-radius: 6px;
  font-weight: 700;
  letter-spacing: 0.2px;
  transition: background .15s ease, color .15s ease, box-shadow .15s ease;
}
nav.dash-nav .dash-nav-links a.nav-cta:hover {
  background: var(--primary-dark);
  border-color: var(--primary-dark);
  color: #ffffff;
  box-shadow: 0 0 0 3px rgba(10, 37, 64, 0.12);
}

@media (max-width: 720px) {
  /* Show the hamburger, hide the inline link row by default */
  nav.dash-nav { flex-wrap: nowrap; padding: 12px 16px; position: relative; }
  nav.dash-nav .dash-nav-burger {
    display: inline-flex; flex-direction: column; justify-content: center;
    gap: 5px; width: 36px; height: 36px; padding: 8px; cursor: pointer;
    border-radius: 6px; background: rgba(10, 37, 64,0.05);
    border: 1px solid rgba(10, 37, 64,0.1);
  }
  nav.dash-nav .dash-nav-burger span {
    display: block; height: 2px; background: var(--text-main); border-radius: 1px;
    transition: transform 0.2s, opacity 0.2s;
  }
  /* Drop-down menu — full-width below the nav, slides open on toggle */
  nav.dash-nav .dash-nav-links {
    display: none; position: absolute; top: 100%; left: 0; right: 0;
    flex-direction: column; align-items: stretch; gap: 0;
    background: #ffffff; border-top: 1px solid rgba(10, 37, 64,0.08);
    border-bottom: 1px solid rgba(10, 37, 64,0.08);
    padding: 8px 0; z-index: 50;
  }
  nav.dash-nav .dash-nav-links a {
    display: block; padding: 14px 20px; font-size: 16px;
    border-bottom: 1px solid rgba(10, 37, 64,0.04);
  }
  nav.dash-nav .dash-nav-links a:last-child { border-bottom: none; }
  nav.dash-nav .dash-nav-links a.nav-cta {
    margin: 6px 16px 8px;
    padding: 14px 16px;
    background: var(--primary);
    color: #ffffff;
    border: 1px solid var(--primary);
    border-radius: 8px;
    text-align: center;
    font-weight: 700;
  }
  /* Toggle: when checkbox is checked, show the dropdown + animate burger to X */
  nav.dash-nav .dash-nav-toggle:checked ~ .dash-nav-links { display: flex; }
  nav.dash-nav .dash-nav-toggle:checked ~ .dash-nav-burger span:nth-child(1) {
    transform: translateY(7px) rotate(45deg);
  }
  nav.dash-nav .dash-nav-toggle:checked ~ .dash-nav-burger span:nth-child(2) { opacity: 0; }
  nav.dash-nav .dash-nav-toggle:checked ~ .dash-nav-burger span:nth-child(3) {
    transform: translateY(-7px) rotate(-45deg);
  }
}


.dash-header {
  display: flex; align-items: flex-start; justify-content: space-between;
  gap: 24px; flex-wrap: wrap; margin-bottom: 36px;
}
.dash-header h1 {
  font-family: var(--font-display); font-size: 32px; font-weight: 900;
  letter-spacing: -0.5px; margin: 0 0 6px;
}
.dash-sub { color: var(--text-muted); font-size: 14px; line-height: 1.6; }

.dash-status {
  padding: 10px 20px; border-radius: 100px;
  font-family: var(--font-display); font-size: 13px; font-weight: 700;
  letter-spacing: 0.5px;
}
.dash-status.active { background: rgba(10, 37, 64,0.15); color: #10b981; border: 1px solid rgba(10, 37, 64,0.3); }
.dash-status.paused { background: rgba(239,158,11,0.15); color: #fbbf24; border: 1px solid rgba(239,158,11,0.3); }

.cards-grid {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: 16px; margin-bottom: 40px;
}
.stat-card {
  background: var(--bg-card); border: var(--glass-border);
  border-radius: var(--radius-md); padding: 20px 20px;
  backdrop-filter: blur(12px);
}
.sc-label { font-size: 11px; font-weight: 700; letter-spacing: 1.5px; text-transform: uppercase; color: var(--text-muted); margin-bottom: 10px; }
.sc-num { font-family: var(--font-display); font-size: 36px; font-weight: 900; line-height: 1; color: var(--text-main); }
.sc-sub { font-size: 12px; color: var(--text-muted); margin-top: 6px; }

.dash-section {
  background: var(--bg-card); border: var(--glass-border);
  border-radius: var(--radius-lg); padding: 32px;
  backdrop-filter: blur(12px); margin-bottom: 24px;
}
.dash-section h2 {
  font-family: var(--font-display); font-size: 20px; font-weight: 800;
  margin: 0 0 20px; letter-spacing: -0.2px;
}

.day-chart { display: flex; flex-direction: column; gap: 8px; }
.day-row { display: grid; grid-template-columns: 60px 1fr 90px; gap: 12px; align-items: center; }
.day-label { font-size: 13px; color: var(--text-muted); font-weight: 600; }
.day-bar-wrap { height: 10px; background: rgba(10, 37, 64,0.04); border-radius: 100px; overflow: hidden; }
.day-bar { height: 100%; background: linear-gradient(90deg, var(--primary), var(--accent)); border-radius: 100px; transition: width .3s; }
.day-stat { font-size: 13px; color: var(--text-secondary); font-weight: 600; text-align: right; }

.quick-actions { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 12px; }
.quick-action {
  display: flex; flex-direction: column; gap: 6px;
  padding: 20px 20px; background: rgba(255,255,255,0.5);
  border: 1px solid rgba(10, 37, 64,0.06); border-radius: var(--radius-sm);
  color: var(--text-main); text-decoration: none; cursor: pointer;
  font-family: var(--font-sans); text-align: left; transition: .2s;
}
.quick-action:hover { border-color: rgba(10, 37, 64,0.35); background: rgba(10, 37, 64,0.06); }
.quick-action strong { font-size: 15px; font-weight: 700; }
.quick-action span { font-size: 13px; color: var(--text-muted); }
.quick-action-btn { width: 100%; font-family: inherit; }

.dash-table { width: 100%; border-collapse: collapse; }
.dash-table th, .dash-table td {
  padding: 14px 12px; text-align: left;
  border-bottom: 1px solid rgba(10, 37, 64,0.05);
  color: var(--text-secondary); font-size: 14px;
}
.dash-table th {
  font-family: var(--font-display); font-size: 12px; font-weight: 800;
  letter-spacing: 1px; text-transform: uppercase; color: var(--text-muted);
}

.inline-form {
  display: flex; gap: 10px; flex-wrap: wrap; align-items: stretch;
}
.inline-form input {
  flex: 1; min-width: 140px;
  background: rgba(255,255,255,0.7); border: 1px solid rgba(10, 37, 64,0.12);
  border-radius: var(--radius-sm); color: var(--text-main);
  padding: 12px 14px; font-size: 15px; font-family: var(--font-sans);
}
.inline-form .btn-submit { width: auto; padding: 12px 22px; margin: 0; }

.btn-mini {
  padding: 6px 14px; border-radius: 6px; font-size: 12px; font-weight: 700;
  border: 1px solid rgba(10, 37, 64,0.15); background: transparent;
  color: var(--text-main); cursor: pointer; transition: .2s;
  font-family: var(--font-display);
}
.btn-danger { color: #f87171; border-color: rgba(239,68,68,0.3); }
.btn-danger:hover { background: rgba(239,68,68,0.1); }

.info-row {
  display: flex; justify-content: space-between; align-items: center;
  padding: 12px 0; border-bottom: 1px solid rgba(10, 37, 64,0.05);
  font-size: 14px;
}
.info-row:last-child { border-bottom: none; }
.info-row span { color: var(--text-muted); }
.info-row strong { color: var(--text-main); font-weight: 600; }

/* LOGIN PAGE */
.login-card {
  max-width: 440px; margin: 80px auto;
  background: var(--bg-card); border: var(--glass-border);
  border-radius: var(--radius-lg); padding: 48px 40px;
  backdrop-filter: blur(16px); text-align: center;
  box-shadow: var(--shadow-md), var(--shadow-glow);
}
.login-shield {
  width: 64px; height: 64px; border-radius: 14px;
  background: linear-gradient(135deg, var(--primary), var(--accent));
  display: flex; align-items: center; justify-content: center;
  margin: 0 auto 24px; box-shadow: 0 0 24px rgba(10, 37, 64,0.35);
}
.login-card h1 {
  font-family: var(--font-display); font-size: 26px; font-weight: 900;
  margin: 0 0 10px; letter-spacing: -0.3px;
}
.login-card .sub { color: var(--text-secondary); font-size: 15px; margin-bottom: 28px; line-height: 1.6; }
.login-card .field { text-align: left; margin-bottom: 16px; }
.login-fine { color: var(--text-muted); font-size: 13px; margin-top: 20px; line-height: 1.6; }
.login-fine a { color: var(--primary-light); }

.alert {
  padding: 12px 16px; border-radius: var(--radius-sm);
  font-size: 14px; font-weight: 600; margin-bottom: 20px; text-align: left;
}
.alert-ok   { background: rgba(10, 37, 64,0.1);  border: 1px solid rgba(10, 37, 64,0.3);  color: #34d399; }
.alert-warn { background: rgba(239,158,11,0.1);  border: 1px solid rgba(239,158,11,0.3);  color: #fbbf24; }

/* ── TIMEZONE CALLOUT ──────────────────────────────────────────────────── */

.tz-callout {
  background: rgba(201, 169, 97,0.06);
  border: 1px solid rgba(201, 169, 97,0.22);
  border-radius: var(--radius-md);
  padding: 20px 22px;
  margin-bottom: 24px;
}
.tz-head {
  display: flex; align-items: center; gap: 14px; margin-bottom: 14px;
}
.tz-icon {
  width: 36px; height: 36px; flex-shrink: 0;
  display: inline-flex; align-items: center; justify-content: center;
  border-radius: 10px;
  background: rgba(201, 169, 97,0.14);
  color: var(--accent);
}
.tz-title {
  font-family: var(--font-display); font-size: 15px; font-weight: 800;
  color: var(--text-main); letter-spacing: -0.2px;
}
.tz-sub { font-size: 13px; color: var(--text-muted); margin-top: 2px; }

.tz-body {
  display: flex; gap: 12px; align-items: stretch; flex-wrap: wrap;
}
.tz-body select {
  flex: 1; min-width: 220px;
  background: rgba(255,255,255,0.7); border: 1px solid rgba(10, 37, 64,0.12);
  border-radius: var(--radius-sm); color: var(--text-main);
  padding: 11px 14px; font-family: var(--font-sans);
  font-size: 15px; font-weight: 500; cursor: pointer;
}
.tz-body select option { background: #f8fafc; }
.tz-body .btn-submit {
  width: auto; padding: 11px 22px; margin: 0; font-size: 14px;
}
.tz-body .btn-submit:disabled {
  opacity: 0.35; cursor: not-allowed;
}

.tz-warning {
  margin-top: 14px; padding: 12px 14px;
  background: rgba(251,191,36,0.1);
  border: 1px solid rgba(251,191,36,0.25);
  border-radius: 8px; color: #fbbf24;
  font-size: 13px; line-height: 1.55;
}
.tz-warning strong { color: #fde68a; }

/* ── BUSINESS HOURS EDITOR ─────────────────────────────────────────────── */

.hrs-presets {
  display: flex; flex-wrap: wrap; align-items: center; gap: 8px;
  margin-bottom: 20px; padding-bottom: 16px;
  border-bottom: 1px solid rgba(10, 37, 64,0.06);
}
.hrs-preset-label {
  font-size: 12px; font-weight: 700; letter-spacing: 1px;
  text-transform: uppercase; color: var(--text-muted); margin-right: 6px;
}
.btn-preset {
  padding: 7px 14px; border-radius: 100px;
  background: rgba(255,255,255,0.6); border: 1px solid rgba(10, 37, 64,0.12);
  color: var(--text-secondary); font-family: var(--font-sans);
  font-size: 13px; font-weight: 600; cursor: pointer;
  transition: .15s;
}
.btn-preset:hover {
  background: rgba(10, 37, 64,0.12); border-color: rgba(10, 37, 64,0.35);
  color: var(--primary-light);
}

.hrs-editor {
  display: flex; flex-direction: column; gap: 2px;
  background: rgba(255,255,255,0.4);
  border: 1px solid rgba(10, 37, 64,0.06);
  border-radius: var(--radius-md);
  overflow: hidden;
}
.hrs-row {
  display: grid; grid-template-columns: 110px 110px 1fr;
  align-items: center; gap: 16px;
  padding: 14px 18px;
  background: rgba(248,250,252,0.35);
  transition: background .15s;
}
.hrs-row:hover { background: rgba(248,250,252,0.55); }
.hrs-row.is-closed { background: rgba(15,23,42,0.3); }
.hrs-day {
  font-weight: 700; color: var(--text-main); font-size: 15px;
}
.hrs-row.is-closed .hrs-day { color: var(--text-muted); }

/* Toggle pill */
.hrs-toggle {
  display: inline-flex; align-items: center; gap: 10px; cursor: pointer;
  user-select: none;
}
.hrs-toggle input[type="checkbox"] {
  position: absolute; opacity: 0; width: 0; height: 0;
}
.hrs-pill {
  width: 34px; height: 20px; background: rgba(10, 37, 64,0.12);
  border-radius: 100px; position: relative;
  transition: background .2s;
  flex-shrink: 0;
}
.hrs-pill::after {
  content: ''; position: absolute; top: 2px; left: 2px;
  width: 16px; height: 16px; border-radius: 50%;
  background: #cbd5e1; transition: .2s;
}
.hrs-toggle input:checked ~ .hrs-pill {
  background: rgba(201, 169, 97,0.9);
}
.hrs-toggle input:checked ~ .hrs-pill::after {
  left: 16px; background: #0a2540;
}
.hrs-toggle input:focus-visible ~ .hrs-pill {
  outline: 2px solid var(--primary-light); outline-offset: 2px;
}
.hrs-state {
  font-size: 13px; font-weight: 600; color: var(--text-secondary);
  min-width: 48px;
}
.hrs-row.is-closed .hrs-state { color: var(--text-muted); }

/* Time inputs */
.hrs-times {
  display: flex; align-items: center; gap: 10px;
  justify-self: end;
}
.hrs-times input[type="time"] {
  background: rgba(255,255,255,0.7); border: 1px solid rgba(10, 37, 64,0.12);
  border-radius: 6px; color: var(--text-main);
  padding: 8px 10px; font-family: var(--font-sans); font-size: 14px;
  font-weight: 600; color-scheme: light;
  width: 110px;
}
.hrs-times input[type="time"]:focus {
  outline: none; border-color: var(--primary); box-shadow: 0 0 0 3px rgba(10, 37, 64,.12);
}
.hrs-times input[type="time"]:disabled {
  opacity: 0.35; cursor: not-allowed;
}
.hrs-sep { font-size: 13px; color: var(--text-muted); font-weight: 500; }
.hrs-row.is-closed .hrs-times { opacity: 0.4; }

/* ── MOBILE ─────────────────────────────────────────────────────────────── */
@media (max-width: 720px) {
  .dash-wrap { margin: 24px auto 60px; padding: 0 16px; }
  .dash-header { flex-direction: column; align-items: flex-start; gap: 12px; margin-bottom: 28px; }
  .dash-header h1 { font-size: 26px; }
  .dash-sub { font-size: 13px; }
  .dash-status { padding: 8px 16px; font-size: 12px; }
  .cards-grid { grid-template-columns: repeat(2, 1fr); gap: 12px; margin-bottom: 28px; }
  .stat-card { padding: 16px 14px; }
  .sc-num { font-size: 28px; }
  .sc-label { font-size: 10px; margin-bottom: 6px; }
  .dash-section { padding: 24px 20px; margin-bottom: 18px; }
  .dash-section h2 { font-size: 18px; margin-bottom: 16px; }
  .day-row { grid-template-columns: 50px 1fr 70px; gap: 10px; }
  .day-label, .day-stat { font-size: 12px; }
  .quick-actions { grid-template-columns: 1fr; }
  .quick-action { padding: 16px 16px; }
  .dash-table th, .dash-table td { padding: 10px 8px; font-size: 13px; }
  .inline-form { flex-direction: column; align-items: stretch; }
  .inline-form .btn-submit { width: 100%; }

  /* Hours editor: stack day + toggle + times */
  .hrs-row {
    grid-template-columns: 1fr; gap: 10px;
    padding: 14px 14px;
  }
  .hrs-times { justify-self: stretch; }
  .hrs-times input[type="time"] { flex: 1; min-width: 0; width: auto; }
  .hrs-presets { flex-direction: column; align-items: flex-start; gap: 10px; }
  .hrs-presets .btn-preset { width: 100%; text-align: center; }
  .hrs-preset-label { margin: 0; }

  .tz-callout { padding: 16px 16px; }
  .tz-body { flex-direction: column; }
  .tz-body select { width: 100%; }
  .tz-body .btn-submit { width: 100%; }
  .login-card { margin: 40px 16px; padding: 36px 24px; }
  .login-card h1 { font-size: 22px; }
  .login-shield { width: 56px; height: 56px; margin-bottom: 20px; }
}

@media (max-width: 420px) {
  .cards-grid { grid-template-columns: 1fr 1fr; gap: 10px; }
  .stat-card { padding: 14px 12px; }
  .sc-num { font-size: 24px; }
  .dash-section { padding: 20px 16px; }
  .login-card { padding: 30px 20px; }
}
