:root {
  --background: hsl(35, 50%, 97%);
  --foreground: hsl(0, 0%, 20%);
  --card: hsl(35, 30%, 95%);
  --card-foreground: hsl(0, 0%, 20%);
  --popover: hsl(35, 30%, 95%);
  --popover-foreground: hsl(0, 0%, 20%);
  --primary: hsl(0, 25%, 70%);
  --primary-foreground: hsl(0, 0%, 98%);
  --secondary: hsl(35, 20%, 90%);
  --secondary-foreground: hsl(0, 0%, 15%);
  --muted: hsl(35, 15%, 85%);
  --muted-foreground: hsl(0, 0%, 40%);
  --accent: hsl(0, 0%, 23%);
  --accent-foreground: hsl(0, 0%, 98%);
  --destructive: hsl(356.3, 90.6%, 54.3%);
  --destructive-foreground: hsl(0, 0%, 100%);
  --border: hsl(35, 15%, 82%);
  --input: hsl(35, 15%, 88%);
  --ring: hsl(0, 25%, 70%);
  --radius: 0.75rem;
}

/* Font imports */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700&family=Playfair+Display:wght@400;500;600;700&display=swap');

/* Base styles */
body {
  font-family: 'Inter', system-ui, sans-serif;
}

h1, h2, h3, h4, h5, h6 {
  font-family: 'Playfair Display', serif;
}

/* Custom animations */
.fade-in {
  animation: fadeIn 0.5s ease-in;
}

@keyframes fadeIn {
  from { opacity: 0; transform: translateY(20px); }
  to { opacity: 1; transform: translateY(0); }
}

.slide-up {
  animation: slideUp 0.6s ease-out;
}

@keyframes slideUp {
  from { opacity: 0; transform: translateY(30px); }
  to { opacity: 1; transform: translateY(0); }
}

/* Form styles */
.form-group {
  margin-bottom: 1.5rem;
}

.form-label {
  display: block;
  margin-bottom: 0.5rem;
  font-weight: 500;
  color: var(--foreground);
}

.form-input {
  width: 100%;
  padding: 0.75rem 1rem;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--background);
  color: var(--foreground);
  transition: all 0.2s ease;
}

.form-input:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 2px hsla(0, 25%, 70%, 0.2);
}

.form-input:invalid {
  border-color: var(--destructive);
}

.form-error {
  color: var(--destructive);
  font-size: 0.875rem;
  margin-top: 0.25rem;
}

/* Button styles */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.75rem 1.5rem;
  border-radius: var(--radius);
  font-weight: 500;
  text-decoration: none;
  transition: all 0.2s ease;
  cursor: pointer;
  border: none;
}

.btn-primary {
  background: var(--primary);
  color: var(--primary-foreground);
}

.btn-primary:hover {
  background: hsla(0, 25%, 70%, 0.9);
}

.btn-secondary {
  background: var(--secondary);
  color: var(--secondary-foreground);
}

.btn-outline {
  background: transparent;
  color: var(--foreground);
  border: 1px solid var(--border);
}

.btn-outline:hover {
  background: var(--secondary);
}

/* Alert styles */
.alert {
  padding: 1rem;
  border-radius: var(--radius);
  margin-bottom: 1rem;
}

.alert-success {
  background: hsl(142.1, 76.2%, 36.3%, 0.1);
  color: hsl(142.1, 76.2%, 36.3%);
  border: 1px solid hsl(142.1, 76.2%, 36.3%, 0.2);
}

.alert-error {
  background: hsla(356.3, 90.6%, 54.3%, 0.1);
  color: var(--destructive);
  border: 1px solid hsla(356.3, 90.6%, 54.3%, 0.2);
}

.alert-warning {
  background: hsl(47.9, 95.8%, 53.1%, 0.1);
  color: hsl(47.9, 95.8%, 53.1%);
  border: 1px solid hsl(47.9, 95.8%, 53.1%, 0.2);
}

/* Loading spinner */
.spinner {
  display: inline-block;
  width: 20px;
  height: 20px;
  border: 2px solid var(--muted);
  border-top: 2px solid var(--primary);
  border-radius: 50%;
  animation: spin 1s linear infinite;
}

@keyframes spin {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}

/* Responsive utilities */
@media (max-width: 768px) {
  .mobile-hidden {
    display: none !important;
  }
  
  .mobile-full {
    width: 100% !important;
  }
}

/* Service card hover effects */
.service-card {
  transition: all 0.3s ease;
}

.service-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
}

/* Navigation hover effects */
.nav-link {
  position: relative;
  transition: color 0.2s ease;
}

.nav-link::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--primary);
  transition: width 0.2s ease;
}

.nav-link:hover::after,
.nav-link.active::after {
  width: 100%;
}

/* Booking wizard styles */
.wizard-step {
  display: none;
}

.wizard-step.active {
  display: block;
  animation: fadeIn 0.3s ease-in;
}

.wizard-progress {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 2rem;
}

.wizard-progress-item {
  display: flex;
  align-items: center;
  flex: 1;
}

.wizard-progress-circle {
  width: 2rem;
  height: 2rem;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 600;
  margin-right: 0.5rem;
}

.wizard-progress-circle.active {
  background: var(--primary);
  color: var(--primary-foreground);
}

.wizard-progress-circle.inactive {
  background: var(--muted);
  color: var(--muted-foreground);
}

.wizard-progress-line {
  height: 1px;
  background: var(--border);
  flex: 1;
  margin: 0 1rem;
}

/* Calendar styles */
.calendar {
  max-width: 100%;
  margin: 0 auto;
}

.calendar-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 1rem;
}

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

.calendar-day {
  background: var(--background);
  padding: 0.75rem;
  text-align: center;
  cursor: pointer;
  transition: all 0.2s ease;
  min-height: 3rem;
}

.calendar-day:hover {
  background: var(--secondary);
}

.calendar-day.selected {
  background: var(--primary);
  color: var(--primary-foreground);
}

.calendar-day.disabled {
  color: var(--muted-foreground);
  cursor: not-allowed;
}

.calendar-day.disabled:hover {
  background: var(--background);
}

/* Time slot grid */
.time-slots {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
  gap: 0.5rem;
  margin-top: 1rem;
}

.time-slot {
  padding: 0.5rem 1rem;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  cursor: pointer;
  transition: all 0.2s ease;
  text-align: center;
}

.time-slot:hover {
  background: var(--secondary);
  border-color: var(--primary);
}

.time-slot.selected {
  background: var(--primary);
  color: var(--primary-foreground);
  border-color: var(--primary);
}

.time-slot.unavailable {
  background: var(--muted);
  color: var(--muted-foreground);
  cursor: not-allowed;
  opacity: 0.6;
}

/* Admin dashboard styles */
.dashboard-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.5rem;
  margin-bottom: 1rem;
}

.dashboard-metric {
  text-align: center;
}

.dashboard-metric-value {
  font-size: 2rem;
  font-weight: bold;
  color: var(--primary);
  margin-bottom: 0.5rem;
}

.dashboard-metric-label {
  color: var(--muted-foreground);
  font-size: 0.875rem;
}

/* Table styles */
.table {
  width: 100%;
  border-collapse: collapse;
  margin-top: 1rem;
}

.table th,
.table td {
  padding: 0.75rem;
  text-align: left;
  border-bottom: 1px solid var(--border);
}

.table th {
  background: var(--secondary);
  font-weight: 600;
  color: var(--secondary-foreground);
}

.table tbody tr:hover {
  background: var(--secondary);
}

/* Badge styles */
.badge {
  display: inline-flex;
  align-items: center;
  padding: 0.25rem 0.75rem;
  border-radius: 9999px;
  font-size: 0.75rem;
  font-weight: 500;
}

.badge-success {
  background: hsl(142.1, 76.2%, 36.3%, 0.1);
  color: hsl(142.1, 76.2%, 36.3%);
}

.badge-warning {
  background: hsl(47.9, 95.8%, 53.1%, 0.1);
  color: hsl(47.9, 95.8%, 53.1%);
}

.badge-danger {
  background: hsla(356.3, 90.6%, 54.3%, 0.1);
  color: var(--destructive);
}

/* Print styles */
@media print {
  .no-print {
    display: none !important;
  }
  
  .print-break {
    page-break-after: always;
  }
}
