/* =========================================================
   BarberPro – Tema Premium Preto/Ouro
   ========================================================= */

/* --- Variáveis ----------------------------------------- */
:root {
  --black:       #0a0a0a;
  --dark:        #111111;
  --darker:      #161616;
  --card:        #1c1c1c;
  --card-hover:  #222222;
  --border:      #2a2a2a;
  --border-light:#333333;
  --gold:        #d4a843;
  --gold-light:  #e8c06a;
  --gold-dark:   #b8922a;
  --gold-faint:  rgba(212,168,67,.08);
  --text:        #f0f0f0;
  --text-muted:  #999;
  --text-dim:    #666;
  --success:     #2ecc71;
  --warning:     #f39c12;
  --danger:      #e74c3c;
  --info:        #3498db;
  --sidebar-w:   260px;
  --radius:      10px;
  --shadow:      0 4px 24px rgba(0,0,0,.5);
  --transition:  .2s ease;
}

/* --- Reset --------------------------------------------- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; }

body {
  font-family: 'Segoe UI', system-ui, -apple-system, sans-serif;
  background: var(--black);
  color: var(--text);
  line-height: 1.6;
  min-height: 100vh;
}

a { color: var(--gold); text-decoration: none; transition: color var(--transition); }
a:hover { color: var(--gold-light); }

img { max-width: 100%; display: block; }

/* --- Scrollbar ----------------------------------------- */
::-webkit-scrollbar { width: 6px; height: 6px; }
::-webkit-scrollbar-track { background: var(--dark); }
::-webkit-scrollbar-thumb { background: var(--border-light); border-radius: 3px; }
::-webkit-scrollbar-thumb:hover { background: var(--gold-dark); }

/* =========================================================
   Layout
   ========================================================= */
.layout {
  display: flex;
  min-height: 100vh;
}

/* --- Sidebar ------------------------------------------- */
.sidebar {
  width: var(--sidebar-w);
  background: var(--darker);
  border-right: 1px solid var(--border);
  display: flex;
  flex-direction: column;
  position: fixed;
  top: 0; left: 0;
  height: 100vh;
  z-index: 100;
  transition: transform var(--transition);
}

.sidebar-logo {
  padding: 1.5rem 1.25rem 1.25rem;
  border-bottom: 1px solid var(--border);
  display: flex;
  align-items: center;
  gap: .75rem;
}

.sidebar-logo .logo-icon {
  width: 40px; height: 40px;
  background: var(--gold);
  border-radius: 10px;
  display: flex; align-items: center; justify-content: center;
  font-size: 1.2rem;
  flex-shrink: 0;
}

.sidebar-logo .logo-text {
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--text);
  letter-spacing: .5px;
}

.sidebar-logo .logo-sub {
  font-size: .7rem;
  color: var(--gold);
  text-transform: uppercase;
  letter-spacing: 1px;
}

.sidebar-user {
  padding: 1rem 1.25rem;
  border-bottom: 1px solid var(--border);
  display: flex;
  align-items: center;
  gap: .75rem;
}

.sidebar-user .avatar {
  width: 38px; height: 38px;
  border-radius: 50%;
  background: var(--gold-dark);
  display: flex; align-items: center; justify-content: center;
  font-weight: 700;
  font-size: .9rem;
  color: var(--black);
  flex-shrink: 0;
}

.sidebar-user .user-info { overflow: hidden; }

.sidebar-user .user-name {
  font-size: .85rem;
  font-weight: 600;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.sidebar-user .user-role {
  font-size: .72rem;
  color: var(--text-muted);
}

.sidebar-nav {
  flex: 1;
  overflow-y: auto;
  padding: .75rem 0;
}

.nav-section {
  padding: .5rem 1.25rem .25rem;
  font-size: .68rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1.2px;
  color: var(--text-dim);
}

.nav-item {
  display: flex;
  align-items: center;
  gap: .75rem;
  padding: .65rem 1.25rem;
  margin: .1rem .5rem;
  border-radius: var(--radius);
  color: var(--text-muted);
  font-size: .875rem;
  font-weight: 500;
  cursor: pointer;
  transition: all var(--transition);
  text-decoration: none;
}

.nav-item .nav-icon { font-size: 1.05rem; width: 20px; text-align: center; flex-shrink: 0; }
.nav-item .nav-badge { margin-left: auto; background: var(--danger); color: #fff; font-size: .68rem; font-weight: 700; padding: .1rem .45rem; border-radius: 99px; }

.nav-item:hover {
  background: var(--gold-faint);
  color: var(--gold-light);
}

.nav-item.active {
  background: var(--gold-faint);
  color: var(--gold);
  border-left: 3px solid var(--gold);
  margin-left: calc(.5rem - 3px);
}

.sidebar-footer {
  padding: 1rem;
  border-top: 1px solid var(--border);
}

.btn-logout {
  display: flex;
  align-items: center;
  gap: .6rem;
  width: 100%;
  padding: .65rem 1rem;
  background: transparent;
  border: 1px solid var(--border-light);
  border-radius: var(--radius);
  color: var(--text-muted);
  font-size: .875rem;
  cursor: pointer;
  transition: all var(--transition);
  text-decoration: none;
}

.btn-logout:hover {
  background: rgba(231,76,60,.12);
  border-color: var(--danger);
  color: var(--danger);
}

/* --- Main Content --------------------------------------- */
.main-content {
  margin-left: var(--sidebar-w);
  flex: 1;
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}

.topbar {
  background: var(--darker);
  border-bottom: 1px solid var(--border);
  padding: 1rem 1.75rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  position: sticky;
  top: 0;
  z-index: 50;
}

.topbar h1 {
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--text);
}

.topbar .topbar-right {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.topbar-date {
  font-size: .8rem;
  color: var(--text-muted);
}

.page-body {
  padding: 1.75rem;
  flex: 1;
}

/* =========================================================
   Components
   ========================================================= */

/* --- Cards --------------------------------------------- */
.card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.5rem;
}

.card-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 1.25rem;
  padding-bottom: .75rem;
  border-bottom: 1px solid var(--border);
}

.card-title {
  font-size: 1rem;
  font-weight: 600;
  color: var(--text);
}

.card-subtitle {
  font-size: .8rem;
  color: var(--text-muted);
  margin-top: .1rem;
}

/* --- Stats Cards --------------------------------------- */
.stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1rem;
  margin-bottom: 1.75rem;
}

.stat-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.5rem;
  display: flex;
  align-items: center;
  gap: 1.25rem;
  transition: border-color var(--transition), transform var(--transition);
}

.stat-card:hover {
  border-color: var(--gold-dark);
  transform: translateY(-2px);
}

.stat-icon {
  width: 54px; height: 54px;
  border-radius: 12px;
  display: flex; align-items: center; justify-content: center;
  font-size: 1.5rem;
  flex-shrink: 0;
}

.stat-icon.gold    { background: rgba(212,168,67,.15); }
.stat-icon.green   { background: rgba(46,204,113,.15); }
.stat-icon.blue    { background: rgba(52,152,219,.15); }
.stat-icon.purple  { background: rgba(155,89,182,.15); }
.stat-icon.red     { background: rgba(231,76,60,.15); }

.stat-info { flex: 1; }

.stat-value {
  font-size: 1.75rem;
  font-weight: 700;
  color: var(--gold);
  line-height: 1.1;
}

.stat-label {
  font-size: .8rem;
  color: var(--text-muted);
  margin-top: .1rem;
}

.stat-change {
  font-size: .75rem;
  font-weight: 600;
  margin-top: .25rem;
}

.stat-change.up   { color: var(--success); }
.stat-change.down { color: var(--danger); }

/* --- Tables -------------------------------------------- */
.table-wrap { overflow-x: auto; }

table {
  width: 100%;
  border-collapse: collapse;
  font-size: .875rem;
}

thead th {
  padding: .65rem 1rem;
  background: var(--darker);
  color: var(--text-muted);
  font-weight: 600;
  font-size: .75rem;
  text-transform: uppercase;
  letter-spacing: .5px;
  text-align: left;
  border-bottom: 1px solid var(--border);
}

tbody tr {
  border-bottom: 1px solid var(--border);
  transition: background var(--transition);
}

tbody tr:hover { background: var(--card-hover); }

tbody td {
  padding: .75rem 1rem;
  color: var(--text);
  vertical-align: middle;
}

tbody tr:last-child { border-bottom: none; }

/* --- Badges -------------------------------------------- */
.badge {
  display: inline-flex;
  align-items: center;
  gap: .3rem;
  padding: .25rem .65rem;
  border-radius: 99px;
  font-size: .72rem;
  font-weight: 600;
  letter-spacing: .3px;
  white-space: nowrap;
}

.badge::before { content: '●'; font-size: .55rem; }

.badge-pendente   { background: rgba(243,156,18,.15);  color: var(--warning); }
.badge-confirmado { background: rgba(52,152,219,.15);  color: var(--info); }
.badge-em_atendimento { background: rgba(155,89,182,.15); color: #b359b6; }
.badge-concluido  { background: rgba(46,204,113,.15);  color: var(--success); }
.badge-recusado   { background: rgba(231,76,60,.15);   color: var(--danger); }
.badge-cancelado  { background: rgba(153,153,153,.15); color: var(--text-muted); }
.badge-gold       { background: rgba(212,168,67,.15);  color: var(--gold); }
.badge-gerente    { background: rgba(212,168,67,.15);  color: var(--gold); }
.badge-barbeiro   { background: rgba(46,204,113,.15);  color: var(--success); }
.badge-cliente    { background: rgba(52,152,219,.15);  color: var(--info); }

/* --- Buttons ------------------------------------------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: .4rem;
  padding: .5rem 1.1rem;
  border-radius: 8px;
  font-size: .85rem;
  font-weight: 600;
  border: none;
  cursor: pointer;
  transition: all var(--transition);
  text-decoration: none;
  white-space: nowrap;
}

.btn:disabled { opacity: .5; pointer-events: none; }

.btn-primary {
  background: var(--gold);
  color: var(--black);
}
.btn-primary:hover { background: var(--gold-light); color: var(--black); }

.btn-outline {
  background: transparent;
  border: 1px solid var(--border-light);
  color: var(--text-muted);
}
.btn-outline:hover { border-color: var(--gold); color: var(--gold); background: var(--gold-faint); }

.btn-success { background: rgba(46,204,113,.15); color: var(--success); border: 1px solid rgba(46,204,113,.3); }
.btn-success:hover { background: var(--success); color: #fff; }

.btn-danger  { background: rgba(231,76,60,.12); color: var(--danger); border: 1px solid rgba(231,76,60,.3); }
.btn-danger:hover  { background: var(--danger); color: #fff; }

.btn-info    { background: rgba(52,152,219,.12); color: var(--info); border: 1px solid rgba(52,152,219,.3); }
.btn-info:hover    { background: var(--info); color: #fff; }

.btn-sm { padding: .3rem .75rem; font-size: .78rem; }
.btn-lg { padding: .75rem 1.5rem; font-size: 1rem; }
.btn-full { width: 100%; justify-content: center; }

/* --- Forms --------------------------------------------- */
.form-group { margin-bottom: 1.25rem; }

label {
  display: block;
  font-size: .8rem;
  font-weight: 600;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: .5px;
  margin-bottom: .45rem;
}

input[type="text"],
input[type="email"],
input[type="password"],
input[type="date"],
input[type="time"],
input[type="number"],
input[type="tel"],
select,
textarea {
  width: 100%;
  background: var(--darker);
  border: 1px solid var(--border);
  border-radius: 8px;
  color: var(--text);
  padding: .65rem 1rem;
  font-size: .9rem;
  font-family: inherit;
  transition: border-color var(--transition), box-shadow var(--transition);
  outline: none;
}

input:focus, select:focus, textarea:focus {
  border-color: var(--gold);
  box-shadow: 0 0 0 3px rgba(212,168,67,.12);
}

select option { background: var(--darker); }
textarea { resize: vertical; min-height: 80px; }

.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
@media (max-width: 500px) { .form-row { grid-template-columns: 1fr; } }

.form-hint { font-size: .75rem; color: var(--text-muted); margin-top: .3rem; }
.form-error { font-size: .78rem; color: var(--danger); margin-top: .3rem; }

/* --- Modals -------------------------------------------- */
.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,.75);
  backdrop-filter: blur(4px);
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1rem;
  opacity: 0;
  visibility: hidden;
  transition: opacity var(--transition), visibility var(--transition);
}

.modal-overlay.open { opacity: 1; visibility: visible; }

.modal {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 2rem;
  width: 100%;
  max-width: 480px;
  box-shadow: var(--shadow);
  transform: scale(.95) translateY(10px);
  transition: transform .3s ease;
}

.modal-overlay.open .modal { transform: scale(1) translateY(0); }

.modal-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  margin-bottom: 1.25rem;
}

.modal-title { font-size: 1.15rem; font-weight: 700; }

.modal-close {
  background: none;
  border: none;
  color: var(--text-muted);
  font-size: 1.4rem;
  cursor: pointer;
  padding: 0 .2rem;
  line-height: 1;
  transition: color var(--transition);
}
.modal-close:hover { color: var(--text); }

.modal-body { margin-bottom: 1.5rem; }

.modal-footer {
  display: flex;
  gap: .75rem;
  justify-content: flex-end;
}

/* --- Status Modal (agendamento pendente) --------------- */
.status-display {
  text-align: center;
  padding: 1.5rem;
}

.status-icon-big {
  font-size: 3.5rem;
  margin-bottom: 1rem;
  display: block;
}

.status-title { font-size: 1.2rem; font-weight: 700; margin-bottom: .5rem; }
.status-desc  { font-size: .875rem; color: var(--text-muted); line-height: 1.5; }

.spinner {
  width: 28px; height: 28px;
  border: 3px solid var(--border);
  border-top-color: var(--gold);
  border-radius: 50%;
  animation: spin .8s linear infinite;
  display: inline-block;
  vertical-align: middle;
  margin-right: .5rem;
}

@keyframes spin { to { transform: rotate(360deg); } }

/* --- Agenda Cards (Barbeiro) --------------------------- */
.agenda-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 1rem;
}

.appt-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.25rem;
  position: relative;
  transition: all var(--transition);
}

.appt-card:hover { border-color: var(--gold-dark); }

.appt-card.pendente  { border-left: 3px solid var(--warning); }
.appt-card.confirmado { border-left: 3px solid var(--info); }
.appt-card.concluido  { border-left: 3px solid var(--success); opacity: .7; }
.appt-card.recusado   { border-left: 3px solid var(--danger); opacity: .6; }

.appt-time {
  font-size: 1.3rem;
  font-weight: 700;
  color: var(--gold);
  margin-bottom: .25rem;
}

.appt-client { font-size: .95rem; font-weight: 600; margin-bottom: .1rem; }
.appt-service { font-size: .8rem; color: var(--text-muted); margin-bottom: .75rem; }

.appt-price {
  font-size: 1rem;
  font-weight: 700;
  color: var(--success);
  margin-bottom: .75rem;
}

.appt-actions { display: flex; gap: .5rem; flex-wrap: wrap; }

/* --- Booking Steps -------------------------------------- */
.booking-steps {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0;
  margin-bottom: 2rem;
}

.step {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: .3rem;
  flex: 1;
  max-width: 140px;
}

.step-num {
  width: 34px; height: 34px;
  border-radius: 50%;
  background: var(--border);
  color: var(--text-muted);
  display: flex; align-items: center; justify-content: center;
  font-size: .85rem;
  font-weight: 700;
  transition: all var(--transition);
}

.step.active .step-num { background: var(--gold); color: var(--black); }
.step.done   .step-num { background: var(--success); color: #fff; }

.step-label { font-size: .72rem; color: var(--text-muted); text-align: center; }
.step.active .step-label { color: var(--gold); }

.step-line {
  flex: 1;
  height: 2px;
  background: var(--border);
  margin-bottom: 1.2rem;
  max-width: 60px;
}

.step-line.done { background: var(--gold); }

/* Time slots grid */
.time-slots {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(80px, 1fr));
  gap: .5rem;
  margin-top: .5rem;
}

.time-slot {
  padding: .5rem;
  background: var(--darker);
  border: 1px solid var(--border);
  border-radius: 7px;
  text-align: center;
  font-size: .82rem;
  font-weight: 500;
  cursor: pointer;
  transition: all var(--transition);
}

.time-slot:hover { border-color: var(--gold); color: var(--gold); background: var(--gold-faint); }
.time-slot.selected { background: var(--gold); color: var(--black); border-color: var(--gold); }
.time-slot.occupied { opacity: .4; cursor: not-allowed; pointer-events: none; }

/* --- Rating Stars -------------------------------------- */
.stars { color: var(--gold); letter-spacing: 2px; font-size: 1rem; }

/* --- Section headers ----------------------------------- */
.section-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 1.25rem;
}

.section-title {
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--text);
}

/* --- Empty state --------------------------------------- */
.empty-state {
  text-align: center;
  padding: 3rem 1rem;
  color: var(--text-muted);
}

.empty-state .empty-icon { font-size: 3rem; margin-bottom: 1rem; opacity: .5; }
.empty-state p { font-size: .9rem; }

/* --- Alerts -------------------------------------------- */
.alert {
  padding: .8rem 1.1rem;
  border-radius: 8px;
  font-size: .875rem;
  margin-bottom: 1rem;
  display: flex;
  align-items: center;
  gap: .6rem;
}

.alert-success { background: rgba(46,204,113,.12); border: 1px solid rgba(46,204,113,.25); color: var(--success); }
.alert-danger  { background: rgba(231,76,60,.12);  border: 1px solid rgba(231,76,60,.25);  color: var(--danger); }
.alert-warning { background: rgba(243,156,18,.12); border: 1px solid rgba(243,156,18,.25); color: var(--warning); }
.alert-info    { background: rgba(52,152,219,.12); border: 1px solid rgba(52,152,219,.25); color: var(--info); }

/* --- Profile Card -------------------------------------- */
.profile-header {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  margin-bottom: 1.5rem;
  padding-bottom: 1.5rem;
  border-bottom: 1px solid var(--border);
}

.profile-avatar {
  width: 80px; height: 80px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--gold-dark), var(--gold));
  display: flex; align-items: center; justify-content: center;
  font-size: 2rem;
  font-weight: 700;
  color: var(--black);
  flex-shrink: 0;
  border: 3px solid var(--gold-dark);
}

.profile-info h2 { font-size: 1.4rem; font-weight: 700; margin-bottom: .25rem; }
.profile-info p  { font-size: .85rem; color: var(--text-muted); }

/* --- Filters bar --------------------------------------- */
.filters {
  display: flex;
  gap: .75rem;
  flex-wrap: wrap;
  margin-bottom: 1.25rem;
  align-items: flex-end;
}

.filters select,
.filters input[type="date"] {
  width: auto;
  min-width: 150px;
}

/* --- Barbeiro team card -------------------------------- */
.team-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 1rem;
}

.team-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.5rem;
  transition: all var(--transition);
}

.team-card:hover { border-color: var(--gold-dark); transform: translateY(-2px); }

.team-card-header {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-bottom: 1.25rem;
}

.team-avatar {
  width: 52px; height: 52px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--gold-dark), var(--gold));
  display: flex; align-items: center; justify-content: center;
  font-size: 1.3rem;
  font-weight: 700;
  color: var(--black);
  flex-shrink: 0;
}

.team-stats {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: .75rem;
}

.team-stat {
  background: var(--darker);
  border-radius: 8px;
  padding: .75rem;
  text-align: center;
}

.team-stat-value { font-size: 1.3rem; font-weight: 700; color: var(--gold); }
.team-stat-label { font-size: .7rem; color: var(--text-muted); }

/* --- Hamburger (mobile) -------------------------------- */
.hamburger {
  display: none;
  flex-direction: column;
  gap: 4px;
  cursor: pointer;
  padding: .4rem;
  background: none;
  border: none;
}

.hamburger span {
  width: 22px;
  height: 2px;
  background: var(--text);
  border-radius: 2px;
  transition: all var(--transition);
}

/* =========================================================
   Login Page
   ========================================================= */
.login-page {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--black);
  padding: 1rem;
}

.login-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 2.5rem;
  width: 100%;
  max-width: 420px;
  box-shadow: var(--shadow);
}

.login-logo {
  text-align: center;
  margin-bottom: 2rem;
}

.login-logo .logo-circle {
  width: 70px; height: 70px;
  background: linear-gradient(135deg, var(--gold-dark), var(--gold));
  border-radius: 20px;
  display: flex; align-items: center; justify-content: center;
  font-size: 2rem;
  margin: 0 auto .75rem;
  box-shadow: 0 8px 24px rgba(212,168,67,.3);
}

.login-logo h1 { font-size: 1.8rem; font-weight: 700; color: var(--text); }
.login-logo p  { font-size: .875rem; color: var(--text-muted); margin-top: .2rem; }

.divider {
  height: 1px;
  background: var(--border);
  margin: 1.5rem 0;
}

.test-accounts {
  background: var(--darker);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 1rem;
  margin-top: 1.25rem;
}

.test-accounts h4 {
  font-size: .75rem;
  text-transform: uppercase;
  letter-spacing: .5px;
  color: var(--text-muted);
  margin-bottom: .75rem;
}

.test-account {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: .4rem .5rem;
  border-radius: 6px;
  cursor: pointer;
  transition: background var(--transition);
  margin-bottom: .2rem;
}

.test-account:last-child { margin-bottom: 0; }

.test-account:hover { background: var(--card); }

.test-account .ta-label { font-size: .8rem; color: var(--text); }
.test-account .ta-email { font-size: .75rem; color: var(--text-muted); }

/* =========================================================
   Responsive
   ========================================================= */
@media (max-width: 768px) {
  .sidebar {
    transform: translateX(-100%);
  }

  .sidebar.open {
    transform: translateX(0);
    box-shadow: 4px 0 24px rgba(0,0,0,.7);
  }

  .main-content {
    margin-left: 0;
  }

  .hamburger { display: flex; }

  .page-body { padding: 1rem; }

  .stats-grid { grid-template-columns: 1fr 1fr; }

  .form-row { grid-template-columns: 1fr; }

  .topbar { padding: .85rem 1rem; }

  .sidebar-overlay {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,.6);
    z-index: 99;
  }

  .sidebar-overlay.open { display: block; }
}

@media (max-width: 480px) {
  .stats-grid { grid-template-columns: 1fr; }
  .login-card { padding: 1.5rem; }
  .agenda-grid { grid-template-columns: 1fr; }
}
