/* ======================================================
   AGENDAMENTO ONLINE — style.css
   Mobile-first | Poppins | Tema claro
====================================================== */

:root {
  --primary: #1a1a2e;
  --accent: #e94560;
  --accent-light: rgba(233, 69, 96, 0.1);
  --accent-dark: #c73652;
  --bg: #f8f9fb;
  --surface: #ffffff;
  --surface2: #f1f3f8;
  --border: #e8eaf0;
  --text: #1a1a2e;
  --text-secondary: #6b7280;
  --text-muted: #9ca3af;
  --success: #10b981;
  --success-light: rgba(16, 185, 129, 0.1);
  --warning: #f59e0b;
  --danger: #ef4444;
  --danger-light: rgba(239, 68, 68, 0.1);
  --radius: 16px;
  --radius-sm: 10px;
  --radius-xs: 6px;
  --shadow: 0 2px 16px rgba(26, 26, 46, 0.08);
  --shadow-md: 0 4px 24px rgba(26, 26, 46, 0.12);
  --shadow-lg: 0 8px 40px rgba(26, 26, 46, 0.16);
  --transition: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  --font: 'Poppins', sans-serif;
  --max-width: 480px;
}

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

html {
  font-size: 16px;
  scroll-behavior: smooth;
  -webkit-tap-highlight-color: transparent;
}

body {
  font-family: var(--font);
  background: var(--bg);
  color: var(--text);
  min-height: 100vh;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

img { display: block; max-width: 100%; }
a { text-decoration: none; color: inherit; }
button { cursor: pointer; font-family: var(--font); border: none; background: none; }
input, textarea { font-family: var(--font); }

/* ======================================================
   LAYOUT WRAPPER
====================================================== */
#app-client, #app-admin {
  max-width: var(--max-width);
  margin: 0 auto;
  min-height: 100vh;
  position: relative;
}

/* ======================================================
   PROGRESS BAR
====================================================== */
.progress-bar-container {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--surface);
  padding: 12px 20px 10px;
  border-bottom: 1px solid var(--border);
  box-shadow: 0 2px 8px rgba(26,26,46,0.06);
}

.progress-bar {
  height: 3px;
  background: var(--accent);
  border-radius: 99px;
  transition: width var(--transition);
  margin-bottom: 10px;
}

.progress-steps {
  display: flex;
  justify-content: space-between;
  align-items: center;
  position: relative;
  margin-bottom: 4px;
}

.progress-steps::before {
  content: '';
  position: absolute;
  top: 50%;
  left: 16px;
  right: 16px;
  height: 2px;
  background: var(--border);
  transform: translateY(-50%);
  z-index: 0;
}

.step-dot {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: var(--surface2);
  color: var(--text-muted);
  font-size: 12px;
  font-weight: 600;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  z-index: 1;
  transition: all var(--transition);
  border: 2px solid var(--border);
}

.step-dot.active {
  background: var(--accent);
  color: white;
  border-color: var(--accent);
  box-shadow: 0 0 0 4px var(--accent-light);
}

.step-dot.done {
  background: var(--success);
  color: white;
  border-color: var(--success);
}

.progress-labels {
  display: flex;
  justify-content: space-between;
  font-size: 10px;
  color: var(--text-muted);
  font-weight: 500;
}

/* ======================================================
   SCREENS (animação entre steps)
====================================================== */
.screen {
  display: none;
  opacity: 0;
  transform: translateX(24px);
  animation: none;
  padding-bottom: 100px;
}

.screen.active {
  display: block;
  animation: slideIn var(--transition) forwards;
}

.screen.slide-out {
  animation: slideOut var(--transition) forwards;
}

@keyframes slideIn {
  from { opacity: 0; transform: translateX(24px); }
  to   { opacity: 1; transform: translateX(0); }
}

@keyframes slideOut {
  from { opacity: 1; transform: translateX(0); }
  to   { opacity: 0; transform: translateX(-24px); }
}

/* ======================================================
   HERO (Home)
====================================================== */
.hero {
  position: relative;
  height: 60vh;
  min-height: 320px;
  max-height: 480px;
  overflow: hidden;
  background: var(--primary);
}

.hero-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.55;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to bottom, rgba(26,26,46,0.2) 0%, rgba(26,26,46,0.85) 100%);
}

.hero-content {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 28px 24px;
  color: white;
}

.hero-badge {
  display: inline-block;
  background: var(--accent);
  color: white;
  font-size: 11px;
  font-weight: 600;
  padding: 4px 12px;
  border-radius: 99px;
  margin-bottom: 10px;
  letter-spacing: 0.5px;
  text-transform: uppercase;
}

.hero-content h1 {
  font-size: 2rem;
  font-weight: 700;
  line-height: 1.15;
  margin-bottom: 6px;
  text-shadow: 0 2px 8px rgba(0,0,0,0.3);
}

.hero-content p {
  font-size: 1rem;
  opacity: 0.85;
  margin-bottom: 22px;
  font-weight: 300;
}

.btn-hero {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 1rem;
  padding: 14px 28px;
}

.home-info {
  padding: 20px 16px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.info-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 14px 16px;
  display: flex;
  align-items: flex-start;
  gap: 14px;
  box-shadow: var(--shadow);
}

.info-card svg {
  flex-shrink: 0;
  color: var(--accent);
  margin-top: 2px;
}

.info-card strong {
  display: block;
  font-size: 13px;
  font-weight: 600;
  margin-bottom: 2px;
}

.info-card span {
  font-size: 13px;
  color: var(--text-secondary);
  white-space: pre-line;
}

/* ======================================================
   STEP HEADER
====================================================== */
.step-header {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 20px 16px 16px;
}

.step-header h2 {
  font-size: 1.2rem;
  font-weight: 700;
}

.step-header p {
  font-size: 13px;
  color: var(--text-secondary);
  margin-top: 2px;
}

.btn-back {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--surface2);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  transition: background var(--transition);
  color: var(--text);
}

.btn-back:hover { background: var(--border); }

/* ======================================================
   CARDS (Serviços e Profissionais)
====================================================== */
.cards-grid {
  padding: 0 16px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.service-card {
  background: var(--surface);
  border: 2px solid var(--border);
  border-radius: var(--radius);
  padding: 18px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  cursor: pointer;
  transition: all var(--transition);
  box-shadow: var(--shadow);
}

.service-card:hover {
  border-color: var(--accent);
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

.service-card.selected {
  border-color: var(--accent);
  background: var(--accent-light);
}

.service-card-left {
  display: flex;
  align-items: center;
  gap: 14px;
}

.service-icon {
  width: 48px;
  height: 48px;
  border-radius: var(--radius-sm);
  background: var(--surface2);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 22px;
  flex-shrink: 0;
}

.service-name {
  font-size: 15px;
  font-weight: 600;
  margin-bottom: 3px;
}

.service-duration {
  font-size: 12px;
  color: var(--text-secondary);
  display: flex;
  align-items: center;
  gap: 4px;
}

.service-price {
  font-size: 16px;
  font-weight: 700;
  color: var(--accent);
}

/* Profissionais */
.professionals-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

.professional-card {
  background: var(--surface);
  border: 2px solid var(--border);
  border-radius: var(--radius);
  padding: 18px 14px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  cursor: pointer;
  transition: all var(--transition);
  box-shadow: var(--shadow);
  text-align: center;
}

.professional-card:hover {
  border-color: var(--accent);
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

.professional-card.selected {
  border-color: var(--accent);
  background: var(--accent-light);
}

.professional-avatar {
  width: 72px;
  height: 72px;
  border-radius: 50%;
  object-fit: cover;
  border: 3px solid var(--border);
  transition: border-color var(--transition);
}

.professional-card.selected .professional-avatar {
  border-color: var(--accent);
}

.professional-avatar-placeholder {
  width: 72px;
  height: 72px;
  border-radius: 50%;
  background: var(--surface2);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 26px;
  font-weight: 700;
  color: var(--accent);
  border: 3px solid var(--border);
  transition: border-color var(--transition);
  flex-shrink: 0;
}

.professional-card.selected .professional-avatar-placeholder {
  border-color: var(--accent);
}

.professional-name {
  font-size: 14px;
  font-weight: 600;
}

.professional-specialty {
  font-size: 12px;
  color: var(--text-secondary);
}

/* ======================================================
   CALENDÁRIO
====================================================== */
.calendar-container {
  margin: 0 16px 16px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 16px;
  box-shadow: var(--shadow);
}

.calendar-nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 14px;
}

.calendar-nav span {
  font-size: 15px;
  font-weight: 600;
  text-transform: capitalize;
}

.btn-cal-nav {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: var(--surface2);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background var(--transition);
  color: var(--text);
}

.btn-cal-nav:hover { background: var(--border); }

.calendar-weekdays {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 4px;
  margin-bottom: 6px;
}

.calendar-weekdays span {
  text-align: center;
  font-size: 11px;
  font-weight: 600;
  color: var(--text-muted);
  padding: 4px 0;
}

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

.cal-day {
  aspect-ratio: 1;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 13px;
  font-weight: 500;
  cursor: pointer;
  transition: all var(--transition);
  position: relative;
  border: 2px solid transparent;
}

.cal-day:hover:not(.disabled):not(.empty) {
  background: var(--accent-light);
  color: var(--accent);
}

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

.cal-day.selected {
  background: var(--accent);
  color: white !important;
  border-color: var(--accent);
  box-shadow: 0 4px 12px rgba(233, 69, 96, 0.4);
}

.cal-day.disabled {
  color: var(--text-muted);
  cursor: default;
  opacity: 0.4;
}

.cal-day.empty { cursor: default; }

/* ======================================================
   HORÁRIOS
====================================================== */
.time-slots-container {
  margin: 0 16px 16px;
  animation: fadeIn 0.3s ease;
}

.slots-title {
  font-size: 14px;
  font-weight: 600;
  margin-bottom: 12px;
  color: var(--text-secondary);
}

.time-slots {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
}

.time-slot {
  background: var(--surface);
  border: 2px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 12px 8px;
  text-align: center;
  cursor: pointer;
  font-size: 14px;
  font-weight: 600;
  transition: all var(--transition);
  box-shadow: var(--shadow);
}

.time-slot:hover:not(.occupied) {
  border-color: var(--accent);
  color: var(--accent);
  transform: translateY(-2px);
}

.time-slot.selected {
  background: var(--accent);
  border-color: var(--accent);
  color: white;
  box-shadow: 0 4px 12px rgba(233, 69, 96, 0.35);
}

.time-slot.occupied {
  background: var(--surface2);
  color: var(--text-muted);
  cursor: not-allowed;
  text-decoration: line-through;
  opacity: 0.5;
}

.no-slots {
  grid-column: 1/-1;
  text-align: center;
  padding: 24px;
  color: var(--text-muted);
  font-size: 14px;
}

/* ======================================================
   FORMULÁRIO
====================================================== */
.booking-summary-compact {
  margin: 0 16px 16px;
  background: var(--accent-light);
  border: 1px solid rgba(233, 69, 96, 0.2);
  border-radius: var(--radius-sm);
  padding: 14px 16px;
  font-size: 13px;
}

.booking-summary-compact .summary-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 3px 0;
}

.booking-summary-compact .summary-label {
  color: var(--text-secondary);
}

.booking-summary-compact .summary-value {
  font-weight: 600;
  text-align: right;
}

.booking-form {
  padding: 0 16px;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.form-group label {
  font-size: 13px;
  font-weight: 600;
  color: var(--text);
}

.form-group input,
.form-group textarea {
  width: 100%;
  padding: 13px 14px;
  border: 2px solid var(--border);
  border-radius: var(--radius-sm);
  font-size: 15px;
  background: var(--surface);
  color: var(--text);
  transition: border-color var(--transition);
  outline: none;
  resize: none;
}

.form-group input:focus,
.form-group textarea:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px var(--accent-light);
}

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

/* ======================================================
   CONFIRMAÇÃO
====================================================== */
.confirmation-container {
  padding: 32px 20px 24px;
  text-align: center;
  animation: fadeIn 0.5s ease;
}

.confirmation-icon {
  width: 80px;
  height: 80px;
  background: var(--success-light);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 20px;
  color: var(--success);
  animation: popIn 0.5s cubic-bezier(0.34, 1.56, 0.64, 1);
}

@keyframes popIn {
  from { transform: scale(0); opacity: 0; }
  to   { transform: scale(1); opacity: 1; }
}

.confirmation-container h2 {
  font-size: 1.4rem;
  font-weight: 700;
  margin-bottom: 6px;
}

.confirmation-subtitle {
  color: var(--text-secondary);
  font-size: 15px;
  margin-bottom: 24px;
}

.confirmation-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 18px;
  text-align: left;
  margin-bottom: 24px;
  box-shadow: var(--shadow);
}

.conf-row {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 8px 0;
  border-bottom: 1px solid var(--border);
}

.conf-row:last-child { border-bottom: none; }

.conf-row svg { flex-shrink: 0; color: var(--accent); margin-top: 2px; }

.conf-row-content strong {
  display: block;
  font-size: 13px;
  font-weight: 600;
  margin-bottom: 1px;
}

.conf-row-content span {
  font-size: 13px;
  color: var(--text-secondary);
}

.confirmation-actions {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

/* ======================================================
   BOTÕES
====================================================== */
.btn-primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  background: var(--accent);
  color: white;
  font-size: 15px;
  font-weight: 600;
  padding: 14px 24px;
  border-radius: var(--radius-sm);
  transition: all var(--transition);
  box-shadow: 0 4px 14px rgba(233, 69, 96, 0.35);
  border: none;
}

.btn-primary:hover {
  background: var(--accent-dark);
  transform: translateY(-1px);
  box-shadow: 0 6px 20px rgba(233, 69, 96, 0.45);
}

.btn-primary:active { transform: scale(0.98); }

.btn-secondary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  background: var(--primary);
  color: white;
  font-size: 14px;
  font-weight: 600;
  padding: 13px 20px;
  border-radius: var(--radius-sm);
  transition: all var(--transition);
  border: none;
  font-family: var(--font);
  cursor: pointer;
  width: 100%;
}

.btn-secondary:hover { opacity: 0.9; }

.btn-outline {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  background: transparent;
  color: var(--primary);
  font-size: 14px;
  font-weight: 600;
  padding: 13px 20px;
  border-radius: var(--radius-sm);
  border: 2px solid var(--border);
  transition: all var(--transition);
  font-family: var(--font);
  cursor: pointer;
  width: 100%;
}

.btn-outline:hover { border-color: var(--primary); background: var(--surface2); }

.btn-ghost {
  background: none;
  color: var(--text-secondary);
  font-size: 14px;
  font-weight: 500;
  padding: 12px;
  font-family: var(--font);
  transition: color var(--transition);
  cursor: pointer;
}

.btn-ghost:hover { color: var(--accent); }

.btn-full { width: 100%; }

/* ======================================================
   RODAPÉ
====================================================== */
.app-footer {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 16px 20px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-top: 1px solid var(--border);
  background: var(--bg);
}

.demo-notice {
  font-size: 11px;
  color: var(--text-muted);
  display: flex;
  align-items: center;
  gap: 5px;
}

.btn-admin-access {
  font-size: 11px;
  color: var(--text-muted);
  font-family: var(--font);
  padding: 4px 8px;
  border-radius: 4px;
  cursor: pointer;
  transition: all var(--transition);
  border: 1px solid transparent;
}

.btn-admin-access:hover {
  color: var(--text-secondary);
  border-color: var(--border);
}

/* ======================================================
   MODAIS
====================================================== */
.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(26, 26, 46, 0.6);
  z-index: 1000;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  animation: fadeIn 0.2s ease;
  backdrop-filter: blur(4px);
}

.modal {
  background: var(--surface);
  border-radius: var(--radius) var(--radius) 0 0;
  padding: 28px 24px 32px;
  width: 100%;
  max-width: var(--max-width);
  position: relative;
  animation: slideUp 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  max-height: 90vh;
  overflow-y: auto;
}

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

.modal-close {
  position: absolute;
  top: 16px;
  right: 16px;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: var(--surface2);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-secondary);
  transition: background var(--transition);
}

.modal-close:hover { background: var(--border); }

.modal h3 {
  font-size: 1.1rem;
  font-weight: 700;
  margin-bottom: 6px;
}

.modal > p {
  font-size: 14px;
  color: var(--text-secondary);
  margin-bottom: 20px;
}

.admin-error {
  font-size: 13px;
  color: var(--danger);
  margin-bottom: 12px;
  font-weight: 500;
}

.modal-actions {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-top: 20px;
}

.modal-detail-row {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  padding: 10px 0;
  border-bottom: 1px solid var(--border);
  font-size: 14px;
}

.modal-detail-row:last-child { border-bottom: none; }

.modal-detail-label {
  color: var(--text-muted);
  min-width: 90px;
  font-weight: 500;
  font-size: 13px;
}

.modal-detail-value { font-weight: 600; }

/* ======================================================
   ADMIN PANEL
====================================================== */
#app-admin {
  padding-bottom: 40px;
}

.admin-header {
  background: var(--primary);
  color: white;
  padding: 24px 20px 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  position: sticky;
  top: 0;
  z-index: 50;
}

.admin-header h1 {
  font-size: 1.2rem;
  font-weight: 700;
}

.admin-header p {
  font-size: 12px;
  opacity: 0.7;
  margin-top: 2px;
}

.btn-admin-logout {
  display: flex;
  align-items: center;
  gap: 6px;
  background: rgba(255,255,255,0.12);
  color: white;
  font-size: 13px;
  font-weight: 500;
  font-family: var(--font);
  padding: 8px 14px;
  border-radius: var(--radius-xs);
  cursor: pointer;
  transition: background var(--transition);
}

.btn-admin-logout:hover { background: rgba(255,255,255,0.2); }

.admin-tabs {
  display: flex;
  padding: 16px 16px 0;
  gap: 4px;
  border-bottom: 1px solid var(--border);
  background: var(--surface);
  position: sticky;
  top: 76px;
  z-index: 40;
}

.admin-tab {
  flex: 1;
  padding: 10px 8px;
  font-size: 13px;
  font-weight: 600;
  font-family: var(--font);
  color: var(--text-muted);
  border-bottom: 3px solid transparent;
  transition: all var(--transition);
  cursor: pointer;
}

.admin-tab.active {
  color: var(--accent);
  border-bottom-color: var(--accent);
}

.admin-stats {
  padding: 16px;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
}

.stat-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 14px 12px;
  text-align: center;
  box-shadow: var(--shadow);
}

.stat-number {
  font-size: 1.6rem;
  font-weight: 700;
  display: block;
}

.stat-number.accent { color: var(--accent); }
.stat-number.success { color: var(--success); }
.stat-number.warning { color: var(--warning); }

.stat-label {
  font-size: 11px;
  color: var(--text-muted);
  font-weight: 500;
  margin-top: 2px;
  display: block;
}

.admin-list {
  padding: 0 16px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.admin-empty {
  text-align: center;
  padding: 48px 20px;
  color: var(--text-muted);
  font-size: 14px;
}

.admin-empty svg {
  margin: 0 auto 12px;
  opacity: 0.3;
}

.booking-item {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 16px;
  box-shadow: var(--shadow);
  cursor: pointer;
  transition: all var(--transition);
  border-left: 4px solid var(--border);
}

.booking-item:hover {
  box-shadow: var(--shadow-md);
  transform: translateY(-1px);
}

.booking-item.status-pending  { border-left-color: var(--warning); }
.booking-item.status-confirmed { border-left-color: var(--success); }
.booking-item.status-cancelled { border-left-color: var(--danger); opacity: 0.65; }

.booking-item-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 8px;
}

.booking-item-time {
  font-size: 15px;
  font-weight: 700;
}

.booking-item-date {
  font-size: 12px;
  color: var(--text-muted);
  font-weight: 400;
  margin-left: 6px;
}

.booking-status-badge {
  font-size: 11px;
  font-weight: 600;
  padding: 3px 10px;
  border-radius: 99px;
  text-transform: uppercase;
  letter-spacing: 0.4px;
}

.badge-pending   { background: rgba(245, 158, 11, 0.12); color: var(--warning); }
.badge-confirmed { background: var(--success-light); color: var(--success); }
.badge-cancelled { background: var(--danger-light); color: var(--danger); }

.booking-item-client {
  font-size: 14px;
  font-weight: 600;
  margin-bottom: 4px;
}

.booking-item-details {
  font-size: 12px;
  color: var(--text-secondary);
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.booking-item-details span { display: flex; align-items: center; gap: 3px; }

.admin-action-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 13px 16px;
  border-radius: var(--radius-sm);
  font-size: 14px;
  font-weight: 600;
  font-family: var(--font);
  cursor: pointer;
  transition: all var(--transition);
  border: none;
  width: 100%;
}

.btn-confirm-booking {
  background: var(--success-light);
  color: var(--success);
  border: 1px solid rgba(16, 185, 129, 0.3);
}
.btn-confirm-booking:hover { background: var(--success); color: white; }

.btn-cancel-booking {
  background: var(--danger-light);
  color: var(--danger);
  border: 1px solid rgba(239, 68, 68, 0.3);
}
.btn-cancel-booking:hover { background: var(--danger); color: white; }

.btn-whatsapp {
  background: #25D366;
  color: white;
  border: none;
}
.btn-whatsapp:hover { background: #1da851; }

.admin-section-title {
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.8px;
  color: var(--text-muted);
  padding: 6px 0 8px;
}

/* ======================================================
   UTILITÁRIOS
====================================================== */
@keyframes fadeIn {
  from { opacity: 0; }
  to   { opacity: 1; }
}

.hidden { display: none !important; }

/* ======================================================
   RESPONSIVO — telas maiores
====================================================== */
@media (min-width: 480px) {
  .hero { max-height: 520px; }
  .hero-content h1 { font-size: 2.4rem; }
  .time-slots { grid-template-columns: repeat(4, 1fr); }
}

@media (min-width: 768px) {
  #app-client, #app-admin, #app-professional, .app-footer {
    border-left: 1px solid var(--border);
    border-right: 1px solid var(--border);
  }
  body { background: var(--surface2); }
}

/* ======================================================
   NOVOS ESTILOS — Admin expandido, Profissional, Config
====================================================== */

/* Rodapé — dois botões */
.footer-access-btns { display: flex; gap: 6px; }

/* Admin Main Tabs */
.admin-main-tabs {
  display: flex;
  background: var(--surface);
  border-bottom: 1px solid var(--border);
  position: sticky;
  top: 64px;
  z-index: 40;
  overflow-x: auto;
  scrollbar-width: none;
}
.admin-main-tabs::-webkit-scrollbar { display: none; }

.admin-main-tab {
  flex: 1;
  min-width: 72px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  padding: 10px 8px;
  font-size: 11px;
  font-weight: 600;
  font-family: var(--font);
  color: var(--text-muted);
  border-bottom: 3px solid transparent;
  transition: all var(--transition);
  cursor: pointer;
  white-space: nowrap;
}
.admin-main-tab svg { opacity: 0.5; transition: opacity var(--transition); }
.admin-main-tab.active { color: var(--accent); border-bottom-color: var(--accent); }
.admin-main-tab.active svg { opacity: 1; }

/* Admin sub-tabs (Agenda: Hoje/Semana/Todos) */
.admin-sub-tabs {
  display: flex;
  padding: 12px 16px 0;
  gap: 4px;
  border-bottom: 1px solid var(--border);
  background: var(--surface);
}
.btn-export-tab {
  margin-left: auto;
  display: flex;
  align-items: center;
  gap: 4px;
  font-size: 12px;
  color: var(--text-muted);
}
.btn-export-tab:hover { color: var(--accent); }

/* Admin panel header (Ausências, Equipe) */
.admin-panel-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 16px 8px;
}
.admin-panel-count {
  font-size: 13px;
  color: var(--text-secondary);
  font-weight: 500;
}
.btn-add-item {
  display: flex;
  align-items: center;
  gap: 6px;
  background: var(--accent);
  color: white;
  font-size: 13px;
  font-weight: 600;
  font-family: var(--font);
  padding: 8px 14px;
  border-radius: var(--radius-sm);
  cursor: pointer;
  transition: background var(--transition);
  border: none;
}
.btn-add-item:hover { background: var(--accent-dark); }

/* ====== Toggle Switch ====== */
.toggle-label-wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  cursor: pointer;
  font-size: 14px;
  font-weight: 500;
}
.toggle-switch {
  position: relative;
  display: inline-block;
  width: 44px;
  height: 24px;
  flex-shrink: 0;
}
.toggle-switch input { opacity: 0; width: 0; height: 0; }
.toggle-slider {
  position: absolute;
  inset: 0;
  background: var(--border);
  border-radius: 99px;
  transition: background var(--transition);
  cursor: pointer;
}
.toggle-slider::before {
  content: '';
  position: absolute;
  width: 18px;
  height: 18px;
  left: 3px;
  top: 3px;
  background: white;
  border-radius: 50%;
  transition: transform var(--transition);
  box-shadow: 0 1px 4px rgba(0,0,0,0.15);
}
.toggle-switch input:checked + .toggle-slider { background: var(--accent); }
.toggle-switch input:checked + .toggle-slider::before { transform: translateX(20px); }

/* ====== Day Picker ====== */
.day-picker {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
  margin-top: 4px;
}
.day-btn {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  font-size: 11px;
  font-weight: 600;
  font-family: var(--font);
  background: var(--surface2);
  color: var(--text-muted);
  border: 2px solid var(--border);
  cursor: pointer;
  transition: all var(--transition);
}
.day-btn.active {
  background: var(--accent-light);
  color: var(--accent);
  border-color: var(--accent);
}
.day-btn:hover:not(.active) {
  border-color: var(--accent);
  color: var(--accent);
}

/* ====== Form Row (2 columns) ====== */
.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

/* ====== Form extras ====== */
.form-select {
  width: 100%;
  padding: 12px 14px;
  border: 2px solid var(--border);
  border-radius: var(--radius-sm);
  font-size: 14px;
  font-family: var(--font);
  background: var(--surface);
  color: var(--text);
  outline: none;
  transition: border-color var(--transition);
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%236b7280' stroke-width='2'%3E%3Cpolyline points='6 9 12 15 18 9'%3E%3C/polyline%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 14px center;
  padding-right: 36px;
}
.form-select:focus { border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-light); }

.form-hint {
  font-size: 11px;
  color: var(--text-muted);
  margin-top: 4px;
  display: block;
  line-height: 1.4;
}
.form-error {
  font-size: 13px;
  color: var(--danger);
  font-weight: 500;
  margin-bottom: 12px;
}

/* ====== Radio Group ====== */
.radio-group { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 4px; }
.radio-option {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 14px;
  cursor: pointer;
  padding: 8px 14px;
  border: 2px solid var(--border);
  border-radius: var(--radius-sm);
  transition: all var(--transition);
  flex: 1;
  min-width: 120px;
}
.radio-option:has(input:checked) {
  border-color: var(--accent);
  background: var(--accent-light);
  color: var(--accent);
}
.radio-option input { accent-color: var(--accent); }

/* ====== Checkbox Group (Serviços por profissional) ====== */
.checkbox-group {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-top: 4px;
}
.checkbox-option {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 12px;
  border: 2px solid var(--border);
  border-radius: var(--radius-sm);
  font-size: 14px;
  cursor: pointer;
  transition: all var(--transition);
}
.checkbox-option:has(input:checked) {
  border-color: var(--accent);
  background: var(--accent-light);
}
.checkbox-option input { accent-color: var(--accent); width: 16px; height: 16px; }

/* ====== Ausência Item ====== */
.ausencia-item {
  background: var(--surface);
  border: 1px solid var(--border);
  border-left: 4px solid var(--warning);
  border-radius: var(--radius);
  padding: 14px 16px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  box-shadow: var(--shadow);
}
.ausencia-item.past { opacity: 0.5; border-left-color: var(--text-muted); }
.ausencia-info { flex: 1; min-width: 0; }
.ausencia-date { font-size: 14px; font-weight: 700; margin-bottom: 3px; }
.ausencia-detail { font-size: 12px; color: var(--text-secondary); }
.ausencia-pro-tag {
  display: inline-block;
  background: var(--surface2);
  color: var(--text-secondary);
  font-size: 11px;
  font-weight: 600;
  padding: 2px 8px;
  border-radius: 99px;
  margin-top: 4px;
}
.btn-delete-item {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: var(--danger-light);
  color: var(--danger);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all var(--transition);
  border: none;
  flex-shrink: 0;
}
.btn-delete-item:hover { background: var(--danger); color: white; }

/* ====== Equipe Item ====== */
.equipe-item {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 16px;
  display: flex;
  align-items: center;
  gap: 14px;
  box-shadow: var(--shadow);
}
.equipe-item.inactive { opacity: 0.5; }
.equipe-avatar-sm {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: var(--accent-light);
  color: var(--accent);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 16px;
  flex-shrink: 0;
  overflow: hidden;
}
.equipe-avatar-sm img { width: 100%; height: 100%; object-fit: cover; }
.equipe-info { flex: 1; min-width: 0; }
.equipe-name { font-size: 14px; font-weight: 700; margin-bottom: 2px; }
.equipe-specialty { font-size: 12px; color: var(--text-secondary); margin-bottom: 4px; }
.equipe-tags { display: flex; gap: 4px; flex-wrap: wrap; }
.tag {
  font-size: 10px;
  font-weight: 600;
  padding: 2px 8px;
  border-radius: 99px;
  background: var(--surface2);
  color: var(--text-secondary);
}
.tag-active { background: var(--success-light); color: var(--success); }
.tag-inactive { background: var(--danger-light); color: var(--danger); }
.equipe-actions { display: flex; gap: 6px; }
.btn-edit-item {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: var(--surface2);
  color: var(--text-secondary);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all var(--transition);
  border: none;
}
.btn-edit-item:hover { background: var(--primary); color: white; }

/* ====== Config Sections ====== */
.config-sections { padding: 0 0 40px; }
.config-section {
  padding: 16px;
  border-bottom: 1px solid var(--border);
}
.config-section-title {
  font-size: 13px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: var(--text-secondary);
  margin-bottom: 14px;
  display: flex;
  align-items: center;
  gap: 8px;
}
.config-hint {
  font-size: 13px;
  color: var(--text-muted);
  margin-bottom: 12px;
  line-height: 1.5;
}

/* ====== Danger button ====== */
.btn-danger {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  background: var(--danger-light);
  color: var(--danger);
  border: 1px solid rgba(239,68,68,0.3);
  font-size: 14px;
  font-weight: 600;
  font-family: var(--font);
  padding: 13px 20px;
  border-radius: var(--radius-sm);
  cursor: pointer;
  transition: all var(--transition);
}
.btn-danger:hover { background: var(--danger); color: white; }

/* ====== Professional Panel ====== */
.pro-header { background: #1b3a4b; }

/* ====== Modal large ====== */
.modal-large { max-height: 92vh; }

/* ====== WhatsApp button (admin modal) ====== */
.btn-whatsapp-confirm {
  background: #25D366;
  color: white;
  border: none;
}
.btn-whatsapp-confirm:hover { background: #1da851; }

/* ====== Toast notification ====== */
.toast {
  position: fixed;
  bottom: 24px;
  left: 50%;
  transform: translateX(-50%) translateY(80px);
  background: var(--text);
  color: white;
  padding: 12px 20px;
  border-radius: var(--radius-sm);
  font-size: 14px;
  font-weight: 500;
  z-index: 9999;
  transition: transform 0.3s cubic-bezier(0.4,0,0.2,1);
  white-space: nowrap;
  max-width: calc(100vw - 32px);
  box-shadow: var(--shadow-lg);
}
.toast.show { transform: translateX(-50%) translateY(0); }
.toast.success { background: var(--success); }
.toast.error   { background: var(--danger); }

