/* IdeaTest Agenda — Estilos combinados (global + admin + booking) */
:root {
  --primary: #FF6600;
  --primary-hover: #e05800;
  --primary-light: rgba(255, 102, 0, 0.1);
  --bg-dark: #1a1a1a;
  --bg-card: #2a2a2a;
  --bg-surface: #333333;
  --text-primary: #ffffff;
  --text-secondary: #aaaaaa;
  --text-muted: #666666;
  --border: #3a3a3a;
  --success: #4CAF50;
  --warning: #FF9800;
  --danger: #f44336;
  --info: #2196F3;
  --radius: 12px;
  --radius-sm: 8px;
  --shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
}

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

body {
  font-family: 'Segoe UI', -apple-system, BlinkMacSystemFont, sans-serif;
  background: var(--bg-dark);
  color: var(--text-primary);
  line-height: 1.6;
  min-height: 100vh;
  -webkit-tap-highlight-color: transparent;
}

a { color: var(--primary); text-decoration: none; }
button { cursor: pointer; font-family: inherit; }
input, select, textarea { font-family: inherit; font-size: 1rem; }

/* Utility */
.container { max-width: 1200px; margin: 0 auto; padding: 0 20px; }
.text-center { text-align: center; }
.text-primary { color: var(--primary); }
.text-muted { color: var(--text-secondary); }
.mt-1 { margin-top: 8px; }
.mt-2 { margin-top: 16px; }
.mt-3 { margin-top: 24px; }
.mt-4 { margin-top: 32px; }
.mb-2 { margin-bottom: 16px; }
.mb-3 { margin-bottom: 24px; }

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 24px;
  border-radius: var(--radius-sm);
  font-weight: 600;
  font-size: 0.95rem;
  border: none;
  transition: all 0.2s ease;
}
.btn-primary { background: var(--primary); color: white; }
.btn-primary:hover { background: var(--primary-hover); transform: translateY(-1px); }
.btn-primary:disabled { opacity: 0.6; cursor: not-allowed; transform: none; }
.btn-secondary { background: var(--bg-surface); color: var(--text-primary); border: 1px solid var(--border); }
.btn-secondary:hover { border-color: var(--primary); }
.btn-danger { background: var(--danger); color: white; }
.btn-sm { padding: 8px 16px; font-size: 0.85rem; }
.btn-block { width: 100%; justify-content: center; }

/* Cards */
.card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 24px;
}

/* Form */
.form-group { margin-bottom: 16px; }
.form-group label { display: block; margin-bottom: 6px; font-size: 0.9rem; color: var(--text-secondary); }
.form-group input, .form-group select, .form-group textarea {
  width: 100%;
  padding: 12px 16px;
  background: var(--bg-surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  color: var(--text-primary);
  transition: border-color 0.2s;
}
.form-group input:focus, .form-group select:focus, .form-group textarea:focus { outline: none; border-color: var(--primary); }

/* Scrollbar */
::-webkit-scrollbar { width: 6px; }
::-webkit-scrollbar-track { background: var(--bg-dark); }
::-webkit-scrollbar-thumb { background: var(--border); border-radius: 3px; }
::-webkit-scrollbar-thumb:hover { background: var(--primary); }

/* ============================================================
   ADMIN LAYOUT
   ============================================================ */
.admin-layout { display: flex; min-height: 100vh; }

.admin-topbar {
  display: none;
  position: fixed; top: 0; left: 0; right: 0; height: 56px;
  background: var(--bg-card); border-bottom: 1px solid var(--border);
  padding: 0 16px; align-items: center; justify-content: space-between; z-index: 1000;
}
.admin-menu-btn { background: none; border: none; color: var(--text-primary); padding: 8px; }
.admin-topbar-title { font-weight: 700; color: var(--primary); font-size: 1.1rem; }
.admin-topbar-name { font-size: 0.85rem; color: var(--text-secondary); }

.admin-sidebar {
  width: 260px; min-height: 100vh; background: var(--bg-card);
  border-right: 1px solid var(--border); display: flex; flex-direction: column;
  position: fixed; top: 0; left: 0; bottom: 0; z-index: 999; transition: transform 0.3s ease;
}
.admin-sidebar-header { padding: 24px 20px 16px; border-bottom: 1px solid var(--border); }
.admin-sidebar-logo { display: flex; align-items: center; gap: 12px; }
.admin-logo-icon {
  width: 40px; height: 40px; background: var(--primary); border-radius: 10px;
  display: flex; align-items: center; justify-content: center; color: white; font-weight: 800; font-size: 1.2rem;
}
.admin-sidebar-brand { font-weight: 700; color: var(--primary); font-size: 1rem; }
.admin-sidebar-business { font-size: 0.8rem; color: var(--text-secondary); margin-top: 2px; }

.admin-sidebar-nav { flex: 1; padding: 16px 12px; display: flex; flex-direction: column; gap: 4px; }
.admin-nav-item {
  display: flex; align-items: center; gap: 12px; padding: 12px 16px; border-radius: var(--radius-sm);
  color: var(--text-secondary); font-size: 0.92rem; font-weight: 500; transition: all 0.2s ease;
  text-decoration: none; border: none; background: none; width: 100%; cursor: pointer; text-align: left;
}
.admin-nav-item:hover { background: var(--primary-light); color: var(--primary); }
.admin-nav-item.active { background: var(--primary-light); color: var(--primary); font-weight: 600; }

.admin-sidebar-footer { padding: 12px; border-top: 1px solid var(--border); }
.admin-public-link a { color: var(--text-secondary); text-decoration: none; font-size: 0.85rem; }
.admin-public-link a:hover { color: var(--primary); }
.admin-logout { color: var(--danger) !important; }
.admin-logout:hover { background: rgba(244, 67, 54, 0.1) !important; }

.admin-main { flex: 1; margin-left: 260px; min-height: 100vh; padding: 32px; }
.admin-overlay { display: none; position: fixed; inset: 0; background: rgba(0, 0, 0, 0.5); z-index: 998; }

@media (max-width: 768px) {
  .admin-topbar { display: flex; }
  .admin-sidebar { transform: translateX(-100%); }
  .admin-sidebar.open { transform: translateX(0); }
  .admin-main { margin-left: 0; padding: 72px 16px 32px; }
  .admin-overlay { display: block; }
}

/* ============================================================
   PUBLIC BOOKING PAGE
   ============================================================ */
.booking-page { min-height: 100vh; background: var(--bg-dark); display: flex; flex-direction: column; }
.booking-loading, .booking-error {
  display: flex; align-items: center; justify-content: center; min-height: 100vh;
  color: var(--text-secondary); font-size: 1.1rem;
}
.booking-header { background: var(--bg-card); border-bottom: 1px solid var(--border); padding: 24px 20px; }
.booking-header-inner { max-width: 600px; margin: 0 auto; display: flex; align-items: center; gap: 16px; }
.booking-logo { width: 56px; height: 56px; border-radius: 12px; object-fit: cover; }
.booking-biz-name { font-size: 1.4rem; font-weight: 700; color: var(--text-primary); }
.booking-biz-info { display: flex; align-items: center; gap: 6px; font-size: 0.85rem; color: var(--text-secondary); margin-top: 4px; }

.booking-progress { display: flex; justify-content: center; gap: 8px; padding: 20px; }
.booking-progress-dot { width: 10px; height: 10px; border-radius: 50%; background: var(--border); transition: all 0.3s ease; }
.booking-progress-dot.active { background: var(--primary); }
.booking-progress-dot.current { transform: scale(1.3); box-shadow: 0 0 8px rgba(255,102,0,0.5); }

.booking-content { flex: 1; max-width: 600px; margin: 0 auto; padding: 0 20px 40px; width: 100%; }
.booking-step { animation: fadeIn 0.3s ease; }
@keyframes fadeIn { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: translateY(0); } }
.booking-step-title { font-size: 1.3rem; font-weight: 700; color: var(--text-primary); margin-bottom: 8px; }
.booking-step-sub { color: var(--text-secondary); font-size: 0.9rem; margin-bottom: 20px; text-transform: capitalize; }

.booking-grid { display: flex; flex-direction: column; gap: 10px; }
.booking-option {
  display: flex; align-items: center; gap: 14px; padding: 16px 18px; background: var(--bg-card);
  border: 1px solid var(--border); border-radius: var(--radius); cursor: pointer; transition: all 0.2s ease;
}
.booking-option:hover { border-color: var(--primary); background: var(--bg-surface); }
.booking-option.selected { border-color: var(--primary); background: var(--primary-light); }
.booking-option-color { width: 8px; height: 40px; border-radius: 4px; flex-shrink: 0; }
.booking-option-avatar {
  width: 42px; height: 42px; border-radius: 50%; background: var(--primary-light); color: var(--primary);
  display: flex; align-items: center; justify-content: center; font-weight: 700; font-size: 1.1rem; flex-shrink: 0; overflow: hidden;
}
.booking-option-avatar img { width: 100%; height: 100%; object-fit: cover; }
.booking-option-info { flex: 1; }
.booking-option-name { font-weight: 600; font-size: 0.95rem; color: var(--text-primary); }
.booking-option-meta { font-size: 0.82rem; color: var(--text-secondary); margin-top: 3px; display: flex; align-items: center; gap: 4px; }
.booking-option-arrow { color: var(--text-muted); flex-shrink: 0; }

.booking-dates { display: grid; grid-template-columns: repeat(auto-fill, minmax(72px, 1fr)); gap: 10px; }
.booking-date {
  display: flex; flex-direction: column; align-items: center; padding: 14px 8px; background: var(--bg-card);
  border: 1px solid var(--border); border-radius: var(--radius-sm); cursor: pointer; transition: all 0.2s;
}
.booking-date:hover { border-color: var(--primary); }
.booking-date.selected { border-color: var(--primary); background: var(--primary); }
.booking-date.selected * { color: white !important; }
.booking-date-day { font-size: 0.75rem; color: var(--text-secondary); text-transform: uppercase; font-weight: 600; }
.booking-date-num { font-size: 1.3rem; font-weight: 700; color: var(--text-primary); margin: 4px 0; }
.booking-date-month { font-size: 0.75rem; color: var(--text-secondary); }
.booking-date-today { font-size: 0.65rem; color: var(--primary); font-weight: 700; margin-top: 4px; }

.booking-times { display: grid; grid-template-columns: repeat(auto-fill, minmax(90px, 1fr)); gap: 10px; }
.booking-time-btn {
  padding: 14px 8px; background: var(--bg-card); border: 1px solid var(--border); border-radius: var(--radius-sm);
  color: var(--text-primary); font-size: 0.95rem; font-weight: 600; cursor: pointer; transition: all 0.2s; text-align: center;
}
.booking-time-btn:hover { border-color: var(--primary); color: var(--primary); }
.booking-time-btn.selected { background: var(--primary); color: white; border-color: var(--primary); }

.booking-form { max-width: 400px; }

.booking-summary { background: var(--bg-card); border: 1px solid var(--border); border-radius: var(--radius); overflow: hidden; }
.booking-summary-row { display: flex; justify-content: space-between; align-items: center; padding: 14px 20px; border-bottom: 1px solid var(--border); }
.booking-summary-row:last-child { border-bottom: none; }
.booking-summary-row span { color: var(--text-secondary); font-size: 0.9rem; }
.booking-summary-row strong { color: var(--text-primary); font-size: 0.9rem; text-align: right; }
.booking-summary-row.total { background: var(--primary-light); }
.booking-summary-row.total strong { color: var(--primary); font-size: 1.1rem; }

.booking-back {
  display: flex; align-items: center; gap: 4px; margin-top: 20px; background: none; border: none;
  color: var(--text-secondary); font-size: 0.9rem; cursor: pointer; padding: 8px 0;
}
.booking-back:hover { color: var(--primary); }

.booking-footer { text-align: center; padding: 20px; font-size: 0.8rem; color: var(--text-muted); border-top: 1px solid var(--border); }
.booking-footer a { color: var(--primary); }

@media (max-width: 480px) {
  .booking-header-inner { flex-direction: column; text-align: center; }
  .booking-dates { grid-template-columns: repeat(4, 1fr); }
  .booking-times { grid-template-columns: repeat(3, 1fr); }
}
