/* FullBook Design System */
@import url('https://fonts.googleapis.com/css2?family=Outfit:wght@300;400;500;600;700&family=Space+Grotesk:wght@500;600;700&display=swap');

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

:root {
  --ink: #0a0a0a;
  --paper: #faf8f5;
  --amber: #d4830e;
  --amber-light: #f5e6cc;
  --amber-glow: #fef3e2;
  --slate: #4a4540;
  --muted: #8a847d;
  --border: #e8e4df;
  --white: #ffffff;
  --red: #dc3545;
  --green: #28a745;
  --green-light: #e8f5e9;
  --red-light: #fde8e8;
  --radius: 12px;
  --radius-sm: 8px;
  --shadow: 0 1px 3px rgba(0,0,0,0.06), 0 1px 2px rgba(0,0,0,0.04);
  --shadow-md: 0 4px 6px rgba(0,0,0,0.07), 0 2px 4px rgba(0,0,0,0.04);
  --shadow-lg: 0 10px 25px rgba(0,0,0,0.08);
}

body {
  font-family: 'Outfit', sans-serif;
  background: var(--paper);
  color: var(--ink);
  line-height: 1.6;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

/* Typography */
h1, h2, h3, h4 {
  font-family: 'Space Grotesk', sans-serif;
  letter-spacing: -0.5px;
  line-height: 1.2;
}

h1 { font-size: 48px; font-weight: 700; letter-spacing: -2px; }
h2 { font-size: 32px; font-weight: 700; letter-spacing: -1px; }
h3 { font-size: 22px; font-weight: 600; }
h4 { font-size: 18px; font-weight: 600; }

p { color: var(--slate); }
a { color: var(--amber); text-decoration: none; }
a:hover { text-decoration: underline; }

/* Layout */
.container { max-width: 1200px; margin: 0 auto; padding: 0 24px; }
.section { padding: 64px 0; }

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 24px;
  border-radius: var(--radius-sm);
  font-family: 'Outfit', sans-serif;
  font-weight: 600;
  font-size: 15px;
  border: none;
  cursor: pointer;
  transition: all 0.2s ease;
  text-decoration: none;
  line-height: 1;
}

.btn-primary {
  background: var(--ink);
  color: var(--white);
}
.btn-primary:hover {
  background: #222;
  transform: translateY(-1px);
  box-shadow: var(--shadow-md);
  text-decoration: none;
  color: var(--white);
}

.btn-amber {
  background: var(--amber);
  color: var(--white);
}
.btn-amber:hover {
  background: #c07a0d;
  transform: translateY(-1px);
  box-shadow: var(--shadow-md);
  text-decoration: none;
  color: var(--white);
}

.btn-outline {
  background: transparent;
  color: var(--ink);
  border: 1.5px solid var(--border);
}
.btn-outline:hover {
  border-color: var(--ink);
  text-decoration: none;
}

.btn-ghost {
  background: transparent;
  color: var(--muted);
  padding: 8px 16px;
}
.btn-ghost:hover {
  color: var(--ink);
  background: var(--amber-glow);
  text-decoration: none;
}

.btn-danger {
  background: var(--red);
  color: var(--white);
}
.btn-danger:hover {
  background: #c82333;
  text-decoration: none;
  color: var(--white);
}

.btn-sm {
  padding: 8px 16px;
  font-size: 13px;
}

.btn-lg {
  padding: 16px 32px;
  font-size: 17px;
}

.btn:disabled {
  opacity: 0.5;
  cursor: not-allowed;
  transform: none !important;
}

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

.card-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 20px;
  padding-bottom: 16px;
  border-bottom: 1px solid var(--border);
}

/* Forms */
.form-group {
  margin-bottom: 20px;
}

.form-group label {
  display: block;
  font-weight: 500;
  font-size: 14px;
  color: var(--slate);
  margin-bottom: 6px;
}

.form-control {
  width: 100%;
  padding: 12px 16px;
  border: 1.5px solid var(--border);
  border-radius: var(--radius-sm);
  font-family: 'Outfit', sans-serif;
  font-size: 15px;
  color: var(--ink);
  background: var(--white);
  transition: border-color 0.2s;
}

.form-control:focus {
  outline: none;
  border-color: var(--amber);
  box-shadow: 0 0 0 3px var(--amber-glow);
}

.form-control::placeholder {
  color: var(--muted);
}

textarea.form-control {
  resize: vertical;
  min-height: 80px;
}

select.form-control {
  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='%238a847d' stroke-width='2'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 12px center;
  padding-right: 36px;
}

/* Nav */
nav {
  padding: 20px 48px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  max-width: 1280px;
  margin: 0 auto;
}

.logo {
  font-family: 'Space Grotesk', sans-serif;
  font-weight: 700;
  font-size: 24px;
  letter-spacing: -0.5px;
  color: var(--ink);
  text-decoration: none;
}

.logo span { color: var(--amber); }

.nav-links {
  display: flex;
  align-items: center;
  gap: 16px;
}

.nav-tag {
  font-size: 13px;
  font-weight: 500;
  color: var(--muted);
  border: 1px solid var(--border);
  padding: 6px 14px;
  border-radius: 100px;
}

/* Stat Cards */
.stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 16px;
  margin-bottom: 32px;
}

.stat-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 20px 24px;
  box-shadow: var(--shadow);
}

.stat-card .stat-label {
  font-size: 13px;
  color: var(--muted);
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: 4px;
}

.stat-card .stat-value {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 36px;
  font-weight: 700;
  color: var(--ink);
  letter-spacing: -1px;
}

/* Tables */
.table-wrapper {
  overflow-x: auto;
}

table {
  width: 100%;
  border-collapse: collapse;
}

th {
  text-align: left;
  padding: 12px 16px;
  font-size: 12px;
  font-weight: 600;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  border-bottom: 2px solid var(--border);
}

td {
  padding: 14px 16px;
  font-size: 14px;
  border-bottom: 1px solid var(--border);
  color: var(--slate);
}

tr:hover td {
  background: var(--amber-glow);
}

/* Badges */
.badge {
  display: inline-flex;
  align-items: center;
  padding: 4px 10px;
  border-radius: 100px;
  font-size: 12px;
  font-weight: 600;
}

.badge-confirmed {
  background: var(--green-light);
  color: var(--green);
}

.badge-cancelled {
  background: var(--red-light);
  color: var(--red);
}

.badge-completed {
  background: var(--amber-glow);
  color: var(--amber);
}

/* Alert */
.alert {
  padding: 14px 20px;
  border-radius: var(--radius-sm);
  font-size: 14px;
  margin-bottom: 20px;
}

.alert-success {
  background: var(--green-light);
  color: #155724;
  border: 1px solid #c3e6cb;
}

.alert-error {
  background: var(--red-light);
  color: #721c24;
  border: 1px solid #f5c6cb;
}

.alert-info {
  background: var(--amber-glow);
  color: var(--slate);
  border: 1px solid var(--amber-light);
}

/* Modal */
.modal-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.4);
  backdrop-filter: blur(4px);
  z-index: 1000;
  align-items: center;
  justify-content: center;
}

.modal-overlay.active {
  display: flex;
}

.modal {
  background: var(--white);
  border-radius: var(--radius);
  padding: 32px;
  max-width: 500px;
  width: 90%;
  box-shadow: var(--shadow-lg);
  max-height: 90vh;
  overflow-y: auto;
}

.modal h3 {
  margin-bottom: 20px;
}

/* Dashboard Layout */
.dashboard-layout {
  display: grid;
  grid-template-columns: 240px 1fr;
  min-height: 100vh;
}

.sidebar {
  background: var(--white);
  border-right: 1px solid var(--border);
  padding: 24px 0;
  position: sticky;
  top: 0;
  height: 100vh;
}

.sidebar-logo {
  padding: 0 24px 24px;
  border-bottom: 1px solid var(--border);
  margin-bottom: 16px;
}

.sidebar-nav a {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 24px;
  color: var(--slate);
  font-size: 14px;
  font-weight: 500;
  text-decoration: none;
  transition: all 0.15s;
}

.sidebar-nav a:hover,
.sidebar-nav a.active {
  color: var(--ink);
  background: var(--amber-glow);
  text-decoration: none;
}

.sidebar-nav a.active {
  border-right: 3px solid var(--amber);
  font-weight: 600;
}

.main-content {
  padding: 32px 40px;
  max-width: 1000px;
}

.main-content h1 {
  font-size: 32px;
  margin-bottom: 8px;
}

.page-description {
  color: var(--muted);
  font-size: 15px;
  margin-bottom: 32px;
}

/* Booking Page */
.booking-container {
  max-width: 700px;
  margin: 0 auto;
  padding: 40px 24px;
}

.booking-header {
  text-align: center;
  margin-bottom: 40px;
}

.booking-header h1 {
  font-size: 36px;
  margin-bottom: 8px;
}

.booking-header p {
  font-size: 16px;
  color: var(--muted);
}

.service-card {
  background: var(--white);
  border: 2px solid var(--border);
  border-radius: var(--radius);
  padding: 20px 24px;
  cursor: pointer;
  transition: all 0.2s;
  margin-bottom: 12px;
}

.service-card:hover {
  border-color: var(--amber);
  box-shadow: var(--shadow-md);
}

.service-card.selected {
  border-color: var(--amber);
  background: var(--amber-glow);
}

.service-card h4 {
  margin-bottom: 4px;
}

.service-card .service-meta {
  display: flex;
  gap: 16px;
  font-size: 13px;
  color: var(--muted);
}

.time-slots {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(110px, 1fr));
  gap: 8px;
  margin-top: 16px;
}

.time-slot {
  padding: 10px;
  text-align: center;
  border: 1.5px solid var(--border);
  border-radius: var(--radius-sm);
  cursor: pointer;
  font-size: 14px;
  font-weight: 500;
  transition: all 0.15s;
  background: var(--white);
}

.time-slot:hover {
  border-color: var(--amber);
  background: var(--amber-glow);
}

.time-slot.selected {
  border-color: var(--amber);
  background: var(--amber);
  color: var(--white);
}

.booking-steps {
  counter-reset: step;
}

.booking-step {
  margin-bottom: 32px;
}

.booking-step h3 {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 16px;
}

.booking-step h3::before {
  counter-increment: step;
  content: counter(step);
  display: flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: var(--ink);
  color: var(--white);
  font-family: 'Space Grotesk', sans-serif;
  font-size: 14px;
  font-weight: 700;
  flex-shrink: 0;
}

.step-inactive {
  opacity: 0.4;
  pointer-events: none;
}

/* Empty State */
.empty-state {
  text-align: center;
  padding: 60px 20px;
  color: var(--muted);
}

.empty-state svg {
  margin-bottom: 16px;
  opacity: 0.4;
}

.empty-state h3 {
  color: var(--slate);
  margin-bottom: 8px;
}

/* Booking Link */
.booking-link-box {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 16px;
  background: var(--amber-glow);
  border: 1px solid var(--amber-light);
  border-radius: var(--radius-sm);
  margin-bottom: 24px;
}

.booking-link-box input {
  flex: 1;
  border: none;
  background: transparent;
  font-family: 'Outfit', sans-serif;
  font-size: 14px;
  color: var(--ink);
}

.booking-link-box input:focus {
  outline: none;
}

/* Responsive */
@media (max-width: 768px) {
  nav {
    padding: 16px 20px;
  }

  h1 { font-size: 32px; }
  h2 { font-size: 24px; }

  .dashboard-layout {
    grid-template-columns: 1fr;
  }

  .sidebar {
    display: none;
  }

  .main-content {
    padding: 24px 20px;
  }

  .stats-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .hero {
    grid-template-columns: 1fr;
    padding: 40px 20px 60px;
    gap: 40px;
  }

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

/* Animations */
@keyframes fadeIn {
  from { opacity: 0; transform: translateY(8px); }
  to { opacity: 1; transform: translateY(0); }
}

.fade-in {
  animation: fadeIn 0.3s ease forwards;
}

/* Loading Spinner */
.spinner {
  display: inline-block;
  width: 20px;
  height: 20px;
  border: 2.5px solid var(--border);
  border-top-color: var(--amber);
  border-radius: 50%;
  animation: spin 0.6s linear infinite;
}

@keyframes spin {
  to { transform: rotate(360deg); }
}

/* Toast */
.toast-container {
  position: fixed;
  top: 24px;
  right: 24px;
  z-index: 2000;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.toast {
  padding: 14px 20px;
  border-radius: var(--radius-sm);
  font-size: 14px;
  font-weight: 500;
  box-shadow: var(--shadow-lg);
  animation: slideIn 0.3s ease;
  max-width: 400px;
}

.toast-success {
  background: var(--green);
  color: white;
}

.toast-error {
  background: var(--red);
  color: white;
}

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

/* Schedule Grid */
.schedule-day {
  margin-bottom: 16px;
  padding: 16px 20px;
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
}

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

.schedule-day .day-name {
  font-weight: 600;
  font-size: 15px;
}

.schedule-day .day-closed {
  color: var(--muted);
  font-size: 13px;
  font-style: italic;
}

.schedule-slot {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 4px 12px;
  background: var(--amber-glow);
  border-radius: 100px;
  font-size: 13px;
  font-weight: 500;
  color: var(--amber);
  margin-right: 8px;
  margin-top: 4px;
}

/* Service List (Dashboard) */
.service-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 0;
  border-bottom: 1px solid var(--border);
}

.service-item:last-child {
  border-bottom: none;
}

.service-info h4 {
  margin-bottom: 2px;
}

.service-info .meta {
  font-size: 13px;
  color: var(--muted);
}

.service-actions {
  display: flex;
  gap: 8px;
}
