/* Site CSS - Golden & Black Theme */
:root {
  /* Golden Palette */
  --gold-primary: #d4af37;
  --gold-light: #f4e4bc;
  --gold-dark: #b8860b;
  --gold-accent: #ffd700;
  
  /* Black & Gray Palette */
  --black-primary: #1a1a1a;
  --black-light: #2d2d2d;
  --black-dark: #000000;
  --gray-light: #f5f5f5;
  --gray-medium: #8a8a8a;
  --gray-dark: #4a4a4a;
  
  /* Theme Colors */
  --color-primary: var(--gold-primary);
  --color-primary-600: var(--gold-dark);
  --color-accent: var(--gold-accent);
  --color-bg: var(--gray-light);
  --color-surface: #ffffff;
  --color-border: #e0e0e0;
  --color-muted: var(--gray-medium);
  --color-text: var(--black-primary);
  
  /* Spacing & Radius */
  --radius-sm: 6px; 
  --radius-md: 12px; 
  --radius-lg: 20px;
  --space-1: 0.25rem; 
  --space-2: 0.5rem; 
  --space-3: 0.75rem; 
  --space-4: 1rem; 
  --space-5: 1.25rem; 
  --space-6: 1.5rem; 
  --space-8: 2rem; 
  --space-12: 3rem;

  /* Backwards-compat vars */
  --primary-color: var(--color-primary);
  --primary-dark: var(--color-primary-600);
  --accent-color: var(--color-accent);
  --light-color: var(--gray-light);
  --gray-color: var(--color-muted);
  --dark-color: var(--color-text);
}

html { scroll-behavior: smooth; }
body { 
  font-family: 'Cairo', system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif; 
  color: var(--color-text); 
  background: linear-gradient(135deg, var(--color-bg) 0%, #ffffff 100%);
  line-height: 1.7; 
  margin: 0;
  padding: 0;
}
.container { max-width: 1200px; margin: 0 auto; padding-inline: 20px; }

/* Global alerts container for better positioning */
.alerts-container {
  margin-top: var(--space-4);
}

.alert {
  max-width: 800px;
  margin: var(--space-4) auto;
  border-radius: var(--radius-md);
  padding: 12px 16px;
  display: flex;
  align-items: center;
  gap: var(--space-3);
  border: 1px solid transparent;
  box-shadow: 0 6px 20px rgba(0,0,0,0.08);
}

.alert i { flex-shrink: 0; }

.alert-success {
  background: #ecfdf5;
  color: #065f46;
  border-color: #a7f3d0;
}

.alert-error {
  background: #fef2f2;
  color: #7f1d1d;
  border-color: #fecaca;
}

.alert .alert-close {
  margin-inline-start: auto;
  background: transparent;
  border: 0;
  color: inherit;
  font-size: 1.25rem;
  cursor: pointer;
  line-height: 1;
}

/* Navbar */
.navbar { 
  background: linear-gradient(135deg, var(--color-surface) 0%, var(--gold-light) 100%);
  border-bottom: 2px solid var(--gold-primary);
  position: sticky; 
  top: 0; 
  z-index: 40;
  width: 100vw;
  margin-left: calc(-50vw + 50%);
  box-shadow: 0 4px 20px rgba(212, 175, 55, 0.1);
}
.navbar .container { display: flex; align-items: center; justify-content: space-between; min-height: 70px; gap: var(--space-6); }
.nav-brand a { 
  display: inline-flex; 
  align-items: center; 
  gap: var(--space-2); 
  color: var(--black-primary); 
  text-decoration: none; 
  font-weight: 800; 
  font-size: 1.25rem;
  text-shadow: 0 2px 4px rgba(0,0,0,0.1);
}
.nav-brand i { color: var(--gold-primary); font-size: 1.5rem; }
.nav-menu { display: flex; align-items: center; gap: var(--space-6); }
.nav-link { 
  color: var(--black-primary); 
  text-decoration: none; 
  font-weight: 700; 
  opacity: .9;
  padding: 8px 16px;
  border-radius: var(--radius-md);
  transition: all 0.3s ease;
}
.nav-link:hover { 
  opacity: 1; 
  color: var(--gold-primary);
  background: rgba(212, 175, 55, 0.1);
  transform: translateY(-2px);
}
.nav-user, .nav-auth { display: flex; align-items: center; gap: var(--space-3); }
.btn-logout { 
  background: transparent; 
  border: 2px solid var(--gold-primary); 
  padding: 8px 16px; 
  border-radius: var(--radius-md); 
  cursor: pointer;
  color: var(--gold-primary);
  font-weight: 600;
  transition: all 0.3s ease;
}
.btn-logout:hover {
  background: var(--gold-primary);
  color: white;
  transform: translateY(-2px);
}
.nav-toggle { display: none; flex-direction: column; cursor: pointer; }
.nav-toggle span { width: 24px; height: 3px; background: var(--black-primary); margin: 3px 0; border-radius: 2px; }
@media (max-width: 992px) {
  .nav-toggle { display: flex; }
  .nav-menu { display: none; }
  .nav-menu.active { display: flex; flex-direction: column; gap: var(--space-4); background: var(--color-surface); padding: var(--space-4); border-bottom: 1px solid var(--color-border); position: absolute; top: 100%; inset-inline: 0; }
}

/* Hero */
.hero {
  background: 
    linear-gradient(135deg, rgba(40, 33, 12, 0.9) 0%, rgba(44, 32, 2, 0.85) 100%),
    url('/assets/images/hero/hero-bg.jpg');
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  min-height: 520px;
  color: white;
  position: relative;
  overflow: hidden;
  image-rendering: -webkit-optimize-contrast;
  image-rendering: crisp-edges;
}

.hero::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.1), transparent);
  transform: translateX(-100%) skewX(-15deg);
  animation: heroShine 6s ease-in-out infinite;
  pointer-events: none;
}

.hero::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 1200 800"><defs><pattern id="grain" x="0" y="0" width="100" height="100" patternUnits="userSpaceOnUse"><circle cx="20" cy="20" r="1" fill="%23ffffff" opacity="0.1"/><circle cx="80" cy="80" r="1" fill="%23ffffff" opacity="0.15"/><circle cx="50" cy="50" r="0.5" fill="%23ffffff" opacity="0.2"/><circle cx="90" cy="30" r="0.8" fill="%23ffffff" opacity="0.1"/><circle cx="30" cy="70" r="0.6" fill="%23ffffff" opacity="0.12"/></pattern></defs><rect width="1200" height="800" fill="url(%23grain)"/></svg>');
  pointer-events: none;
  opacity: 0.6;
}

@keyframes heroFloat {
  0%, 100% { transform: translateY(0px) rotate(0deg); }
  25% { transform: translateY(-8px) rotate(0.3deg); }
  50% { transform: translateY(4px) rotate(-0.2deg); }
  75% { transform: translateY(-3px) rotate(0.1deg); }
}

@keyframes heroGlow {
  0% { opacity: 0.7; transform: scale(1); }
  100% { opacity: 1; transform: scale(1.05); }
}

@keyframes heroShine {
  0% { transform: translateX(-100%) skewX(-15deg); }
  100% { transform: translateX(200%) skewX(-15deg); }
}

@keyframes heroPulse {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.02); }
}

.hero > .container {
  position: relative;
  z-index: 2;
  padding-block: var(--space-12);
  display: flex;
  align-items: center;
  min-height: 520px;
}

.hero-content {
  text-align: center;
  max-width: 800px;
  margin: 0 auto;
  position: relative;
  z-index: 3;
  animation: heroContentFade 1.5s ease-out;
}

@keyframes heroContentFade {
  0% { 
    opacity: 0; 
    transform: translateY(30px); 
  }
  100% { 
    opacity: 1; 
    transform: translateY(0); 
  }
}

.hero-title {
  font-size: clamp(2rem, 4vw, 3.5rem);
  font-weight: 900;
  line-height: 1.2;
  margin-bottom: var(--space-4);
  text-shadow: 0 4px 8px rgba(0,0,0,0.3);
  animation: heroTitleGlow 3s ease-in-out infinite alternate;
}

@keyframes heroTitleGlow {
  0% { text-shadow: 0 4px 8px rgba(0,0,0,0.3), 0 0 20px rgba(255, 215, 0, 0.3); }
  100% { text-shadow: 0 4px 8px rgba(0,0,0,0.3), 0 0 30px rgba(255, 215, 0, 0.6); }
}

.hero-subtitle {
  font-size: 1.25rem;
  opacity: 0.95;
  margin-bottom: var(--space-6);
  line-height: 1.6;
}

.hero-actions {
  display: flex;
  gap: var(--space-4);
  justify-content: center;
  flex-wrap: wrap;
}

.btn-hero {
  padding: 1rem 2rem;
  font-size: 1.125rem;
  font-weight: 700;
  border-radius: var(--radius-md);
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  transition: all 0.3s ease;
  box-shadow: 0 4px 15px rgba(0,0,0,0.2);
  position: relative;
  overflow: hidden;
}

.btn-hero::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
  transition: left 0.5s;
}

.btn-hero:hover::before {
  left: 100%;
}

.btn-hero:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 25px rgba(0,0,0,0.3), 0 0 20px rgba(255, 215, 0, 0.4);
}

/* Sections */
.section { padding: var(--space-12) 0; }
.section-header { text-align: center; margin-bottom: var(--space-8); }
.section-title { font-weight: 800; margin-bottom: var(--space-2); font-size: clamp(1.25rem, 1.1rem + .8vw, 2rem); }
.section-subtitle { color: var(--color-muted); }

/* Cards & Grid */
.grid { display: grid; gap: var(--space-6); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }
@media (max-width: 992px) { .grid-3, .grid-4 { grid-template-columns: 1fr; } }
.card { 
  background: linear-gradient(135deg, var(--color-surface) 0%, var(--gold-light) 100%);
  border: 2px solid var(--gold-primary);
  border-radius: var(--radius-lg);
  box-shadow: 0 8px 25px rgba(212, 175, 55, 0.15);
  overflow: hidden;
  transition: all 0.3s ease;
}
.card:hover {
  transform: translateY(-5px);
  box-shadow: 0 15px 35px rgba(212, 175, 55, 0.25);
}
.card-body { padding: var(--space-6); }
.card-title { 
  font-weight: 800; 
  margin-bottom: var(--space-3);
  color: var(--black-primary);
  font-size: 1.25rem;
}
.card-muted { color: var(--gray-medium); }

/* Services */
.services-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: var(--space-8); }

/* Add spacing for services section */
.services {
  padding-top: var(--space-8);
}

/* Barber dashboard - Profile UI */
.barber-dashboard .profile-section .profile-card {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  padding: var(--space-6);
  box-shadow: 0 8px 20px rgba(0,0,0,0.06);
  
  /* Main Grid Layout */
  display: grid;
  grid-template-columns: 280px 1fr;
  gap: var(--space-8);
  align-items: start;
}

@media (max-width: 992px) {
  .barber-dashboard .profile-section .profile-card {
    grid-template-columns: 1fr;
    gap: var(--space-6);
  }
}

/* Avatar Column */
.avatar-column {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--space-4);
}

.avatar-wrapper {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--space-3);
  text-align: center;
}

.avatar-image, 
.avatar-placeholder {
  width: 220px;
  height: 220px;
  border-radius: 50%;
  overflow: hidden;
  display: grid;
  place-items: center;
  background: var(--gray-light);
  border: 3px solid var(--gold-primary);
  box-shadow: 0 8px 20px rgba(212,175,55,0.25);
}

.avatar-image {
  object-fit: cover;
}

.avatar-placeholder i {
  font-size: 4rem;
  color: var(--gold-primary);
}

.upload-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 10px 14px;
  border-radius: var(--radius-md);
  background: linear-gradient(135deg, var(--gold-primary), var(--gold-dark));
  color: #fff;
  cursor: pointer;
  box-shadow: 0 6px 16px rgba(212,175,55,0.35);
  border: 2px solid var(--gold-primary);
  transition: all 0.3s ease;
}

.upload-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(212,175,55,0.45);
}

.upload-btn i {
  font-size: 1rem;
}

.hint {
  color: var(--color-muted);
  font-size: 0.85rem;
  margin-top: var(--space-2);
}

/* Fields Column - Grid Layout */
.fields-column {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: var(--space-6);
  align-content: start;
}

/* Form Rows - Full Width */
.fields-column .form-row {
  grid-column: 1 / -1;
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
}

/* Specific Field Layouts */
.fields-column .form-row:nth-child(1) {
  /* Name field - full width */
  grid-column: 1 / -1;
}

.fields-column .form-row:nth-child(2) {
  /* Phone field - full width */
  grid-column: 1 / -1;
}

.fields-column .form-row:nth-child(3) {
  /* Bio field - full width */
  grid-column: 1 / -1;
}

.fields-column .form-row:nth-child(4) {
  /* Parking spaces - left column */
  grid-column: 1 / 2;
}

.fields-column .form-row:nth-child(5) {
  /* Address field - full width */
  grid-column: 1 / -1;
}

.fields-column .form-row:nth-child(6) {
  /* Location fields - both columns */
  grid-column: 1 / -1;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-4);
}

.fields-column .form-row:nth-child(7) {
  /* Location button - full width */
  grid-column: 1 / -1;
}

.fields-column .form-row:nth-child(8) {
  /* Form actions - full width */
  grid-column: 1 / -1;
}

/* Form Groups */
.form-group {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  position: relative;
}

.form-group:focus-within label {
  color: var(--gold-primary);
}

.form-group label {
  font-weight: 700;
  color: var(--black-primary);
  font-size: 0.95rem;
}

.form-group input[type="text"],
.form-group input[type="number"],
.form-group textarea {
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  padding: 12px 14px;
  background: #fff;
  font-size: 1rem;
  transition: all 0.3s ease;
  width: 100%;
  box-sizing: border-box;
  resize: vertical;
  min-height: 80px;
  font-family: inherit;
  line-height: 1.5;
}

.form-group input[type="text"]:focus,
.form-group input[type="number"]:focus,
.form-group textarea:focus {
  border-color: var(--gold-primary);
  box-shadow: 0 0 0 3px rgba(212,175,55,0.1);
  outline: none;
  transform: translateY(-1px);
}

.form-group .help-text {
  color: var(--color-muted);
  font-size: 0.85rem;
  margin-top: 0.25rem;
}

.form-group.small {
  max-width: 100%;
}

/* Location Fields */
.location-fields {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-4);
}

.location-btn {
  margin-top: var(--space-2);
  align-self: start;
  background: linear-gradient(135deg, var(--color-primary), var(--color-accent));
  color: #fff;
  border: none;
  padding: 12px 20px;
  border-radius: var(--radius-md);
  font-weight: 600;
  transition: all 0.3s ease;
  box-shadow: 0 4px 12px rgba(14, 165, 233, 0.25);
}

.location-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 16px rgba(14, 165, 233, 0.35);
}

/* Form Actions */
.form-actions {
  margin-top: var(--space-6);
  padding-top: var(--space-4);
  border-top: 1px solid var(--color-border);
  display: flex;
  justify-content: flex-end;
  gap: var(--space-3);
}

.form-actions .btn-primary {
  background: linear-gradient(135deg, var(--gold-primary), var(--gold-dark));
  border: none;
  padding: 14px 28px;
  font-weight: 700;
  font-size: 1.1rem;
  transition: all 0.3s ease;
  box-shadow: 0 6px 16px rgba(212,175,55,0.35);
}

.form-actions .btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(212,175,55,0.45);
}

/* Responsive Design */
@media (max-width: 768px) {
  .barber-dashboard .profile-section .profile-card {
    padding: var(--space-4);
    gap: var(--space-4);
  }
  
  .fields-column {
    grid-template-columns: 1fr;
    gap: var(--space-4);
  }
  
  .fields-column .form-row:nth-child(4) {
    grid-column: 1 / -1;
  }
  
  .location-fields {
    grid-template-columns: 1fr;
  }
  
  .form-actions {
    flex-direction: column;
    align-items: stretch;
  }
  
  .avatar-image,
  .avatar-placeholder {
    width: 180px;
    height: 180px;
  }
}

@media (max-width: 480px) {
  .barber-dashboard .profile-section .profile-card {
    padding: var(--space-3);
  }
  
  .avatar-image,
  .avatar-placeholder {
    width: 150px;
    height: 150px;
  }
  
  .upload-btn {
    padding: 8px 12px;
    font-size: 0.9rem;
  }
}

/* Profile form styles - now handled by profile-card grid layout */
.service-card { 
  background: linear-gradient(135deg, var(--color-surface) 0%, var(--gold-light) 100%);
  border: 2px solid var(--gold-primary);
  border-radius: var(--radius-lg);
  transition: all 0.3s ease;
  overflow: hidden;
  box-shadow: 0 8px 25px rgba(212, 175, 55, 0.15);
}
.service-card:hover { 
  transform: translateY(-8px) scale(1.02);
  box-shadow: 0 20px 40px rgba(212, 175, 55, 0.3);
  border-color: var(--gold-accent);
}
.service-image { 
  height: 220px; 
  overflow: hidden;
  position: relative;
}
.service-image::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(45deg, rgba(212, 175, 55, 0.3) 0%, transparent 100%);
  z-index: 1;
}
.service-image img { 
  width: 100%; 
  height: 100%; 
  object-fit: cover; 
  display: block;
  transition: transform 0.3s ease;
}
.service-card:hover .service-image img {
  transform: scale(1.1);
}
.service-content { 
  padding: var(--space-6); 
}

.service-header {
  display: flex;
  align-items: center;
  gap: var(--space-4);
  margin-bottom: var(--space-4);
}

.service-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 50px;
  height: 50px;
  background: var(--gold-primary);
  color: white;
  border-radius: var(--radius-md);
  flex-shrink: 0;
  box-shadow: 0 4px 12px rgba(212, 175, 55, 0.3);
}

.service-title {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--black-primary);
  margin: 0;
  line-height: 1.3;
  flex: 1;
}

.service-description {
  color: var(--gray-medium);
  margin: 0 0 var(--space-4) 0;
  line-height: 1.6;
  font-size: 1rem;
}
.service-meta { 
  display: flex; 
  gap: var(--space-6); 
  color: var(--gray-medium); 
  margin-top: var(--space-4);
  padding-top: var(--space-4);
  border-top: 1px solid var(--gold-light);
}
.meta-item { 
  display: inline-flex; 
  align-items: center; 
  gap: var(--space-2);
  color: var(--black-primary);
  font-weight: 600;
}
.meta-item i {
  color: var(--gold-primary);
  font-size: 1.1em;
}

/* Buttons */
.btn { 
  display: inline-flex; 
  align-items: center; 
  gap: .5rem; 
  padding: 12px 24px; 
  border-radius: var(--radius-md); 
  font-weight: 700; 
  text-decoration: none; 
  border: 2px solid transparent; 
  cursor: pointer; 
  transition: all 0.3s ease;
  font-size: 1rem;
  text-transform: none;
  box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}
.btn i { font-size: 1.1em; }
.btn-primary { 
  background: linear-gradient(135deg, var(--gold-primary) 0%, var(--gold-dark) 100%);
  color: white; 
  border-color: var(--gold-primary);
  box-shadow: 0 4px 15px rgba(212, 175, 55, 0.3);
}
.btn-primary:hover { 
  background: linear-gradient(135deg, var(--gold-dark) 0%, var(--gold-primary) 100%);
  border-color: var(--gold-dark);
  transform: translateY(-3px);
  box-shadow: 0 8px 25px rgba(212, 175, 55, 0.4);
}
.btn-outline { 
  background: transparent; 
  color: var(--black-primary); 
  border-color: var(--gold-primary);
  color: var(--gold-primary);
}
.btn-outline:hover { 
  background: var(--gold-primary);
  color: white;
  border-color: var(--gold-primary);
  transform: translateY(-2px);
}
.btn-danger { 
  background: linear-gradient(135deg, #dc3545 0%, #c82333 100%);
  color: #fff; 
  border-color: #dc3545;
  box-shadow: 0 4px 15px rgba(220, 53, 69, 0.3);
}
.btn-danger:hover {
  background: linear-gradient(135deg, #c82333 0%, #dc3545 100%);
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(220, 53, 69, 0.4);
}

/* Forms */
label { 
  font-weight: 700; 
  color: var(--black-primary);
  margin-bottom: var(--space-2);
  display: block;
}
input, select, textarea { 
  width: 100%; 
  padding: 12px 16px; 
  border: 2px solid var(--gold-light);
  border-radius: var(--radius-md);
  background: var(--color-surface);
  font: inherit;
  font-size: 1rem;
  transition: all 0.3s ease;
  color: var(--black-primary);
}
input:focus, select:focus, textarea:focus { 
  outline: none; 
  border-color: var(--gold-primary);
  box-shadow: 0 0 0 4px rgba(212, 175, 55, 0.15);
  transform: translateY(-2px);
}
.form-row { display: grid; grid-template-columns: repeat(2, 1fr); gap: var(--space-4); }
@media (max-width: 768px) { .form-row { grid-template-columns: 1fr; } }

/* Tables */
table { width: 100%; border-collapse: collapse; background: var(--color-surface); border: 1px solid var(--color-border); border-radius: var(--radius-sm); overflow: hidden; }
th, td { padding: .875rem 1rem; border-bottom: 1px solid var(--color-border); text-align: start; }
thead th { background: #f1f5f9; font-weight: 800; }

/* Badges */
.status-badge { padding: .25rem .75rem; border-radius: 999px; font-weight: 800; font-size: .875rem; }
.status-active { background: rgba(16, 185, 129, .12); color: #065f46; }
.status-inactive { background: rgba(239, 68, 68, .12); color: #7f1d1d; }

/* Calendar (final override to ensure stacking) */
.calendar-grid { display: grid !important; grid-template-columns: 1fr !important; grid-auto-rows: auto; row-gap: var(--space-2); }
.calendar-grid > .calendar-weekdays, 
.calendar-grid > .calendar-days { grid-column: 1 / -1 !important; }
.calendar-weekdays { display: grid !important; grid-template-columns: repeat(7, 1fr) !important; }
.calendar-days { display: grid !important; grid-template-columns: repeat(7, 1fr) !important; }
/* Alerts */
.alert { padding: var(--space-4); border-radius: var(--radius-sm); border: 1px solid var(--color-border); }
.alert-success { background: rgba(16, 185, 129, .08); color: #065f46; }
.alert-error { background: rgba(239, 68, 68, .08); color: #7f1d1d; }

/* Footer */
.footer { 
  background: linear-gradient(135deg, var(--black-primary) 0%, var(--black-light) 100%);
  border-top: 3px solid var(--gold-primary);
  padding: var(--space-8) 0;
  color: white;
}
.footer-content { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: var(--space-6); }
.footer-section { margin-bottom: var(--space-4); }
.footer h3, .footer h4 { 
  margin: 0 0 var(--space-3);
  color: var(--gold-primary);
  font-weight: 700;
}
.footer p, .footer li, .footer a { 
  color: #e0e0e0; 
  text-decoration: none;
  transition: color 0.3s ease;
}
.footer a:hover {
  color: var(--gold-primary);
}
.footer ul { 
  list-style: none; 
  padding: 0; 
  margin: 0; 
}
.footer li { 
  margin-bottom: var(--space-2); 
}
.footer .social-links { 
  display: flex; 
  gap: var(--space-3); 
  margin-top: var(--space-3); 
}
.footer .social-links a { 
  display: inline-flex; 
  align-items: center; 
  justify-content: center; 
  width: 40px; 
  height: 40px; 
  background: rgba(255, 215, 0, 0.1); 
  border-radius: 50%; 
  transition: all 0.3s ease; 
}
.footer .social-links a:hover { 
  background: var(--gold-primary); 
  color: var(--black-primary); 
  transform: translateY(-2px); 
}
.footer-bottom { 
  margin-top: var(--space-6); 
  text-align: center; 
  color: var(--gray-medium);
  padding-top: var(--space-4);
  border-top: 1px solid var(--black-light);
}

/* Footer responsive styles */
@media (max-width: 768px) {
  .footer-content { 
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); 
    gap: var(--space-4); 
  }
  .footer-section { 
    text-align: center; 
  }
  .footer .social-links { 
    justify-content: center; 
  }
}

@media (max-width: 480px) {
  .footer-content { 
    grid-template-columns: 1fr; 
    gap: var(--space-5); 
  }
  .footer-section { 
    margin-bottom: var(--space-5); 
  }
}

/* RTL */
[dir="rtl"] .btn i { margin-right: .4rem; margin-left: 0; }
[dir="rtl"] .service-meta { flex-direction: row-reverse; }
[dir="rtl"] .nav-brand i { margin-right: .25rem; }

/* ---------- Common Page Blocks ---------- */
.page-header { margin: var(--space-8) 0 var(--space-6); }
.page-header h1 { margin: 0 0 var(--space-2); font-weight: 800; }
.page-header p { 
    margin: var(--space-2) 0 0; 
    color: var(--color-text); 
    font-size: 1.1rem; 
    line-height: 1.6;
    opacity: 0.9;
    font-weight: 500;
    letter-spacing: 0.025em;
    text-shadow: 0 1px 2px rgba(0,0,0,0.05);
}

/* Dark theme support for page header paragraph */
[data-theme="dark"] .page-header p {
    color: var(--color-muted);
    opacity: 0.8;
}

/* Regions */
.regions-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: var(--space-6); }
.region-card { background: var(--color-surface); border: 1px solid var(--color-border); border-radius: var(--radius-md); padding: var(--space-5); box-shadow: 0 2px 6px rgba(2,8,23,.06); }
.region-card .region-stats { display: flex; gap: var(--space-4); color: var(--color-muted); margin-top: var(--space-3); }
.region-card .stat { display: inline-flex; align-items: center; gap: var(--space-2); }

/* ---------- Auth ---------- */
.auth-container { display: grid; place-items: center; min-height: calc(100vh - 140px); padding: var(--space-8) 0; }
.auth-card { width: min(520px, 100% - 40px); background: var(--color-surface); border: 1px solid var(--color-border); border-radius: var(--radius-lg); box-shadow: 0 16px 40px rgba(2,8,23,.08); padding: var(--space-6); }
.auth-card .auth-header { text-align: center; margin-bottom: var(--space-6); }
.auth-form .form-group { margin-bottom: var(--space-5); }
.input-group { display: flex; align-items: center; gap: var(--space-3); border: 1px solid var(--color-border); border-radius: var(--radius-sm); padding: .5rem .75rem; background: #fff; }
.input-group i { color: var(--color-muted); }
.input-group input { border: none; outline: none; width: 100%; font: inherit; }
.password-toggle { background: transparent; border: none; color: var(--color-muted); cursor: pointer; display: inline-flex; align-items: center; }
.btn-full { width: 100%; }
.error-message { color: #b91c1c; font-size: .875rem; margin-top: .375rem; display: inline-block; }

/* ---------- Calendar (booking) ---------- */
.calendar-container { background: var(--color-surface); border: 1px solid var(--color-border); border-radius: var(--radius-md); overflow: hidden; }
.calendar-header { display: flex; align-items: center; justify-content: space-between; padding: var(--space-4); border-bottom: 1px solid var(--color-border); }
.calendar-nav { background: var(--color-surface); border: 1px solid var(--color-border); border-radius: var(--radius-sm); padding: .375rem .625rem; cursor: pointer; }
.calendar-grid { padding: var(--space-4); }
.calendar-weekdays { display: grid; grid-template-columns: repeat(7, 1fr); gap: var(--space-2); color: var(--color-muted); font-weight: 800; text-align: center; margin-bottom: var(--space-2); }
.calendar-days { display: grid; grid-template-columns: repeat(7, 1fr); gap: var(--space-2); }
.calendar-day { aspect-ratio: 1 / 1; display: grid; place-items: center; border: 1px solid var(--color-border); border-radius: var(--radius-sm); background: #fff; cursor: pointer; user-select: none; }
.calendar-day:hover { border-color: var(--color-primary); }
.calendar-day.selected { outline: 3px solid rgba(14,165,233,.2); border-color: var(--color-primary); font-weight: 800; }
.calendar-day.disabled, .calendar-day.other-month { opacity: .45; cursor: default; }
.calendar-day.off { background: #fee2e2; border-color: #ef4444; color: #7f1d1d; }
.calendar-day.today { box-shadow: inset 0 0 0 2px var(--color-accent); }

/* ---------- Tables helpers (public pages) ---------- */
.table-wrapper { overflow-x: auto; background: var(--color-surface); border: 1px solid var(--color-border); border-radius: var(--radius-sm); }

/* ---------- Booking page blocks ---------- */
.booking-container { padding: var(--space-12) 0; }
.booking-form { background: var(--color-surface); border: 1px solid var(--color-border); border-radius: var(--radius-lg); box-shadow: 0 16px 40px rgba(2,8,23,.06); padding: var(--space-6); }
.booking-header { text-align: center; margin-bottom: var(--space-6); }
.booking-header h1 { margin: 0 0 var(--space-2); font-weight: 800; }
.barber-summary { background: var(--light-color); border: 1px solid var(--color-border); border-radius: var(--radius-md); padding: var(--space-4); margin-bottom: var(--space-6); }
.barber-info { display: flex; align-items: center; gap: var(--space-4); }
.barber-info img { width: 56px; height: 56px; border-radius: 50%; object-fit: cover; }
.barber-placeholder { width: 56px; height: 56px; display: grid; place-items: center; border-radius: 50%; background: #e2e8f0; color: #475569; }
.booking-form-content textarea { min-height: 120px; }
.datetime-selection { display: grid; grid-template-columns: 1.2fr .8fr; gap: var(--space-6); }
@media (max-width: 992px) { .datetime-selection { grid-template-columns: 1fr; } }
.time-slots-container { background: var(--color-surface); border: 1px solid var(--color-border); border-radius: var(--radius-md); padding: var(--space-4); }

/* Time slots */
.time-slots { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: var(--space-3); }
.time-slot { background: var(--light-color); border-radius: var(--radius-md); padding: var(--space-4); border: 1px solid var(--color-border); cursor: pointer; transition: .2s ease; }
.time-slot:not(.disabled):hover { border-color: var(--color-primary); box-shadow: 0 8px 20px rgba(2,8,23,.06); transform: translateY(-2px); }
.time-slot.selected { background: var(--color-primary); color: #fff; border-color: var(--color-primary); }
.time-slot.disabled { opacity: .6; cursor: not-allowed; background: #f1f5f9; }
.time-slot-content { display: grid; gap: var(--space-2); }
.time-label, .duration-label { display: inline-flex; align-items: center; gap: var(--space-2); }
.time-label i { color: var(--color-primary); }
.time-slot.selected .time-label i, .time-slot.selected .duration-label i { color: #fff; }
.unavailable-label { text-align: center; color: #b91c1c; font-size: .875rem; margin-top: .25rem; }

/* Service radio options */
.services-selection { display: grid; gap: var(--space-3); }
.service-option { border: 1px solid var(--color-border); border-radius: var(--radius-md); overflow: hidden; transition: .2s ease; background: #fff; }
.service-option:hover { transform: translateY(-2px); box-shadow: 0 8px 20px rgba(2,8,23,.06); border-color: var(--color-primary); }
.service-option input[type="radio"] { display: none; }
.service-option label { display: block; padding: var(--space-5); cursor: pointer; margin: 0; }
.service-option input[type="radio"]:checked + label { background: #f0f9ff; }
.service-option-content { display: flex; align-items: flex-start; gap: var(--space-4); }
.service-icon { width: 50px; height: 50px; background: #fff; border: 1px solid var(--color-border); border-radius: var(--radius-md); display: grid; place-items: center; color: var(--color-primary); flex-shrink: 0; box-shadow: 0 2px 5px rgba(2,8,23,.06); }
.service-details h4 { margin: 0 0 .25rem; }
.service-details p { color: var(--color-muted); margin: 0 0 .5rem; font-size: .95rem; line-height: 1.6; }
.service-meta { display: flex; gap: var(--space-4); color: var(--color-muted); font-size: .9rem; }
.service-meta i { color: var(--color-primary); }

/* Small buttons */
.btn-sm { padding: .25rem .5rem; font-size: .875rem; border-radius: var(--radius-sm); }




/* ---------------- Theme Toggle Button ---------------- */
.theme-toggle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 999px;
  border: 2px solid var(--gold-primary);
  background: linear-gradient(135deg, var(--color-surface) 0%, var(--gold-light) 100%);
  color: var(--gold-primary);
  cursor: pointer;
  transition: all 0.3s ease;
  box-shadow: 0 4px 12px rgba(212, 175, 55, 0.2);
}
.theme-toggle:hover { 
  border-color: var(--gold-accent);
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(212, 175, 55, 0.3);
}
.theme-toggle i { 
  pointer-events: none;
  font-size: 1.1em;
}

/* ---------------- Dark Theme ---------------- */
[data-theme="dark"] {
  color-scheme: dark;
  --gold-primary: #ffd700;
  --gold-light: #2a2a2a;
  --gold-dark: #ffed4e;
  --gold-accent: #fff200;
  --black-primary: #1a1a1a;
  --black-light: #2d2d2d;
  --black-dark: #000000;
  --gray-light: #2a2a2a;
  --gray-medium: #a0a0a0;
  --gray-dark: #666666;
  --color-primary: var(--gold-primary);
  --color-primary-600: var(--gold-dark);
  --color-accent: var(--gold-accent);
  --color-bg: var(--black-primary);
  --color-surface: var(--black-light);
  --color-border: var(--gray-dark);
  --color-muted: var(--gray-medium);
  --color-text: #e5e7eb;
  --light-color: var(--gray-light);
}

[data-theme="dark"] body { 
  background: linear-gradient(135deg, var(--color-bg) 0%, var(--black-light) 100%);
  color: var(--color-text); 
}
[data-theme="dark"] .navbar { 
  background: linear-gradient(135deg, var(--color-surface) 0%, var(--black-light) 100%);
  border-color: var(--gold-primary);
  width: 100vw;
  margin-left: calc(-50vw + 50%);
}
[data-theme="dark"] .nav-link { color: var(--color-text); }
[data-theme="dark"] .nav-link:hover { color: var(--gold-primary); background: rgba(255, 215, 0, 0.1); }
[data-theme="dark"] .nav-menu.active { 
  background: linear-gradient(135deg, var(--color-surface) 0%, var(--black-light) 100%);
  border-color: var(--gold-primary);
}
[data-theme="dark"] .card { 
  background: linear-gradient(135deg, var(--color-surface) 0%, var(--black-light) 100%);
  border-color: var(--gold-primary);
}
[data-theme="dark"] .service-card { 
  background: linear-gradient(135deg, var(--color-surface) 0%, var(--black-light) 100%);
  border-color: var(--gold-primary);
}
[data-theme="dark"] .service-icon { 
  background: var(--black-primary); 
  border-color: var(--gold-primary); 
  color: var(--gold-primary); 
}
[data-theme="dark"] .btn-outline { 
  border-color: var(--gold-primary); 
  color: var(--gold-primary); 
}
[data-theme="dark"] .btn-outline:hover { 
  background: var(--gold-primary);
  color: var(--black-primary);
  border-color: var(--gold-primary);
}
[data-theme="dark"] .alert { 
  background: rgba(255, 215, 0, 0.1); 
  border-color: var(--gold-primary); 
}
[data-theme="dark"] .footer { 
  background: linear-gradient(135deg, var(--black-primary) 0%, var(--black-light) 100%);
  border-top-color: var(--gold-primary);
}

/* Public pages specific blocks that used fixed colors */
[data-theme="dark"] .form-section,
[data-theme="dark"] .calendar-container,
[data-theme="dark"] .time-slots-container,
[data-theme="dark"] .booking-summary {
  background: linear-gradient(135deg, var(--color-surface) 0%, var(--black-light) 100%);
  border-color: var(--gold-primary);
  color: var(--color-text);
}
[data-theme="dark"] .time-slot { 
  background: var(--black-primary); 
  border-color: var(--gold-primary);
}
[data-theme="dark"] .time-slot.selected { 
  background: linear-gradient(135deg, var(--gold-primary) 0%, var(--gold-dark) 100%);
  color: var(--black-primary);
  border-color: var(--gold-primary);
}
[data-theme="dark"] .service-option { 
  border-color: var(--gold-primary); 
  background: linear-gradient(135deg, var(--color-surface) 0%, var(--black-light) 100%);
}
[data-theme="dark"] .service-option input[type="radio"]:checked + label { 
  background: rgba(255, 215, 0, 0.1);
}
[data-theme="dark"] .service-option label { color: var(--color-text); }
[data-theme="dark"] .region-card { 
  background: linear-gradient(135deg, var(--color-surface) 0%, var(--black-light) 100%);
  border-color: var(--gold-primary);
}
[data-theme="dark"] .nearest-card { 
  background: linear-gradient(135deg, var(--color-surface) 0%, var(--black-light) 100%);
  border-color: var(--gold-primary);
}
[data-theme="dark"] .empty-state { 
  background: linear-gradient(135deg, var(--color-surface) 0%, var(--black-light) 100%);
  border-color: var(--gold-primary);
}
[data-theme="dark"] a { color: inherit; }

/* ---------------- Client Bookings (public) ---------------- */
.client-bookings { 
  margin-top: 16px; 
  margin-bottom: var(--space-12);
}
@media (min-width: 768px) { .client-bookings { margin-top: 24px; } }
.client-bookings .card-block { background: #fff; border: 1px solid var(--color-border); border-radius: 12px; overflow: hidden; box-shadow: 0 1px 2px rgba(0,0,0,.06); }
.client-bookings .card-block-header { background: #fafafa; padding: 12px 16px; border-bottom: 1px solid var(--color-border); }
.client-bookings .card-block-body { padding: 0; }
.client-bookings .table-wrapper { width: 100%; overflow-x: auto; }
.client-bookings .table { margin: 0; }
.client-bookings .table thead th { background: #fafafa; color: var(--black-primary); font-weight: 700; text-align: start; padding: .75rem; border-bottom: 1px solid var(--color-border); white-space: nowrap; }
.client-bookings .table tbody td { padding: .75rem; border-bottom: 1px solid var(--color-border); vertical-align: middle; white-space: nowrap; }
.client-bookings .table tbody tr:hover { background: #fcfcfc; }
.client-bookings .table-pagination { padding: 12px 16px; }
.client-bookings .rate-form { display: inline-flex; gap: 6px; align-items: center; }
.client-bookings .rate-select { border: 1px solid var(--color-border); border-radius: 6px; padding: 4px 8px; background: #fff; }
.client-bookings .rating-badge { display: inline-block; padding: 4px 8px; border-radius: 999px; background: #eef2ff; color: #3730a3; border: 1px solid #c7d2fe; font-weight: 700; }

/* Links styling to match identity */
.client-bookings a { color: var(--gold-primary); text-decoration: none; font-weight: 700; transition: color .2s ease; }
.client-bookings a:hover { color: var(--gold-dark); text-decoration: underline; }
.client-bookings a:focus-visible { outline: 2px solid var(--gold-primary); outline-offset: 2px; border-radius: 4px; }
[data-theme="dark"] .client-bookings a { color: var(--gold-accent); }
[data-theme="dark"] .client-bookings a:hover { color: var(--gold-primary); }

/* Auth footer link consistent styling */
.auth-footer a { color: var(--gold-primary); font-weight: 700; text-decoration: none; }
.auth-footer a:hover { color: var(--gold-dark); text-decoration: underline; }
[data-theme="dark"] .auth-footer a { color: var(--gold-accent); }
[data-theme="dark"] .auth-footer a:hover { color: var(--gold-primary); }

/* Dark */
[data-theme="dark"] .client-bookings .card-block { background: var(--black-light); border-color: var(--black-primary); }
[data-theme="dark"] .client-bookings .card-block-header { background: var(--black-primary); border-bottom-color: var(--black-primary); }
[data-theme="dark"] .client-bookings .table thead th { background: var(--black-primary); color: var(--gold-primary); border-bottom-color: var(--black-primary); }
[data-theme="dark"] .client-bookings .table tbody td { color: #e5e7eb; border-bottom-color: var(--black-primary); }
[data-theme="dark"] .client-bookings .table tbody tr:hover { background: rgba(255,255,255,0.04); }
[data-theme="dark"] .client-bookings .rate-select { background: var(--black-primary); color: #f3f4f6; border-color: var(--black-primary); }
[data-theme="dark"] .client-bookings .rating-badge { background: rgba(59,130,246,.12); color: #93c5fd; border-color: rgba(59,130,246,.35); }

@media (max-width: 768px) {
  .client-bookings .table thead { display: none; }
  .client-bookings .table tbody td { display: block; width: 100%; text-align: start; padding: 8px 12px; }
  .client-bookings .table tbody tr { display: grid; grid-template-columns: 1fr; border-bottom: 1px solid var(--color-border); }
  .client-bookings .table tbody td::before { content: attr(data-label); display: inline-block; min-width: 90px; color: var(--gray-medium); margin-inline-end: 8px; }
}
/* ---------------- Barber Dashboard (flat identity) ---------------- */
.barber-dashboard .tab-nav { display: flex; align-items: center; gap: 8px; background: #fff; border: 1px solid var(--color-border); border-radius: 12px; padding: 8px; margin: 16px 0 20px; overflow-x: auto; -ms-overflow-style: none; scrollbar-width: none; box-shadow: 0 1px 2px rgba(0,0,0,.06); }
.barber-dashboard .tab-nav::-webkit-scrollbar { display: none; }
.barber-dashboard .tab-btn { white-space: nowrap; appearance: none; background: #fff; color: var(--black-primary); border: 1px solid var(--color-border); padding: 10px 14px; border-radius: 10px; font-weight: 700; transition: background-color .2s ease, color .2s ease, border-color .2s ease; }
.barber-dashboard .tab-btn:hover { background: #fff7e6; border-color: var(--gold-primary); color: var(--gold-primary); }
.barber-dashboard .tab-btn.active { background: var(--gold-primary); color: #fff; border-color: var(--gold-primary); }
.barber-dashboard [data-tab-panel] { display: none; }
.barber-dashboard [data-tab-panel].active { display: block; }

.barber-dashboard .services-section .service-item { overflow: hidden; }
.barber-dashboard .services-section .service-price { display: grid; grid-template-columns: auto minmax(100px,140px) auto minmax(100px,140px); gap: 12px; align-items: center; width: 100%; }
.barber-dashboard .services-section .service-price input[type="number"] { width: 100%; max-width: 140px; }
@media (max-width: 640px) { .barber-dashboard .services-section .service-price { grid-template-columns: auto 1fr; } }

.barber-dashboard .gallery-section .gallery-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(180px, 1fr)); gap: 16px; }
.barber-dashboard .gallery-section .gallery-item { position: relative; border: 1px solid var(--color-border); border-radius: 12px; overflow: hidden; background: #fff; box-shadow: 0 1px 2px rgba(0,0,0,0.04); transition: transform .2s ease, box-shadow .2s ease; }
.barber-dashboard .gallery-section .gallery-item:hover { transform: translateY(-2px); box-shadow: 0 6px 18px rgba(0,0,0,0.08); }
.barber-dashboard .gallery-section .gallery-preview { aspect-ratio: 1 / 1; background: #f3f4f6; }
.barber-dashboard .gallery-section .gallery-preview .media { width: 100%; height: 100%; object-fit: cover; display: block; }
.barber-dashboard .gallery-section .media-badge { position: absolute; top: 8px; right: 8px; font-size: 12px; line-height: 1; padding: 6px 8px; border-radius: 999px; color: #fff; background: rgba(17, 24, 39, 0.6); display: inline-flex; align-items: center; gap: 6px; }
.barber-dashboard .gallery-section .gallery-actions { position: absolute; inset: 0; display: flex; align-items: flex-end; justify-content: flex-end; padding: 10px; background: linear-gradient(to top, rgba(17,24,39,0.35), rgba(17,24,39,0)); opacity: 0; transition: opacity .2s ease; pointer-events: none; }
.barber-dashboard .gallery-section .gallery-item:hover .gallery-actions { opacity: 1; pointer-events: auto; }
.barber-dashboard .gallery-section .gallery-actions .btn { background: rgba(255,255,255,0.95); color: #111827; border: 1px solid var(--color-border); backdrop-filter: saturate(1.2); }

.barber-dashboard .working-hours { margin-top: 24px; }
.barber-dashboard .working-hours .working-grid { display: grid; grid-template-columns: 1fr; gap: 8px; }
.barber-dashboard .working-hours .working-row { display: grid; grid-template-columns: 120px 140px 1fr auto 1fr; align-items: center; gap: 12px; padding: 10px 12px; border: 1px solid var(--color-border); border-radius: 8px; background: #fff; }
.barber-dashboard .working-hours .day-label { font-weight: 600; }
.barber-dashboard .working-hours .switch { display: inline-flex; align-items: center; gap: 8px; }
.barber-dashboard .working-hours input[type="time"] { max-width: 140px; }

.barber-dashboard .modal-overlay { position: fixed; inset: 0; background: rgba(17, 24, 39, 0.5); display: none; align-items: center; justify-content: center; z-index: 1000; }
.barber-dashboard .modal-overlay[aria-hidden="false"] { display: flex; }
.barber-dashboard .modal-dialog { width: min(720px, 92vw); background: #fff; border-radius: 12px; box-shadow: 0 10px 30px rgba(0,0,0,0.15); overflow: hidden; }
.barber-dashboard .day-bookings-modal .day-bookings-header { display: flex; align-items: center; justify-content: space-between; padding: 16px 18px; border-bottom: 1px solid var(--color-border); }
.barber-dashboard .day-bookings-modal .day-bookings-list { max-height: 60vh; overflow: auto; padding: 16px 18px; }

.barber-dashboard .bookings-table table { width: 100%; border-collapse: collapse; }
.barber-dashboard .bookings-table thead th { background: #fafafa; color: var(--black-primary); font-weight: 700; text-align: start; padding: .75rem; border-bottom: 1px solid var(--color-border); }
.barber-dashboard .bookings-table tbody td { padding: .75rem; border-bottom: 1px solid var(--color-border); vertical-align: middle; }
.barber-dashboard .bookings-table tbody tr:hover { background: #fcfcfc; }
.barber-dashboard .bookings-table { overflow-x: auto; }
.barber-dashboard .bookings-table table { min-width: 720px; }

/* Dark mode – align barber dashboard with index identity */
[data-theme="dark"] .barber-dashboard .tab-nav { background: var(--black-primary); border-color: var(--black-primary); box-shadow: none; }
[data-theme="dark"] .barber-dashboard .tab-btn { background: transparent; color: var(--gold-primary); border-color: var(--black-primary); }
[data-theme="dark"] .barber-dashboard .tab-btn:hover { background: var(--black-light); border-color: var(--gold-primary); color: var(--gold-accent); }
[data-theme="dark"] .barber-dashboard .tab-btn.active { background: var(--gold-primary); color: #000; border-color: var(--gold-primary); }

[data-theme="dark"] .barber-dashboard .services-section .service-item,
[data-theme="dark"] .barber-dashboard .working-hours .working-row,
[data-theme="dark"] .barber-dashboard .gallery-section .gallery-item { background: var(--black-light); border-color: var(--black-primary); }
[data-theme="dark"] .barber-dashboard .working-hours .day-label { color: var(--gold-primary); }
[data-theme="dark"] .barber-dashboard .working-hours .switch { color: #e5e7eb; }
[data-theme="dark"] .barber-dashboard .working-hours input[type="time"] {
  background: var(--black-primary);
  color: #f3f4f6;
  border-color: var(--black-primary);
  caret-color: #f3f4f6;
}
[data-theme="dark"] .barber-dashboard .working-hours input[type="time"]:focus {
  outline: none;
  box-shadow: 0 0 0 3px rgba(212, 175, 55, 0.2);
  border-color: var(--gold-primary);
}
[data-theme="dark"] .barber-dashboard .gallery-section .gallery-preview { background: var(--black-primary); }
[data-theme="dark"] .barber-dashboard .gallery-section .media-badge { background: rgba(255,255,255,0.12); color: #e5e7eb; }

/* Inputs readability in dark mode (desktop and mobile) */
[data-theme="dark"] .barber-dashboard .services-section .service-price input[type="number"] {
  color: #f3f4f6;
  background: var(--black-primary);
  border-color: var(--black-primary);
  caret-color: #f3f4f6;
}
[data-theme="dark"] .barber-dashboard .services-section .service-price input[type="number"]::placeholder {
  color: #9ca3af;
}

[data-theme="dark"] .barber-dashboard .modal-dialog { background: var(--black-light); color: var(--gold-primary); }
[data-theme="dark"] .barber-dashboard .day-bookings-modal .day-bookings-header { border-bottom-color: var(--black-primary); }

[data-theme="dark"] .barber-dashboard .bookings-table { background: var(--black-light); border-color: var(--black-primary); }
[data-theme="dark"] .barber-dashboard .bookings-table thead th { background: var(--black-primary); color: var(--gold-primary); border-bottom-color: var(--black-primary); }
[data-theme="dark"] .barber-dashboard .bookings-table tbody td { border-bottom-color: var(--black-primary); color: #e5e7eb; }
[data-theme="dark"] .barber-dashboard .bookings-table tbody tr:hover { background: rgba(255,255,255,0.04); }

/* ---------------- Public Barber Profile (flat identity) ---------------- */
.barber-profile-container { padding: 24px 0; }
.barber-profile .barber-header { display: flex; align-items: stretch; gap: 16px; background: #fff; border: 1px solid var(--color-border); border-radius: 12px; padding: 16px; box-shadow: 0 1px 2px rgba(0,0,0,.06); }
.barber-profile .barber-image { width: 140px; height: 140px; flex-shrink: 0; }
.barber-profile .barber-image img { width: 100%; height: 100%; object-fit: cover; border-radius: 12px; border: 1px solid var(--color-border); }
.barber-profile .barber-info { display: flex; flex-direction: column; align-items: flex-start; gap: 6px; }
.barber-profile .barber-info h1 { margin: 0 0 6px; font-size: 1.5rem; font-weight: 800; color: var(--black-primary); }
.barber-profile .barber-info h1 { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.barber-profile .barber-rating { display: flex; align-items: center; gap: 6px; color: var(--gray-medium); margin-bottom: 8px; flex-wrap: wrap; width: 100%; }
.barber-profile .barber-rating .filled { color: var(--gold-primary); }
.barber-profile .barber-rating span { display: inline-block; margin-inline-start: 6px; }
.barber-profile .barber-bio { margin: 6px 0 10px; color: var(--gray-medium); }
.barber-profile .chips { display: flex; flex-wrap: wrap; gap: 8px; }
.barber-profile .chip { display: inline-flex; align-items: center; gap: 6px; padding: 6px 10px; border: 1px solid var(--color-border); border-radius: 999px; background: #fafafa; color: var(--black-primary); font-weight: 600; max-width: 100%; }
.barber-profile .chip i { margin-inline-end: 6px; }

.barber-profile .barber-sections { margin-top: 20px; display: grid; gap: 20px; }
.barber-profile .section-title h2 { margin: 0 0 4px; font-size: 1.25rem; font-weight: 800; }
.barber-profile .section-title p { margin: 0; color: var(--gray-medium); }

/* Services */
.barber-profile .section-card { background: #fff; border: 1px solid var(--color-border); border-radius: 12px; padding: 14px; box-shadow: 0 1px 2px rgba(0,0,0,.06); }
.barber-profile .services-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 16px; }
.barber-profile .service-card { background: #fff; border: 1px solid var(--color-border); border-radius: 12px; padding: 14px; display: grid; grid-template-columns: 48px 1fr; gap: 12px; box-shadow: 0 1px 2px rgba(0,0,0,.06); }
.barber-profile .service-icon { width: 48px; height: 48px; border-radius: 10px; display: grid; place-items: center; background: #fff7e6; color: var(--gold-primary); border: 1px solid var(--gold-primary); }
.barber-profile .service-info h3 { margin: 0 0 6px; font-size: 1.05rem; font-weight: 700; }
.barber-profile .service-info p { margin: 0 0 10px; color: var(--gray-medium); font-size: .95rem; }
.barber-profile .service-meta { display: flex; align-items: center; gap: 10px; }
.barber-profile .service-meta .duration, .barber-profile .service-meta .price { display: inline-flex; align-items: center; gap: 6px; padding: 4px 8px; border-radius: 999px; background: #fafafa; border: 1px solid var(--color-border); color: var(--black-primary); font-weight: 600; font-size: .9rem; }

/* Gallery */
.barber-profile .barber-gallery .gallery-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(180px, 1fr)); gap: 12px; }
.barber-profile .barber-gallery .gallery-item { display: block; border: 1px solid var(--color-border); border-radius: 12px; overflow: hidden; background: #fff; box-shadow: 0 1px 2px rgba(0,0,0,.04); transition: transform .2s ease, box-shadow .2s ease; }
.barber-profile .barber-gallery .gallery-item:hover { transform: translateY(-2px); box-shadow: 0 6px 18px rgba(0,0,0,0.08); }
.barber-profile .barber-gallery .gallery-item img { width: 100%; height: 180px; object-fit: cover; display: block; }
.barber-profile .barber-gallery .gallery-item.video::after { content: "فيديو"; position: absolute; inset-inline-end: 8px; inset-block-start: 8px; background: rgba(0,0,0,.6); color: #fff; padding: 2px 6px; border-radius: 999px; font-size: 12px; }

/* Recent bookings */
.barber-profile .recent-bookings { background: #fff; border: 1px solid var(--color-border); border-radius: 12px; padding: 14px; box-shadow: 0 1px 2px rgba(0,0,0,.06); }
.barber-profile .recent-bookings h2 { margin: 0 0 10px; font-size: 1.1rem; font-weight: 800; }
.barber-profile .bookings-list { display: grid; gap: 10px; }
.barber-profile .booking-item { display: grid; grid-template-columns: 1fr auto; align-items: center; gap: 10px; padding: 10px; border: 1px solid var(--color-border); border-radius: 10px; }
.barber-profile .booking-info h4 { margin: 0 0 4px; font-size: 1rem; font-weight: 700; }
.barber-profile .booking-info p { margin: 0; color: var(--gray-medium); }
.barber-profile .booking-date { color: var(--gray-medium); font-weight: 600; }

/* Actions */
.barber-profile .barber-actions { margin-top: 16px; display: flex; justify-content: center; }
.barber-profile .btn-large { padding: .75rem 1.25rem; font-size: 1rem; border-radius: 10px; }

@media (max-width: 768px) {
  .barber-profile .barber-header { flex-direction: column; align-items: flex-start; }
  .barber-profile .barber-header { padding: 12px; gap: 12px; }
  .barber-profile .barber-image { width: 120px; height: 120px; margin-inline: auto; }
  .barber-profile .barber-image img { width: 100%; height: 100%; border-radius: 50%; }
  .barber-profile .barber-info { text-align: center; width: 100%; display: flex; flex-direction: column; align-items: center; gap: 6px; }
  .barber-profile .barber-info h1 { font-size: 1.25rem; }
  .barber-profile .barber-info h1 { white-space: nowrap; }
  .barber-profile .barber-rating { justify-content: center; gap: 4px; margin: 2px 0 8px; }
  .barber-profile .barber-rating i { font-size: .9rem; }
  .barber-profile .barber-rating span { font-size: .85rem; }
  .barber-profile .chips { display: grid; grid-template-columns: 1fr; gap: 6px; width: 100%; }
  .barber-profile .chip { width: 80%; font-size: .8rem; padding: 6px 8px; justify-content: center; text-align: center; white-space: normal; line-height: 1.25; word-break: break-word; }
  .barber-profile .section-title { text-align: center; }
  .barber-profile .service-card { grid-template-columns: 40px 1fr; }
  .barber-profile .service-icon { width: 40px; height: 40px; }
  .barber-profile .services-grid { grid-template-columns: 1fr; }
  .barber-profile .barber-gallery .gallery-item img { height: 140px; }
}

/* Mobile inputs readability (dark theme) */
@media (max-width: 768px) {
  [data-theme="dark"] .barber-dashboard .services-section .service-price input[type="number"] {
    color: #f3f4f6;
    background: var(--black-primary);
    border-color: var(--black-primary);
    caret-color: #f3f4f6;
  }
  [data-theme="dark"] .barber-dashboard .services-section .service-price input[type="number"]::placeholder {
    color: #9ca3af;
  }
}

@media (max-width: 360px) {
  .barber-profile .chips { grid-template-columns: 1fr; }
}

/* Mobile tweaks for barber dashboard */
@media (max-width: 768px) {
  .barber-dashboard .working-hours .working-row { grid-template-columns: 1fr 1fr; grid-auto-rows: auto; gap: 8px; }
  .barber-dashboard .working-hours .day-label { grid-column: 1 / -1; }
  .barber-dashboard .working-hours .switch { justify-self: start; }
  .barber-dashboard .working-hours input[type="time"] { max-width: 100%; }
  .barber-dashboard .services-section .service-price { grid-template-columns: auto 1fr; }
  .barber-dashboard .gallery-section .gallery-grid { grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); }
}
/* Admin dashboard styles moved to admin.css */

/* Admin dashboard styles moved to admin.css */

/* Admin dashboard styles moved to admin.css */

/* Profile Form */
.profile-form { 
  background: linear-gradient(135deg, var(--color-surface) 0%, var(--gold-light) 100%);
  border: 2px solid var(--gold-primary);
  border-radius: var(--radius-lg);
  padding: var(--space-6);
  box-shadow: 0 8px 25px rgba(212, 175, 55, 0.15);
}
.image-upload-container { 
  margin-top: var(--space-2);
}
.current-image { 
  margin-bottom: var(--space-4);
}
.current-image img { 
  width: 120px; 
  height: 120px; 
  border-radius: 50%; 
  object-fit: cover;
  border: 3px solid var(--gold-primary);
  box-shadow: 0 4px 15px rgba(212, 175, 55, 0.3);
}

/* Admin dashboard styles moved to admin.css */
.barber-info { 
  display: flex; 
  align-items: center; 
  gap: var(--space-3);
}
.barber-avatar { 
  width: 40px; 
  height: 40px; 
  border-radius: 50%; 
  object-fit: cover;
  border: 2px solid var(--gold-primary);
}
.barber-details h4 { 
  margin: 0; 
  font-weight: 700;
  color: var(--black-primary);
}
.barber-details p { 
  margin: 0; 
  color: var(--gray-medium);
  font-size: 0.875rem;
}

/* Rating Stars */
.rating-stars { 
  display: flex; 
  gap: 2px;
}
.star { 
  color: var(--gold-primary); 
  font-size: 0.875rem;
}
.star.empty { 
  color: var(--gray-light);
}

/* Status Badges */
.status-badge { 
  padding: 4px 12px; 
  border-radius: 999px; 
  font-weight: 700; 
  font-size: 0.875rem;
  display: inline-block;
}
.status-active { 
  background: rgba(16, 185, 129, 0.15); 
  color: #065f46;
  border: 1px solid rgba(16, 185, 129, 0.3);
}
.status-inactive { 
  background: rgba(239, 68, 68, 0.15); 
  color: #7f1d1d;
  border: 1px solid rgba(239, 68, 68, 0.3);
}
.status-pending { 
  background: rgba(245, 158, 11, 0.15); 
  color: #92400e;
  border: 1px solid rgba(245, 158, 11, 0.3);
}

/* Action Buttons */
.action-buttons { 
  display: flex; 
  gap: var(--space-2);
}
.btn-sm { 
  padding: 6px 12px; 
  font-size: 0.875rem; 
  border-radius: var(--radius-sm);
}

/* Modal Styles */
.modal-content { 
  background: linear-gradient(135deg, var(--color-surface) 0%, var(--gold-light) 100%);
  border: 2px solid var(--gold-primary);
  border-radius: var(--radius-lg);
  box-shadow: 0 20px 40px rgba(212, 175, 55, 0.3);
}
.modal-header { 
  border-bottom: 1px solid var(--gold-light);
  padding: var(--space-4) var(--space-6);
}
.modal-title { 
  color: var(--black-primary);
  font-weight: 700;
}
.modal-body { 
  padding: var(--space-6);
}
.modal-footer { 
  border-top: 1px solid var(--gold-light);
  padding: var(--space-4) var(--space-6);
}

/* Form Grid */
.form-grid { 
  display: grid; 
  grid-template-columns: repeat(6, 1fr); 
  gap: var(--space-4);
}
.col-6 { 
  grid-column: span 3;
}
.col-12 { 
  grid-column: span 6;
}
@media (max-width: 768px) {
  .form-grid { 
    grid-template-columns: 1fr; 
  }
  .col-6, .col-12 { 
    grid-column: span 1;
  }
}

/* Loading States */
.loading-spinner { 
  display: inline-block; 
  width: 20px; 
  height: 20px; 
  border: 2px solid var(--gold-light);
  border-radius: 50%; 
  border-top-color: var(--gold-primary);
  animation: spin 1s ease-in-out infinite;
}
@keyframes spin { 
  to { transform: rotate(360deg); }
}

/* Empty States */
.empty-state { 
  text-align: center; 
  padding: var(--space-8);
  color: var(--gray-medium);
}
.empty-state i { 
  font-size: 3rem; 
  margin-bottom: var(--space-4);
  color: var(--gold-primary);
}
.empty-state h3 { 
  margin: 0 0 var(--space-2); 
  color: var(--black-primary);
  font-weight: 700;
}
.empty-state p { 
  margin: 0; 
  color: var(--gray-medium);
}

/* Pagination */
.pagination { 
  display: flex; 
  justify-content: center; 
  gap: var(--space-2);
  margin-top: var(--space-6);
}
.page-link { 
  padding: 8px 12px; 
  border: 2px solid var(--gold-primary);
  background: transparent;
  color: var(--gold-primary);
  border-radius: var(--radius-sm);
  text-decoration: none;
  font-weight: 600;
  transition: all 0.3s ease;
}
.page-link:hover { 
  background: var(--gold-primary);
  color: white;
  transform: translateY(-2px);
}
.page-link.active { 
  background: linear-gradient(135deg, var(--gold-primary) 0%, var(--gold-dark) 100%);
  color: white;
  border-color: var(--gold-primary);
}

/* Admin dashboard styles are defined exclusively in admin.css */

/* ---------------- Booking Page Styles ---------------- */
.booking-container { 
  padding: var(--space-12) 0; 
  background: linear-gradient(135deg, var(--color-bg) 0%, #ffffff 100%);
}
.booking-form { 
  background: linear-gradient(135deg, var(--color-surface) 0%, var(--gold-light) 100%);
  border: 2px solid var(--gold-primary);
  border-radius: var(--radius-lg);
  box-shadow: 0 16px 40px rgba(212, 175, 55, 0.15);
  padding: var(--space-6);
}
.booking-header { 
  text-align: center; 
  margin-bottom: var(--space-6);
  padding-bottom: var(--space-4);
  border-bottom: 2px solid var(--gold-light);
}
.booking-header h1 { 
  margin: 0 0 var(--space-2); 
  font-weight: 800;
  color: var(--black-primary);
  font-size: 2rem;
}
.booking-header p { 
  margin: 0; 
  color: var(--gray-medium);
  font-size: 1.1rem;
}

/* Barber Summary */
.barber-summary { 
  background: linear-gradient(135deg, var(--gold-light) 0%, var(--color-surface) 100%);
  border: 2px solid var(--gold-primary);
  border-radius: var(--radius-md);
  padding: var(--space-4);
  margin-bottom: var(--space-6);
  box-shadow: 0 8px 25px rgba(212, 175, 55, 0.15);
}
.barber-info { 
  display: flex; 
  align-items: center; 
  gap: var(--space-4);
}
.barber-info img { 
  width: 56px; 
  height: 56px; 
  border-radius: 50%; 
  object-fit: cover;
  border: 3px solid var(--gold-primary);
  box-shadow: 0 4px 15px rgba(212, 175, 55, 0.3);
}
.barber-placeholder { 
  width: 56px; 
  height: 56px; 
  display: grid; 
  place-items: center; 
  border-radius: 50%; 
  background: var(--gold-light);
  color: var(--gold-primary);
  border: 3px solid var(--gold-primary);
  font-size: 1.5rem;
}

/* DateTime Selection */
.datetime-selection { 
  display: grid; 
  grid-template-columns: 1.2fr .8fr; 
  gap: var(--space-6);
}
@media (max-width: 992px) { 
  .datetime-selection { 
    grid-template-columns: 1fr; 
  } 
}

/* Calendar Styles */
.calendar-container { 
  background: linear-gradient(135deg, var(--color-surface) 0%, var(--gold-light) 100%);
  border: 2px solid var(--gold-primary);
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: 0 8px 25px rgba(212, 175, 55, 0.15);
}
.calendar-header { 
  display: flex; 
  align-items: center; 
  justify-content: space-between; 
  padding: var(--space-4);
  border-bottom: 1px solid var(--gold-light);
  background: linear-gradient(135deg, var(--gold-primary) 0%, var(--gold-dark) 100%);
  color: white;
}
.calendar-nav { 
  background: rgba(255, 255, 255, 0.2);
  border: 1px solid rgba(255, 255, 255, 0.3);
  border-radius: var(--radius-sm);
  padding: 8px 12px;
  cursor: pointer;
  color: white;
  transition: all 0.3s ease;
}
.calendar-nav:hover {
  background: rgba(255, 255, 255, 0.3);
  transform: translateY(-2px);
}
.calendar-grid { 
  padding: var(--space-4);
}
.calendar-weekdays { 
  display: grid; 
  grid-template-columns: repeat(7, 1fr); 
  gap: var(--space-2); 
  color: var(--gold-primary);
  font-weight: 800; 
  text-align: center; 
  margin-bottom: var(--space-2);
}
.calendar-days { 
  display: grid; 
  grid-template-columns: repeat(7, 1fr); 
  gap: var(--space-2);
}
.calendar-day { 
  aspect-ratio: 1 / 1; 
  display: grid; 
  place-items: center; 
  border: 2px solid var(--gold-light);
  border-radius: var(--radius-sm);
  background: var(--color-surface);
  cursor: pointer; 
  user-select: none;
  transition: all 0.3s ease;
  font-weight: 600;
}
.calendar-day:hover { 
  border-color: var(--gold-primary);
  background: var(--gold-light);
  transform: translateY(-2px);
}
.calendar-day.selected { 
  outline: 3px solid rgba(212, 175, 55, 0.3);
  border-color: var(--gold-primary);
  background: linear-gradient(135deg, var(--gold-primary) 0%, var(--gold-dark) 100%);
  color: white;
  font-weight: 800;
}
.calendar-day.disabled, 
.calendar-day.other-month { 
  opacity: .45; 
  cursor: default;
  background: var(--gray-light);
}
.calendar-day.today { 
  box-shadow: inset 0 0 0 2px var(--gold-accent);
  border-color: var(--gold-accent);
}

/* Time Slots */
.time-slots-container { 
  background: linear-gradient(135deg, var(--color-surface) 0%, var(--gold-light) 100%);
  border: 2px solid var(--gold-primary);
  border-radius: var(--radius-md);
  padding: var(--space-4);
  box-shadow: 0 8px 25px rgba(212, 175, 55, 0.15);
}
.time-slots { 
  display: grid; 
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); 
  gap: var(--space-3);
}
.time-slot { 
  background: linear-gradient(135deg, var(--gold-light) 0%, var(--color-surface) 100%);
  border-radius: var(--radius-md);
  padding: var(--space-4);
  border: 2px solid var(--gold-primary);
  cursor: pointer;
  transition: all 0.3s ease;
  box-shadow: 0 4px 12px rgba(212, 175, 55, 0.1);
}
.time-slot:not(.disabled):hover { 
  border-color: var(--gold-accent);
  box-shadow: 0 8px 20px rgba(212, 175, 55, 0.2);
  transform: translateY(-3px);
}
.time-slot.selected { 
  background: linear-gradient(135deg, var(--gold-primary) 0%, var(--gold-dark) 100%);
  color: white;
  border-color: var(--gold-primary);
  box-shadow: 0 8px 25px rgba(212, 175, 55, 0.3);
}
.time-slot.disabled { 
  opacity: .6; 
  cursor: not-allowed; 
  background: var(--gray-light);
  border-color: var(--gray-medium);
}
.time-slot-content { 
  display: grid; 
  gap: var(--space-2);
}
.time-label, .duration-label { 
  display: inline-flex; 
  align-items: center; 
  gap: var(--space-2);
  font-weight: 600;
}
.time-label i { 
  color: var(--gold-primary);
  font-size: 1.1em;
}
.time-slot.selected .time-label i, 
.time-slot.selected .duration-label i { 
  color: white;
}
.unavailable-label { 
  text-align: center; 
  color: #dc3545; 
  font-size: .875rem; 
  margin-top: .25rem;
  font-weight: 600;
}

/* Service Selection */
.services-selection { 
  display: grid; 
  gap: var(--space-3);
}
.service-option { 
  border: 2px solid var(--gold-primary);
  border-radius: var(--radius-md);
  overflow: hidden;
  transition: all 0.3s ease;
  background: linear-gradient(135deg, var(--color-surface) 0%, var(--gold-light) 100%);
  box-shadow: 0 4px 12px rgba(212, 175, 55, 0.1);
}
.service-option:hover { 
  transform: translateY(-3px);
  box-shadow: 0 8px 20px rgba(212, 175, 55, 0.2);
  border-color: var(--gold-accent);
}
.service-option input[type="radio"] { 
  display: none;
}
.service-option label { 
  display: block; 
  padding: var(--space-5); 
  cursor: pointer; 
  margin: 0;
  transition: all 0.3s ease;
}
.service-option input[type="radio"]:checked + label { 
  background: rgba(212, 175, 55, 0.1);
  border-left: 4px solid var(--gold-primary);
}
.service-option-content { 
  display: flex; 
  align-items: flex-start; 
  gap: var(--space-4);
}
.service-icon { 
  width: 50px; 
  height: 50px; 
  background: linear-gradient(135deg, var(--gold-primary) 0%, var(--gold-dark) 100%);
  border: 2px solid var(--gold-primary);
  border-radius: var(--radius-md);
  display: grid;
  place-items: center;
  color: white;
  flex-shrink: 0;
  box-shadow: 0 4px 15px rgba(212, 175, 55, 0.3);
  font-size: 1.2rem;
}
.service-details h4 { 
  margin: 0 0 .25rem;
  color: var(--black-primary);
  font-weight: 700;
}
.service-details p { 
  color: var(--gray-medium);
  margin: 0 0 .5rem;
  font-size: .95rem;
  line-height: 1.6;
}
.service-meta { 
  display: flex; 
  gap: var(--space-4); 
  color: var(--gray-medium);
  font-size: .9rem;
}
.service-meta i { 
  color: var(--gold-primary);
}

/* Loading States for Booking */
.loading-slots,
.no-service-selected,
.error-loading { 
  text-align: center; 
  padding: var(--space-8);
  color: var(--gray-medium);
  background: linear-gradient(135deg, var(--color-surface) 0%, var(--gold-light) 100%);
  border: 2px solid var(--gold-primary);
  border-radius: var(--radius-lg);
  box-shadow: 0 8px 25px rgba(212, 175, 55, 0.15);
}
.loading-slots i,
.no-service-selected i,
.error-loading i { 
  font-size: 3rem; 
  margin-bottom: var(--space-4);
  display: block;
}
.loading-slots i { 
  color: var(--gold-primary);
  animation: spin 2s linear infinite;
}
.no-service-selected i { 
  color: var(--gold-accent);
}
.error-loading i { 
  color: #dc3545;
}

/* Success Page */
.success-container { 
  text-align: center; 
  padding: var(--space-12) 0;
}
.success-card { 
  background: linear-gradient(135deg, var(--color-surface) 0%, var(--gold-light) 100%);
  border: 2px solid var(--gold-primary);
  border-radius: var(--radius-lg);
  padding: var(--space-8);
  max-width: 600px;
  margin: 0 auto;
  box-shadow: 0 16px 40px rgba(212, 175, 55, 0.2);
}
.success-icon { 
  width: 80px; 
  height: 80px; 
  background: linear-gradient(135deg, #10b981 0%, #059669 100%);
  border-radius: 50%;
  display: grid;
  place-items: center;
  color: white;
  font-size: 2rem;
  margin: 0 auto var(--space-6);
  box-shadow: 0 8px 25px rgba(16, 185, 129, 0.3);
}
.success-title { 
  color: var(--black-primary);
  font-weight: 800;
  font-size: 1.5rem;
  margin-bottom: var(--space-4);
}
.success-message { 
  color: var(--gray-medium);
  margin-bottom: var(--space-6);
  line-height: 1.6;
}
.booking-details { 
  background: rgba(212, 175, 55, 0.1);
  border: 1px solid var(--gold-primary);
  border-radius: var(--radius-md);
  padding: var(--space-4);
  margin-bottom: var(--space-6);
}
.booking-details h4 { 
  color: var(--black-primary);
  font-weight: 700;
  margin-bottom: var(--space-3);
}
.detail-row { 
  display: flex; 
  justify-content: space-between; 
  margin-bottom: var(--space-2);
}
.detail-label { 
  color: var(--gray-medium);
  font-weight: 600;
}
.detail-value { 
  color: var(--black-primary);
  font-weight: 700;
}

/* Dark Theme for Booking */
[data-theme="dark"] .booking-container { 
  background: linear-gradient(135deg, var(--color-bg) 0%, var(--black-light) 100%);
}
[data-theme="dark"] .booking-form { 
  background: linear-gradient(135deg, var(--color-surface) 0%, var(--black-light) 100%);
  border-color: var(--gold-primary);
}
[data-theme="dark"] .booking-header h1 { 
  color: var(--color-text);
}
[data-theme="dark"] .barber-summary { 
  background: linear-gradient(135deg, var(--black-light) 0%, var(--color-surface) 100%);
  border-color: var(--gold-primary);
}
[data-theme="dark"] .calendar-container { 
  background: linear-gradient(135deg, var(--color-surface) 0%, var(--black-light) 100%);
  border-color: var(--gold-primary);
}
[data-theme="dark"] .calendar-header { 
  background: linear-gradient(135deg, var(--gold-primary) 0%, var(--gold-dark) 100%);
}
[data-theme="dark"] .calendar-day { 
  background: var(--black-light);
  border-color: var(--black-primary);
  color: #e5e7eb;
}
[data-theme="dark"] .calendar-day:hover { 
  border-color: var(--gold-primary);
}
[data-theme="dark"] .calendar-day.selected {
  outline: 3px solid rgba(212, 175, 55, 0.3);
  border-color: var(--gold-primary);
  color: #fff;
}
[data-theme="dark"] .calendar-day.off {
  background: rgba(239, 68, 68, 0.15);
  border-color: #ef4444;
  color: #fecaca;
}
[data-theme="dark"] .calendar-day.other-month { opacity: .35; }
[data-theme="dark"] .calendar-day.today { box-shadow: inset 0 0 0 2px var(--gold-primary); }
[data-theme="dark"] .time-slots-container { 
  background: linear-gradient(135deg, var(--color-surface) 0%, var(--black-light) 100%);
  border-color: var(--gold-primary);
}
[data-theme="dark"] .time-slot { 
  background: linear-gradient(135deg, var(--black-light) 0%, var(--color-surface) 100%);
  border-color: var(--gold-primary);
}
[data-theme="dark"] .service-option { 
  background: linear-gradient(135deg, var(--color-surface) 0%, var(--black-light) 100%);
  border-color: var(--gold-primary);
}
[data-theme="dark"] .service-option input[type="radio"]:checked + label { 
  background: rgba(255, 215, 0, 0.1);
}
[data-theme="dark"] .success-card { 
  background: linear-gradient(135deg, var(--color-surface) 0%, var(--black-light) 100%);
  border-color: var(--gold-primary);
}
[data-theme="dark"] .success-title { 
  color: var(--color-text);
}
[data-theme="dark"] .booking-details { 
  background: rgba(255, 215, 0, 0.1);
  border-color: var(--gold-primary);
}
[data-theme="dark"] .booking-details h4 { 
  color: var(--color-text);
}
[data-theme="dark"] .detail-value { 
  color: var(--color-text);
}

/* ---------------- Auth Pages Styles ---------------- */
.auth-container { 
  display: grid; 
  place-items: center; 
  min-height: calc(100vh - 140px); 
  padding: var(--space-8) 0;
  background: linear-gradient(135deg, var(--color-bg) 0%, #ffffff 100%);
}
.auth-card { 
  width: min(520px, 100% - 40px); 
  background: linear-gradient(135deg, var(--color-surface) 0%, var(--gold-light) 100%);
  border: 2px solid var(--gold-primary);
  border-radius: var(--radius-lg);
  box-shadow: 0 16px 40px rgba(212, 175, 55, 0.2);
  padding: var(--space-6);
}
.auth-card .auth-header { 
  text-align: center; 
  margin-bottom: var(--space-6);
  padding-bottom: var(--space-4);
  border-bottom: 2px solid var(--gold-light);
}
.auth-card .auth-header h1 { 
  color: var(--black-primary);
  font-weight: 800;
  font-size: 1.75rem;
  margin-bottom: var(--space-2);
}
.auth-card .auth-header p { 
  color: var(--gray-medium);
  margin: 0;
}
.auth-form .form-group { 
  margin-bottom: var(--space-5);
}
.input-group { 
  display: flex; 
  align-items: center; 
  gap: var(--space-3); 
  border: 2px solid var(--gold-light);
  border-radius: var(--radius-md);
  padding: 12px 16px;
  background: var(--color-surface);
  transition: all 0.3s ease;
}
.input-group:focus-within {
  border-color: var(--gold-primary);
  box-shadow: 0 0 0 4px rgba(212, 175, 55, 0.15);
  transform: translateY(-2px);
}
.input-group i { 
  color: var(--gold-primary);
  font-size: 1.1em;
}
.input-group input { 
  border: none; 
  outline: none; 
  width: 100%; 
  font: inherit;
  background: transparent;
  color: var(--black-primary);
}
.password-toggle { 
  background: transparent; 
  border: none; 
  color: var(--gold-primary);
  cursor: pointer; 
  display: inline-flex; 
  align-items: center;
  transition: all 0.3s ease;
}
.password-toggle:hover {
  color: var(--gold-accent);
  transform: scale(1.1);
}
.btn-full { 
  width: 100%;
  margin-top: var(--space-4);
}
.error-message { 
  color: #dc3545; 
  font-size: .875rem; 
  margin-top: .375rem; 
  display: inline-block;
  font-weight: 600;
}

/* ---------------- Regions Pages Styles ---------------- */
.regions-grid { 
  display: grid; 
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); 
  gap: var(--space-6);
}
.region-card { 
  background: linear-gradient(135deg, var(--color-surface) 0%, var(--gold-light) 100%);
  border: 2px solid var(--gold-primary);
  border-radius: var(--radius-lg);
  padding: var(--space-6);
  box-shadow: 0 8px 25px rgba(212, 175, 55, 0.15);
  transition: all 0.3s ease;
  text-decoration: none;
  color: inherit;
  display: block;
}
.region-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 15px 35px rgba(212, 175, 55, 0.25);
  border-color: var(--gold-accent);
}
.region-card h3 { 
  color: var(--black-primary);
  font-weight: 800;
  font-size: 1.25rem;
  margin-bottom: var(--space-3);
}
.region-card p { 
  color: var(--gray-medium);
  margin-bottom: var(--space-4);
  line-height: 1.6;
}
.region-stats { 
  display: flex; 
  gap: var(--space-4); 
  color: var(--gray-medium);
  margin-top: var(--space-4);
  padding-top: var(--space-4);
  border-top: 1px solid var(--gold-light);
}
.region-stats .stat { 
  display: inline-flex; 
  align-items: center; 
  gap: var(--space-2);
  font-weight: 600;
}
.region-stats .stat i {
  color: var(--gold-primary);
  font-size: 1.1em;
}

/* Region Details Page */
.region-details { 
  background: linear-gradient(135deg, var(--color-surface) 0%, var(--gold-light) 100%);
  border: 2px solid var(--gold-primary);
  border-radius: var(--radius-lg);
  padding: var(--space-6);
  margin-bottom: var(--space-8);
  box-shadow: 0 8px 25px rgba(212, 175, 55, 0.15);
}
.region-header { 
  text-align: center; 
  margin-bottom: var(--space-6);
  padding-bottom: var(--space-4);
  border-bottom: 2px solid var(--gold-light);
}
.region-header h1 { 
  color: var(--black-primary);
  font-weight: 800;
  font-size: 2rem;
  margin-bottom: var(--space-2);
}
.region-header p { 
  color: var(--gray-medium);
  font-size: 1.1rem;
  margin: 0;
}
.region-stats-grid { 
  display: grid; 
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); 
  gap: var(--space-4);
  margin-bottom: var(--space-6);
}
.region-stat-card { 
  background: linear-gradient(135deg, var(--gold-light) 0%, var(--color-surface) 100%);
  border: 2px solid var(--gold-primary);
  border-radius: var(--radius-md);
  padding: var(--space-4);
  text-align: center;
  transition: all 0.3s ease;
}
.region-stat-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 20px rgba(212, 175, 55, 0.2);
}
.region-stat-card h3 { 
  color: var(--black-primary);
  font-weight: 800;
  font-size: 1.5rem;
  margin-bottom: var(--space-1);
}
.region-stat-card p { 
  color: var(--gray-medium);
  font-weight: 600;
  margin: 0;
}

/* Barber Show Page */
.barber-profile { 
  background: linear-gradient(135deg, var(--color-surface) 0%, var(--gold-light) 100%);
  border: 2px solid var(--gold-primary);
  border-radius: var(--radius-lg);
  padding: var(--space-6);
  margin-bottom: var(--space-8);
  box-shadow: 0 8px 25px rgba(212, 175, 55, 0.15);
}
.barber-profile-header { 
  display: flex; 
  align-items: center; 
  gap: var(--space-6);
  margin-bottom: var(--space-6);
  padding-bottom: var(--space-4);
  border-bottom: 2px solid var(--gold-light);
}
.barber-profile-image { 
  width: 120px; 
  height: 120px; 
  border-radius: 50%; 
  object-fit: cover;
  border: 4px solid var(--gold-primary);
  box-shadow: 0 8px 25px rgba(212, 175, 55, 0.3);
}
.barber-profile-info h1 { 
  color: var(--black-primary);
  font-weight: 800;
  font-size: 2rem;
  margin-bottom: var(--space-2);
}
.barber-profile-info p { 
  color: var(--gray-medium);
  margin-bottom: var(--space-3);
  font-size: 1.1rem;
}
.barber-rating { 
  display: flex; 
  align-items: center; 
  gap: var(--space-2);
  margin-bottom: var(--space-3);
}
.barber-rating .stars { 
  color: var(--gold-primary);
  font-size: 1.2rem;
}
.barber-rating .rating-text { 
  color: var(--gray-medium);
  font-weight: 600;
}

/* Dark Theme for Auth & Regions */
[data-theme="dark"] .auth-container { 
  background: linear-gradient(135deg, var(--color-bg) 0%, var(--black-light) 100%);
}
[data-theme="dark"] .auth-card { 
  background: linear-gradient(135deg, var(--color-surface) 0%, var(--black-light) 100%);
  border-color: var(--gold-primary);
}
[data-theme="dark"] .auth-card .auth-header h1 { 
  color: var(--color-text);
}
[data-theme="dark"] .input-group { 
  border-color: var(--gray-dark);
  background: var(--color-surface);
}
[data-theme="dark"] .input-group input { 
  color: var(--color-text);
}
[data-theme="dark"] .region-card { 
  background: linear-gradient(135deg, var(--color-surface) 0%, var(--black-light) 100%);
  border-color: var(--gold-primary);
}
[data-theme="dark"] .region-card h3 { 
  color: var(--color-text);
}
[data-theme="dark"] .region-details { 
  background: linear-gradient(135deg, var(--color-surface) 0%, var(--black-light) 100%);
  border-color: var(--gold-primary);
}
[data-theme="dark"] .region-header h1 { 
  color: var(--color-text);
}
[data-theme="dark"] .region-stat-card { 
  background: linear-gradient(135deg, var(--black-light) 0%, var(--color-surface) 100%);
  border-color: var(--gold-primary);
}
[data-theme="dark"] .region-stat-card h3 { 
  color: var(--color-text);
}
[data-theme="dark"] .barber-profile { 
  background: linear-gradient(135deg, var(--color-surface) 0%, var(--black-light) 100%);
  border-color: var(--gold-primary);
}
[data-theme="dark"] .barber-profile-info h1 { 
  color: var(--color-text);
}

/* ---------------- Responsive Improvements ---------------- */
@media (max-width: 768px) {
  .stats-grid { 
    grid-template-columns: 1fr; 
  }
  .analytics-row { 
    grid-template-columns: 1fr; 
  }
  .barber-profile-header { 
    flex-direction: column; 
    text-align: center;
  }
  .export-buttons { 
    flex-direction: column;
  }
  .section-header { 
    flex-direction: column;
    gap: var(--space-3);
    text-align: center;
  }
  .datetime-selection { 
    grid-template-columns: 1fr; 
  }
  .time-slots { 
    grid-template-columns: 1fr; 
  }
  .services-grid { 
    grid-template-columns: 1fr; 
  }
  .regions-grid { 
    grid-template-columns: 1fr; 
  }
  .region-stats { 
    flex-direction: column;
    gap: var(--space-2);
  }
  .region-stats-grid { 
    grid-template-columns: 1fr; 
  }
}

@media (max-width: 480px) {
  .container { 
    padding-inline: 15px; 
  }
  .card-body { 
    padding: var(--space-4); 
  }
  .service-content { 
    padding: var(--space-4); 
  }
  .booking-form { 
    padding: var(--space-4); 
  }
  .auth-card { 
    padding: var(--space-4); 
  }
  .modal-body { 
    padding: var(--space-4); 
  }
}

/* Features Section */
.features {
  padding: var(--space-12) 0;
  background: var(--color-surface);
}

.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: var(--space-6);
}

.feature-card {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  padding: var(--space-6);
  text-align: center;
  transition: all 0.3s ease;
  box-shadow: 0 2px 10px rgba(0,0,0,0.05);
}

.feature-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 25px rgba(0,0,0,0.1);
  border-color: var(--gold-primary);
}

.feature-icon {
  width: 80px;
  height: 80px;
  background: linear-gradient(135deg, var(--gold-primary) 0%, var(--gold-accent) 100%);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto var(--space-4);
  font-size: 2rem;
  color: white;
  box-shadow: 0 4px 15px rgba(212, 175, 55, 0.3);
}

.feature-title {
  font-size: 1.25rem;
  font-weight: 700;
  margin-bottom: var(--space-3);
  color: var(--color-text);
}

.feature-description {
  color: var(--color-muted);
  line-height: 1.6;
}

/* CTA Section */
.cta {
  background: linear-gradient(135deg, var(--black-primary) 0%, var(--black-light) 100%);
  color: white;
  padding: var(--space-12) 0;
  text-align: center;
}

.cta-content {
  max-width: 600px;
  margin: 0 auto;
}

.cta-title {
  font-size: 2.5rem;
  font-weight: 800;
  margin-bottom: var(--space-4);
}

.cta-description {
  font-size: 1.125rem;
  opacity: 0.9;
  margin-bottom: var(--space-6);
  line-height: 1.6;
}

.btn-cta {
  background: var(--gold-primary);
  color: var(--black-primary);
  padding: 1rem 2.5rem;
  font-size: 1.125rem;
  font-weight: 700;
  border-radius: var(--radius-md);
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  transition: all 0.3s ease;
  box-shadow: 0 4px 15px rgba(212, 175, 55, 0.3);
  border: none;
}

.btn-cta:hover {
  background: var(--gold-dark);
  transform: translateY(-3px);
  box-shadow: 0 8px 25px rgba(212, 175, 55, 0.4);
}

/* Regions Specific Styles */
.regions-container {
  padding: var(--space-8) 0;
}

.nearest-barber {
  margin-bottom: var(--space-8);
}

.nearest-card {
  background: linear-gradient(135deg, var(--gold-primary) 0%, var(--gold-accent) 100%);
  border-radius: var(--radius-lg);
  padding: var(--space-6);
  color: var(--black-primary);
  display: flex;
  align-items: center;
  gap: var(--space-6);
  box-shadow: 0 8px 25px rgba(212, 175, 55, 0.2);
}

.nearest-icon {
  width: 80px;
  height: 80px;
  background: rgba(255,255,255,0.2);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2rem;
  color: var(--black-primary);
}

.nearest-content h3 {
  font-size: 1.5rem;
  font-weight: 700;
  margin-bottom: var(--space-2);
}

.nearest-content p {
  margin-bottom: var(--space-4);
  opacity: 0.9;
}

.nearest-form {
  margin: 0;
}

/* Barber Cards in Regions */
.barbers-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: var(--space-6);
  margin-bottom: var(--space-12);
}

.barber-card {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  transition: all 0.3s ease;
  box-shadow: 0 2px 10px rgba(0,0,0,0.05);
  display: flex;
  flex-direction: column;
}

.barber-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 25px rgba(0,0,0,0.1);
  border-color: var(--gold-primary);
}

.barber-image {
  position: relative;
  height: 200px;
  overflow: hidden;
}

.barber-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s ease;
}

.barber-card:hover .barber-image img {
  transform: scale(1.05);
}

.barber-placeholder {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--light-color);
  color: var(--color-muted);
  font-size: 3rem;
}

.barber-info {
  padding: var(--space-6);
}

.barber-info h3 { font-size: 1.25rem; font-weight: 700; margin: 0; color: var(--color-text); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

.barber-rating { display: flex; align-items: center; gap: var(--space-2); margin: 0; }

.barber-rating .fas {
  color: var(--gold-accent);
  font-size: 0.875rem;
}

.barber-rating .fas.filled {
  color: var(--gold-accent);
}

.barber-rating span {
  color: var(--color-muted);
  font-size: 0.875rem;
}

.barber-bio {
  color: var(--color-muted);
  line-height: 1.6;
  margin-bottom: var(--space-4);
  font-size: 0.9rem;
}

.barber-details { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: var(--space-4); }
.barber-card .barber-details .detail { display: inline-flex; align-items: center; gap: 6px; padding: 4px 10px; border: 1px solid var(--color-border); border-radius: 999px; background: #fafafa; color: var(--black-primary); font-weight: 600; font-size: .85rem; }
.barber-card .barber-details .detail i { color: var(--gold-primary); width: 16px; }

.barber-services { margin: 0; }

.barber-services h4 { display: none; }

.services-list {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-2);
}

.service-tag {
  background: var(--light-color);
  color: var(--color-text);
  padding: 0.25rem 0.75rem;
  border-radius: var(--radius-sm);
  font-size: 0.75rem;
  font-weight: 500;
}

/* Dark mode overrides for regions cards */
[data-theme="dark"] .barber-card .barber-details .detail { background: var(--black-light); border-color: var(--black-primary); color: #e5e7eb; }
[data-theme="dark"] .barber-rating span { color: #cbd5e1; }

/* Layout arrangement inside regions cards */
.barber-card .barber-info { display: grid; grid-template-columns: 1.2fr 1fr; column-gap: 16px; row-gap: 8px; align-items: start; }
.barber-card .barber-info h3 { grid-column: 1; grid-row: 1; }
.barber-card .barber-info .barber-rating { grid-column: 1; grid-row: 2; }
.barber-card .barber-info .barber-services { grid-column: 2; grid-row: 1 / span 2; align-self: start; }
.barber-card .barber-info .barber-details { grid-column: 1 / -1; grid-row: 3; }

@media (max-width: 640px) {
  .barber-card .barber-info { grid-template-columns: 1fr; }
  .barber-card .barber-info .barber-services { grid-column: 1; grid-row: 3; }
  .barber-card .barber-info .barber-details { grid-row: 4; }
}

.barber-actions {
  display: flex;
  gap: var(--space-3);
  padding: var(--space-4) var(--space-6);
  background: var(--light-color);
  border-top: 1px solid var(--color-border);
  margin-top: auto;
}

/* Empty State */
.empty-state {
  text-align: center;
  padding: var(--space-12) 0;
}

.empty-icon {
  width: 120px;
  height: 120px;
  background: var(--light-color);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto var(--space-6);
  font-size: 3rem;
  color: var(--color-muted);
}

.empty-state h3 {
  font-size: 1.5rem;
  font-weight: 700;
  margin-bottom: var(--space-3);
  color: var(--color-text);
}

.empty-state p {
  color: var(--color-muted);
  margin-bottom: var(--space-6);
  max-width: 500px;
  margin-left: auto;
  margin-right: auto;
}

/* Booking Success Page */
.booking-success-container {
  padding: var(--space-12) 0;
}

.success-card {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  padding: var(--space-8);
  max-width: 600px;
  margin: 0 auto;
  text-align: center;
  box-shadow: 0 8px 25px rgba(0,0,0,0.1);
}

.success-header {
  margin-bottom: var(--space-8);
}

.success-icon {
  width: 100px;
  height: 100px;
  background: linear-gradient(135deg, #10b981 0%, #059669 100%);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto var(--space-6);
  font-size: 3rem;
  color: white;
  box-shadow: 0 4px 15px rgba(16, 185, 129, 0.3);
}

.success-header h1 {
  font-size: 2rem;
  font-weight: 800;
  margin-bottom: var(--space-2);
  color: var(--color-text);
}

.success-header p {
  color: var(--color-muted);
  font-size: 1.125rem;
}

.booking-details {
  margin-bottom: var(--space-8);
}

.booking-details h2 {
  font-size: 1.5rem;
  font-weight: 700;
  margin-bottom: var(--space-6);
  color: var(--color-text);
}

.details-grid {
  display: grid;
  gap: var(--space-4);
}

.detail-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: var(--space-3) 0;
  border-bottom: 1px solid var(--color-border);
}

.detail-item:last-child {
  border-bottom: none;
  font-weight: 700;
  font-size: 1.125rem;
}

.detail-item .label {
  color: var(--color-muted);
  font-weight: 500;
}

.detail-item .value {
  color: var(--color-text);
  font-weight: 600;
}

.whatsapp-notice {
  background: linear-gradient(135deg, #25d366 0%, #128c7e 100%);
  color: white;
  border-radius: var(--radius-md);
  padding: var(--space-6);
  margin-bottom: var(--space-8);
  display: flex;
  align-items: center;
  gap: var(--space-4);
}

.notice-icon {
  font-size: 2rem;
  flex-shrink: 0;
}

.notice-content h3 {
  font-size: 1.25rem;
  font-weight: 700;
  margin-bottom: var(--space-2);
}

.notice-content p {
  opacity: 0.9;
  margin: 0;
}

.success-actions {
  display: flex;
  gap: var(--space-4);
  justify-content: center;
  flex-wrap: wrap;
}

/* View Toggle for Regions */
.view-toggle {
  display: flex;
  gap: var(--space-4);
  justify-content: center;
  margin-bottom: var(--space-8);
}

.view-toggle button {
  padding: var(--space-3) var(--space-6);
  border: 2px solid var(--color-border);
  background: var(--color-surface);
  border-radius: var(--radius-md);
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: var(--space-2);
  font-weight: 600;
  transition: all 0.3s ease;
  color: var(--color-text);
}

.view-toggle button:hover {
  border-color: var(--gold-primary);
  color: var(--gold-primary);
}

.view-toggle button.active {
  border-color: var(--gold-primary);
  color: var(--gold-primary);
  background: rgba(212, 175, 55, 0.1);
}

/* Map Styles */
#map-view {
  height: 400px;
  border-radius: var(--radius-md);
  margin-bottom: var(--space-8);
  display: none;
  border: 1px solid var(--color-border);
}

.map-active #map-view {
  display: block;
}

.map-active .barbers-grid {
  display: none;
}

.map-barber-card {
  padding: var(--space-4);
  min-width: 250px;
}

.map-barber-header {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  margin-bottom: var(--space-3);
}

.map-barber-image {
  width: 50px;
  height: 50px;
  border-radius: 50%;
  overflow: hidden;
  flex-shrink: 0;
}

.map-barber-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.map-barber-info h4 {
  margin: 0 0 var(--space-1);
  color: var(--color-text);
  font-weight: 700;
}

.map-barber-rating {
  color: var(--gold-accent);
  font-size: 0.875rem;
}

.map-barber-meta {
  margin-bottom: var(--space-3);
  font-size: 0.875rem;
  color: var(--color-muted);
}

.map-barber-actions {
  display: flex;
  gap: var(--space-2);
}

.map-barber-actions a {
  flex: 1;
  text-align: center;
  padding: var(--space-2);
  border-radius: var(--radius-sm);
  text-decoration: none;
  font-size: 0.875rem;
  font-weight: 600;
  transition: all 0.3s ease;
}

.map-barber-actions .btn-outline {
  background: transparent;
  border: 1px solid var(--gold-primary);
  color: var(--gold-primary);
}

.map-barber-actions .btn-primary {
  background: var(--gold-primary);
  color: var(--black-primary);
}

/* Dark Theme Overrides for New Components */
[data-theme="dark"] .hero {
  background: 
    linear-gradient(135deg, rgba(45, 45, 45, 0.9) 0%, rgba(26, 26, 26, 0.85) 100%),
    url('/assets/images/hero/hero-bg.jpg');
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  image-rendering: -webkit-optimize-contrast;
  image-rendering: crisp-edges;
}

[data-theme="dark"] .hero::before {
  background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 1200 800"><defs><pattern id="grain" x="0" y="0" width="100" height="100" patternUnits="userSpaceOnUse"><circle cx="20" cy="20" r="1" fill="%23ffd700" opacity="0.08"/><circle cx="80" cy="80" r="1" fill="%23ffd700" opacity="0.12"/><circle cx="50" cy="50" r="0.5" fill="%23ffd700" opacity="0.15"/><circle cx="90" cy="30" r="0.8" fill="%23ffd700" opacity="0.06"/><circle cx="30" cy="70" r="0.6" fill="%23ffd700" opacity="0.1"/></pattern></defs><rect width="1200" height="800" fill="url(%23grain)"/></svg>');
  opacity: 0.4;
}

[data-theme="dark"] .hero::after {
  background: linear-gradient(90deg, transparent, rgba(255, 215, 0, 0.08), transparent);
}

[data-theme="dark"] .hero-title {
  animation: heroTitleGlowDark 3s ease-in-out infinite alternate;
}

@keyframes heroTitleGlowDark {
  0% { text-shadow: 0 4px 8px rgba(0,0,0,0.5), 0 0 20px rgba(255, 215, 0, 0.2); }
  100% { text-shadow: 0 4px 8px rgba(0,0,0,0.5), 0 0 30px rgba(255, 215, 0, 0.4); }
}

[data-theme="dark"] .features {
  background: var(--black-primary);
}

[data-theme="dark"] .feature-card {
  background: var(--black-light);
  border-color: var(--gray-dark);
}

[data-theme="dark"] .feature-title {
  color: var(--color-text);
}

[data-theme="dark"] .cta {
  background: linear-gradient(135deg, var(--gold-primary) 0%, var(--gold-dark) 100%);
  color: var(--black-primary);
}

[data-theme="dark"] .nearest-card {
  background: linear-gradient(135deg, var(--gold-primary) 0%, var(--gold-accent) 100%);
  color: var(--black-primary);
}

[data-theme="dark"] .barber-card {
  background: var(--black-light);
  border-color: var(--gray-dark);
}

[data-theme="dark"] .barber-info h3 {
  color: var(--color-text);
}

[data-theme="dark"] .barber-services h4 {
  color: var(--color-text);
}

[data-theme="dark"] .service-tag {
  background: var(--gray-dark);
  color: var(--color-text);
}

.service-details {
  display: flex;
  gap: var(--space-2);
  flex-wrap: wrap;
  margin-top: var(--space-3);
}

.service-details .service-tag {
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  background: var(--gold-light);
  color: var(--black-primary);
  padding: .5rem .75rem;
  border-radius: var(--radius-sm);
  font-size: .875rem;
  font-weight: 600;
  margin: 0;
}

.service-details .service-tag i {
  color: var(--gold-primary);
  font-size: 1rem;
}

[data-theme="dark"] .service-details .service-tag {
  background: var(--gray-dark);
  color: var(--color-text);
}

[data-theme="dark"] .service-details .service-tag i {
  color: var(--gold-primary);
}

[data-theme="dark"] .barber-actions {
  background: var(--gray-dark);
  border-color: var(--gray-dark);
}

[data-theme="dark"] .success-card {
  background: var(--black-light);
  border-color: var(--gray-dark);
}

[data-theme="dark"] .success-header h1 {
  color: var(--color-text);
}

[data-theme="dark"] .booking-details h2 {
  color: var(--color-text);
}

[data-theme="dark"] .detail-item .value {
  color: var(--color-text);
}

[data-theme="dark"] .btn-primary {
  background: var(--color-surface);
  color: var(--color-text);
  border-color: var(--color-border);
}

[data-theme="dark"] .btn-cta {
  background: var(--black-primary);
  color: var(--gold-primary);
  box-shadow: 0 4px 15px rgba(255, 242, 0, 0.4);
  border: 2px solid var(--gold-primary);
}

[data-theme="dark"] .btn-cta:hover {
  background: var(--black-primary);
  color: var(--gold-primary);
  box-shadow: 0 8px 25px rgba(255, 215, 0, 0.5);
  transform: translateY(-2px);
}

[data-theme="dark"] .meta-item {
  color: var(--color-text);
}

[data-theme="dark"] .meta-item i {
  color: var(--gold-primary);
}

[data-theme="dark"] .view-toggle button {
  background: var(--black-light);
  border-color: var(--gray-dark);
  color: var(--color-text);
}

[data-theme="dark"] .view-toggle button:hover,
[data-theme="dark"] .view-toggle button.active {
  border-color: var(--gold-primary);
  color: var(--gold-primary);
  background: rgba(212, 175, 55, 0.1);
}

[data-theme="dark"] #map-view {
  border-color: var(--gray-dark);
}

/* Responsive Design for New Components */
@media (max-width: 768px) {
  .hero-title {
    font-size: 2rem;
  }
  
  .hero-subtitle {
    font-size: 1rem;
  }
  
  .hero-actions {
    flex-direction: column;
    align-items: center;
  }
  
  .btn-hero {
    width: 100%;
    max-width: 300px;
    justify-content: center;
  }
  
  .features-grid {
    grid-template-columns: 1fr;
  }
  
  .cta-title {
    font-size: 2rem;
  }
  
  .nearest-card {
    flex-direction: column;
    text-align: center;
    gap: var(--space-4);
  }
  
  .nearest-icon {
    width: 60px;
    height: 60px;
    font-size: 1.5rem;
  }
  
  .barbers-grid {
    grid-template-columns: 1fr;
  }
  
  .barber-actions {
    flex-direction: column;
  }
  
  .view-toggle {
    flex-direction: column;
    align-items: center;
  }
  
  .view-toggle button {
    width: 100%;
    max-width: 300px;
    justify-content: center;
  }
  
  .success-actions {
    flex-direction: column;
    align-items: center;
  }
  
  .whatsapp-notice {
    flex-direction: column;
    text-align: center;
  }
}

@media (max-width: 480px) {
  .hero > .container {
    padding-block: var(--space-8);
    min-height: 400px;
  }
  
  .hero-title {
    font-size: 1.75rem;
  }
  
  .cta-title {
    font-size: 1.75rem;
  }
  
  .success-card {
    padding: var(--space-6);
  }
  
  .success-icon {
    width: 80px;
    height: 80px;
    font-size: 2rem;
  }
  
  .success-header h1 {
    font-size: 1.5rem;
  }
  
  .booking-details h2 {
    font-size: 1.25rem;
  }
  
  .detail-item {
    flex-direction: column;
    align-items: flex-start;
    gap: var(--space-1);
  }
}

/* Dashboard Specific Styles */
.dashboard-container {
  padding: var(--space-8) 0;
}

.dashboard-section {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  padding: var(--space-8);
  margin-bottom: var(--space-8);
  box-shadow: 0 4px 20px rgba(0,0,0,0.08);
}

.dashboard-section .section-header {
  margin-bottom: var(--space-6);
  text-align: center;
}

.dashboard-section .section-header h2 {
  font-size: 1.5rem;
  font-weight: 800;
  margin-bottom: var(--space-2);
  color: var(--color-text);
}

.dashboard-section .section-header p {
  color: var(--color-muted);
  margin: 0;
}

/* Admin Forms */
.admin-form {
  max-width: 800px;
  margin: 0 auto;
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-4);
  margin-bottom: var(--space-4);
}

.form-group {
  margin-bottom: var(--space-4);
}

.form-group label {
  display: block;
  margin-bottom: var(--space-2);
  font-weight: 600;
  color: var(--color-text);
}

.form-group input,
.form-group select,
.form-group textarea {
  width: 100%;
  padding: var(--space-3);
  border: 2px solid var(--color-border);
  border-radius: var(--radius-md);
  font-size: 1rem;
  transition: all 0.3s ease;
  background: var(--color-surface);
  color: var(--color-text);
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--gold-primary);
  box-shadow: 0 0 0 3px rgba(212, 175, 55, 0.1);
}

.form-group textarea {
  resize: vertical;
  min-height: 100px;
}

.form-group small {
  color: var(--color-muted);
  font-size: 0.875rem;
  margin-top: var(--space-1);
}

/* Image Upload */
.image-upload-container {
  margin-top: var(--space-2);
}

.current-image {
  margin-bottom: var(--space-4);
}

.current-image img {
  width: 100px;
  height: 100px;
  object-fit: cover;
  border-radius: 50%;
  border: 3px solid var(--gold-primary);
  box-shadow: 0 4px 15px rgba(212, 175, 55, 0.2);
}

.form-group input[type="file"] {
  padding: var(--space-3);
  border: 2px dashed var(--color-border);
  border-radius: var(--radius-md);
  background: var(--light-color);
  cursor: pointer;
  transition: all 0.3s ease;
}

.form-group input[type="file"]:hover {
  border-color: var(--gold-primary);
  background: rgba(212, 175, 55, 0.05);
}

.form-group input[type="file"]:focus {
  outline: none;
  border-color: var(--gold-primary);
  box-shadow: 0 0 0 3px rgba(212, 175, 55, 0.1);
}

/* Services Grid for Barber Dashboard */
.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: var(--space-4);
  margin-bottom: var(--space-6);
}

.service-item {
  background: var(--color-surface);
  border: 2px solid var(--color-border);
  border-radius: var(--radius-md);
  padding: var(--space-4);
  transition: all 0.3s ease;
}

.service-item:hover {
  border-color: var(--gold-primary);
  transform: translateY(-2px);
  box-shadow: 0 4px 15px rgba(0,0,0,0.1);
}

.service-header {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  margin-bottom: var(--space-4);
}

.service-header input[type="checkbox"] {
  width: auto;
  margin: 0;
  transform: scale(1.2);
}

.service-header label {
  display: flex;
  align-items: center;
  gap: var(--space-2);
  margin: 0;
  cursor: pointer;
  font-weight: 600;
  color: var(--color-text);
}

.service-header i {
  color: var(--gold-primary);
  font-size: 1.25rem;
}

.service-price {
  display: flex;
  align-items: center;
  gap: var(--space-2);
}

.service-price label {
  margin: 0;
  font-weight: 600;
  color: var(--color-text);
}

.service-price input {
  width: 120px;
  padding: var(--space-2);
  font-size: 0.9rem;
}

/* Gallery Styles */
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: var(--space-4);
  margin-top: var(--space-6);
}

.gallery-item {
  position: relative;
  border-radius: var(--radius-md);
  overflow: hidden;
  aspect-ratio: 1;
  background: var(--light-color);
  transition: all 0.3s ease;
}

.gallery-item:hover {
  transform: scale(1.02);
}

.gallery-preview {
  width: 100%;
  height: 100%;
}

.gallery-preview img,
.gallery-preview video {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.gallery-actions {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0,0,0,0.7);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-2);
  opacity: 0;
  transition: opacity 0.3s ease;
}

.gallery-item:hover .gallery-actions {
  opacity: 1;
}

.gallery-item.video::after {
  content: '\f144';
  font-family: 'Font Awesome 5 Free';
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  font-size: 3rem;
  color: white;
  text-shadow: 0 2px 4px rgba(0,0,0,0.3);
  opacity: 0.9;
  pointer-events: none;
}

.gallery-item.video:hover::after {
  opacity: 0;
}

/* Calendar Styles for Barber Dashboard */
.calendar-nav {
  display: flex;
  align-items: center;
  gap: var(--space-4);
}

.calendar-nav h3 {
  margin: 0;
  min-width: 150px;
  text-align: center;
  color: var(--color-text);
  font-weight: 700;
}

.calendar-container {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  padding: var(--space-4);
  margin-top: var(--space-4);
}

.calendar-weekdays {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: var(--space-2);
  margin-bottom: var(--space-2);
  text-align: center;
  font-weight: 700;
  color: var(--color-muted);
}

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

.calendar-day {
  aspect-ratio: 1;
  border-radius: var(--radius-sm);
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: var(--space-2);
  cursor: pointer;
  transition: all 0.3s ease;
  position: relative;
  background: var(--light-color);
  color: var(--color-text);
}

.calendar-day:hover {
  background: rgba(212, 175, 55, 0.1);
  transform: translateY(-2px);
}

.calendar-day.today {
  background: var(--gold-primary);
  color: var(--black-primary);
  font-weight: 700;
}

.calendar-day.has-bookings::after {
  content: '';
  position: absolute;
  bottom: var(--space-1);
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--gold-primary);
}

[data-theme="dark"] .calendar-day.has-bookings::after {
  background: var(--gold-accent);
}
[data-theme="dark"] .calendar-day.has-bookings { color: #2b2626; }

/* Improve visibility for today in dark mode */
[data-theme="dark"] .calendar-day.today {
  background: var(--gold-primary);
  color: #2b2626;
  font-weight: 800;
}

.calendar-day.other-month {
  opacity: 0.5;
}

.day-bookings {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  padding: var(--space-6);
  margin-top: var(--space-4);
}

.day-bookings-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: var(--space-6);
}

.day-bookings-header h3 {
  margin: 0;
  color: var(--color-text);
  font-weight: 700;
}

.day-bookings-list {
  display: grid;
  gap: var(--space-4);
}

.day-booking-item {
  display: flex;
  align-items: center;
  gap: var(--space-4);
  padding: var(--space-4);
  border-radius: var(--radius-md);
  background: var(--light-color);
  transition: transform 0.3s ease;
}

.day-booking-item:hover {
  transform: translateX(-5px);
}

.booking-time {
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--gold-primary);
  min-width: 80px;
}

.booking-details {
  flex: 1;
}

.booking-details h4 {
  margin: 0 0 var(--space-1);
  color: var(--color-text);
  font-weight: 600;
}

.booking-details p {
  margin: 0;
  color: var(--color-muted);
  font-size: 0.875rem;
}

.booking-status {
  margin-right: auto;
}

/* Notification Styles */
.notification {
  position: fixed;
  top: 20px;
  left: 20px;
  z-index: 1000;
  animation: slideIn 0.3s ease-out;
}

.notification-content {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  padding: var(--space-4);
  box-shadow: 0 4px 20px rgba(0,0,0,0.15);
  display: flex;
  align-items: center;
  gap: var(--space-4);
  min-width: 300px;
}

.notification-content i {
  font-size: 1.5rem;
  color: var(--gold-primary);
}

.notification-text {
  flex: 1;
}

.notification-text h4 {
  margin: 0 0 var(--space-1);
  color: var(--color-text);
  font-weight: 700;
}

.notification-text p {
  margin: 0;
  color: var(--color-muted);
  font-size: 0.875rem;
}

.notification-close {
  background: none;
  border: none;
  color: var(--color-muted);
  cursor: pointer;
  padding: var(--space-2);
  font-size: 1rem;
  transition: color 0.3s ease;
}

.notification-close:hover {
  color: var(--color-text);
}

@keyframes slideIn {
  from {
    transform: translateX(-100%);
    opacity: 0;
  }
  to {
    transform: translateX(0);
    opacity: 1;
  }
}

/* Section Header with Actions */
.section-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: var(--space-6);
}

.section-header h2 {
  margin: 0;
  color: var(--color-text);
  font-weight: 700;
}

/* Pagination Wrapper */
.pagination-wrapper {
  margin-top: var(--space-6);
  display: flex;
  justify-content: center;
}

/* Dark Theme Overrides for Dashboard Components */
[data-theme="dark"] .dashboard-section {
  background: var(--black-light);
  border-color: var(--gray-dark);
}

[data-theme="dark"] .dashboard-section .section-header h2 {
  color: var(--color-text);
}

[data-theme="dark"] .form-group input,
[data-theme="dark"] .form-group select,
[data-theme="dark"] .form-group textarea {
  background: var(--black-light);
  border-color: var(--gray-dark);
  color: var(--color-text);
}

[data-theme="dark"] .form-group input:focus,
[data-theme="dark"] .form-group select:focus,
[data-theme="dark"] .form-group textarea:focus {
  border-color: var(--gold-primary);
  box-shadow: 0 0 0 3px rgba(212, 175, 55, 0.1);
}

[data-theme="dark"] .form-group input[type="file"] {
  background: var(--gray-dark);
  border-color: var(--gray-dark);
}

[data-theme="dark"] .service-item {
  background: var(--black-light);
  border-color: var(--gray-dark);
}

[data-theme="dark"] .service-header label {
  color: var(--color-text);
}

[data-theme="dark"] .service-price label {
  color: var(--color-text);
}

[data-theme="dark"] .gallery-item {
  background: var(--gray-dark);
}

[data-theme="dark"] .calendar-container {
  background: var(--black-light);
  border-color: var(--gray-dark);
}

[data-theme="dark"] .calendar-day {
  background: var(--gray-dark);
  color: var(--color-text);
}

[data-theme="dark"] .calendar-day:hover {
  background: rgba(212, 175, 55, 0.1);
}

[data-theme="dark"] .day-bookings {
  background: var(--black-light);
  border-color: var(--gray-dark);
}

[data-theme="dark"] .day-bookings-header h3 {
  color: var(--color-text);
}

[data-theme="dark"] .day-booking-item {
  background: var(--gray-dark);
}

[data-theme="dark"] .day-booking-item .booking-details h4 {
  color: var(--color-text);
}

[data-theme="dark"] .notification-content {
  background: var(--black-light);
  border-color: var(--gray-dark);
}

[data-theme="dark"] .notification-text h4 {
  color: var(--color-text);
}

/* Responsive Design for Dashboard Components */
@media (max-width: 768px) {
  .form-row {
    grid-template-columns: 1fr;
  }
  
  .services-grid {
    grid-template-columns: 1fr;
  }
  
  .gallery-grid {
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  }
  
  .calendar-nav {
    flex-direction: column;
    gap: var(--space-2);
  }
  
  .calendar-nav h3 {
    min-width: auto;
  }
  
  .section-header {
    flex-direction: column;
    gap: var(--space-3);
    text-align: center;
  }
  
  .day-booking-item {
    flex-direction: column;
    text-align: center;
    gap: var(--space-2);
  }
  
  .booking-time {
    min-width: auto;
  }
  
  .booking-status {
    margin-right: 0;
  }
}

@media (max-width: 480px) {
  .dashboard-section {
    padding: var(--space-4);
  }
  
  .calendar-container {
    padding: var(--space-3);
  }
  
  .calendar-day {
    padding: var(--space-1);
    font-size: 0.875rem;
  }
  
  .day-bookings {
    padding: var(--space-4);
  }
  
  .notification-content {
    min-width: 280px;
    margin: 0 var(--space-2);
  }
}

/* Clients Dashboard Styles */
.clients-table {
    overflow-x: auto;
    background: var(--color-surface);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-md);
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

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

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

.clients-table th {
    background: linear-gradient(135deg, var(--gold-light) 0%, var(--color-surface) 100%);
    font-weight: 600;
    color: var(--color-text);
    border-bottom: 2px solid var(--gold-primary);
}

.clients-table tr:hover {
    background: var(--gold-light);
}

.client-info {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.client-avatar,
.client-avatar-placeholder {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--gold-light);
    color: var(--color-muted);
    border: 2px solid var(--gold-primary);
}

.client-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.status-badge {
    padding: 0.25rem 0.75rem;
    border-radius: 20px;
    font-size: 0.875rem;
    font-weight: 500;
    text-align: center;
    display: inline-block;
}

.status-active {
    background: #d4edda;
    color: #155724;
}

.status-inactive {
    background: #f8d7da;
    color: #721c24;
}

.action-buttons {
    display: flex;
    gap: 0.5rem;
}

.btn-sm {
    padding: 0.25rem 0.5rem;
    font-size: 0.875rem;
    border-radius: var(--radius-sm);
    border: none;
    cursor: pointer;
    transition: all 0.3s ease;
    font-weight: 500;
}

.btn-sm.btn-primary {
    background: linear-gradient(135deg, var(--gold-primary) 0%, var(--gold-dark) 100%);
    color: white;
}

.btn-sm.btn-primary:hover {
    background: linear-gradient(135deg, var(--gold-dark) 0%, var(--gold-primary) 100%);
    transform: translateY(-1px);
}

.btn-sm.btn-secondary {
    background: var(--color-muted);
    color: var(--color-text);
}

.btn-sm.btn-secondary:hover {
    background: var(--color-border);
    transform: translateY(-1px);
}

.btn-sm.btn-danger {
    background: #dc3545;
    color: white;
}

.btn-sm.btn-danger:hover {
    background: #c82333;
    transform: translateY(-1px);
}

.pagination-wrapper {
    margin-top: 2rem;
    display: flex;
    justify-content: center;
}

/* Modal Styles */
.modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0,0,0,0.5);
    backdrop-filter: blur(5px);
}

.modal.show {
    display: flex;
    align-items: center;
    justify-content: center;
}

.modal-content {
    background: var(--color-surface);
    border-radius: var(--radius-lg);
    padding: 2rem;
    box-shadow: 0 4px 20px rgba(0,0,0,0.2);
    max-width: 500px;
    width: 90%;
    max-height: 90vh;
    overflow-y: auto;
    border: 1px solid var(--color-border);
}

.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.5rem;
    padding-bottom: 1rem;
    border-bottom: 2px solid var(--gold-primary);
}

.modal-header h3 {
    margin: 0;
    color: var(--color-text);
    font-weight: 700;
}

.modal-close {
    background: none;
    border: none;
    font-size: 1.5rem;
    cursor: pointer;
    color: var(--color-muted);
    transition: color 0.3s ease;
}

.modal-close:hover {
    color: var(--gold-primary);
}

.modal-body {
    margin-bottom: 1.5rem;
}

.modal-footer {
    display: flex;
    justify-content: flex-end;
    gap: 1rem;
    padding-top: 1rem;
    border-top: 1px solid var(--color-border);
}

/* Dark Theme Overrides for Dashboard Clients */
[data-theme="dark"] .clients-table {
    border-color: var(--black-primary);
}

[data-theme="dark"] .clients-table table {
    background: var(--black-light);
}

[data-theme="dark"] .clients-table th {
    background: linear-gradient(135deg, var(--black-primary) 0%, var(--black-light) 100%);
    color: var(--gold-primary);
    border-bottom-color: var(--gold-primary);
}

[data-theme="dark"] .clients-table th,
[data-theme="dark"] .clients-table td {
    border-bottom-color: var(--black-primary);
    color: var(--gold-primary);
}

[data-theme="dark"] .clients-table tr:hover {
    background: var(--black-primary);
}

[data-theme="dark"] .client-avatar,
[data-theme="dark"] .client-avatar-placeholder {
    background: var(--black-primary);
    color: var(--gold-primary);
    border-color: var(--gold-accent);
}

[data-theme="dark"] .btn-sm.btn-secondary {
    background: var(--black-primary);
    color: var(--gold-primary);
}

[data-theme="dark"] .btn-sm.btn-secondary:hover {
    background: var(--black-primary);
    color: var(--gold-accent);
}

[data-theme="dark"] .modal-content {
    background: var(--black-light);
    border-color: var(--black-primary);
}

[data-theme="dark"] .modal-header h3 {
    color: var(--gold-primary);
}

[data-theme="dark"] .modal-header {
    border-bottom-color: var(--gold-primary);
}

[data-theme="dark"] .modal-close {
    color: var(--gold-primary);
}

[data-theme="dark"] .modal-close:hover {
    color: var(--gold-accent);
}

[data-theme="dark"] .modal-footer {
    border-top-color: var(--black-primary);
}

/* Responsive Design for Dashboard Clients */
@media (max-width: 768px) {
    .clients-table th,
    .clients-table td {
        padding: 0.75rem;
        font-size: 0.875rem;
    }
    
    .client-info {
        gap: 0.5rem;
    }
    
    .client-avatar,
    .client-avatar-placeholder {
        width: 35px;
        height: 35px;
    }
    
    .action-buttons {
        flex-direction: column;
        gap: 0.25rem;
    }
    
    .modal-content {
        padding: 1.5rem;
        width: 95%;
    }
}

@media (max-width: 480px) {
    .clients-table {
        font-size: 0.8rem;
    }
    
    .clients-table th,
    .clients-table td {
        padding: 0.5rem;
    }
    
    .client-avatar,
    .client-avatar-placeholder {
        width: 30px;
        height: 30px;
    }
    
    .modal-content {
        padding: 1rem;
        width: 98%;
    }
    
    .modal-header {
        flex-direction: column;
        gap: 1rem;
        align-items: flex-start;
    }
    
    .modal-footer {
        flex-direction: column;
        gap: 0.5rem;
    }
}

/* Regions Dashboard Styles */
.regions-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 1.5rem;
}

.region-card {
    background: var(--color-surface);
    border-radius: var(--radius-lg);
    padding: 1.5rem;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border: 1px solid var(--color-border);
}

.region-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 20px rgba(0,0,0,0.15);
}

.region-header h3 {
    margin: 0 0 0.5rem 0;
    color: var(--color-text);
    font-size: 1.25rem;
    font-weight: 700;
}

.region-name-en {
    margin: 0;
    color: var(--color-muted);
    font-size: 0.9rem;
    font-style: italic;
}

.region-description {
    margin: 1rem 0;
    color: var(--color-text);
    line-height: 1.5;
}

.region-stats {
    display: flex;
    gap: 1rem;
    margin: 1rem 0;
    flex-wrap: wrap;
}

.region-stats .stat {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--color-muted);
    font-size: 0.875rem;
    background: var(--gold-light);
    padding: 0.5rem 0.75rem;
    border-radius: var(--radius-sm);
    border: 1px solid var(--gold-primary);
}

.region-stats .stat i {
    color: var(--gold-primary);
}

.region-actions {
    display: flex;
    gap: 0.5rem;
    margin-top: 1rem;
    flex-wrap: wrap;
}

.region-actions button {
    padding: 0.5rem 1rem;
    border: none;
    border-radius: var(--radius-sm);
    font-size: 0.875rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.region-actions .btn-edit {
    background: linear-gradient(135deg, var(--gold-primary) 0%, var(--gold-dark) 100%);
    color: white;
}

.region-actions .btn-edit:hover {
    background: linear-gradient(135deg, var(--gold-dark) 0%, var(--gold-primary) 100%);
    transform: translateY(-1px);
}

.region-actions .btn-delete {
    background: #dc3545;
    color: white;
}

.region-actions .btn-delete:hover {
    background: #c82333;
    transform: translateY(-1px);
}

/* Dark Theme Overrides for Dashboard Regions */
[data-theme="dark"] .region-card {
    background: var(--black-light);
    border-color: var(--black-primary);
}

[data-theme="dark"] .region-header h3 {
    color: var(--gold-primary);
}

[data-theme="dark"] .region-name-en {
    color: var(--gold-primary);
}

[data-theme="dark"] .region-description {
    color: var(--gold-primary);
}

[data-theme="dark"] .region-stats .stat {
    background: var(--black-primary);
    color: var(--gold-primary);
    border-color: var(--gold-accent);
}

[data-theme="dark"] .region-stats .stat i {
    color: var(--gold-accent);
}

/* Responsive Design for Dashboard Regions */
@media (max-width: 768px) {
    .regions-grid {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
    
    .region-card {
        padding: 1rem;
    }
    
    .region-stats {
        gap: 0.5rem;
    }
    
    .region-stats .stat {
        font-size: 0.8rem;
        padding: 0.25rem 0.5rem;
    }
    
    .region-actions {
        gap: 0.25rem;
    }
    
    .region-actions button {
        padding: 0.25rem 0.75rem;
        font-size: 0.8rem;
    }
}

@media (max-width: 480px) {
    .region-header h3 {
        font-size: 1.1rem;
    }
    
    .region-stats {
        flex-direction: column;
        gap: 0.5rem;
    }
    
    .region-actions {
        flex-direction: column;
        gap: 0.5rem;
    }
    
    .region-actions button {
        width: 100%;
        justify-content: center;
    }
}

/* Layout Components */
.admin-layout {
    min-height: 100vh;
}

.admin-sidebar {
    width: 280px;
    background: linear-gradient(180deg, var(--color-surface) 0%, var(--gold-light) 100%);
    border-right: 2px solid var(--gold-primary);
    display: flex;
    flex-direction: column;
}

.admin-sidebar .nav-link {
    color: var(--color-text);
    text-decoration: none;
    padding: 0.75rem 1rem;
    border-radius: var(--radius-sm);
    margin-bottom: 0.25rem;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.admin-sidebar .nav-link:hover {
    background: rgba(212, 175, 55, 0.1);
    color: var(--gold-primary);
    transform: translateX(-2px);
}

.admin-sidebar .nav-link i {
    width: 20px;
    text-align: center;
}

.admin-main {
    flex: 1;
    background: var(--color-bg);
}

.admin-topbar {
    background: var(--color-surface);
    border-bottom: 1px solid var(--color-border);
    padding: 1rem 1.5rem;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

/* Modal Styles */
.modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0,0,0,0.5);
    backdrop-filter: blur(4px);
}

.modal-content {
    background: var(--color-surface);
    margin: 5% auto;
    padding: 0;
    border-radius: var(--radius-lg);
    width: 90%;
    max-width: 600px;
    max-height: 80vh;
    overflow-y: auto;
    box-shadow: 0 20px 60px rgba(0,0,0,0.3);
    border: 1px solid var(--color-border);
}

.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.5rem;
    border-bottom: 1px solid var(--color-border);
    background: linear-gradient(135deg, var(--gold-light) 0%, var(--color-surface) 100%);
}

.modal-header h3 {
    margin: 0;
    color: var(--color-text);
    font-weight: 700;
}

.modal-close {
    background: none;
    border: none;
    font-size: 1.5rem;
    cursor: pointer;
    color: var(--color-muted);
    padding: 0.5rem;
    border-radius: var(--radius-sm);
    transition: all 0.3s ease;
}

.modal-close:hover {
    color: var(--color-text);
    background: rgba(212, 175, 55, 0.1);
}

.modal-body {
    padding: 1.5rem;
}

.form-actions {
    display: flex;
    gap: 1rem;
    justify-content: flex-end;
    margin-top: 1.5rem;
    padding-top: 1rem;
    border-top: 1px solid var(--color-border);
}

/* Dark Theme Overrides for New Components */
[data-theme="dark"] .clients-table {
    background: var(--black-light);
    border-color: var(--black-primary);
}

[data-theme="dark"] .clients-table th {
    background: linear-gradient(135deg, var(--black-primary) 0%, var(--black-light) 100%);
    color: var(--gold-primary);
    border-bottom-color: var(--gold-primary);
}

[data-theme="dark"] .clients-table td {
    border-bottom-color: var(--black-primary);
}

[data-theme="dark"] .clients-table tr:hover {
    background: rgba(255, 215, 0, 0.1);
}

[data-theme="dark"] .client-avatar,
[data-theme="dark"] .client-avatar-placeholder {
    background: linear-gradient(135deg, var(--black-primary) 0%, var(--black-light) 100%);
    color: var(--gold-primary);
    border-color: var(--gold-primary);
}

[data-theme="dark"] .region-card {
    background: var(--black-light);
    border-color: var(--black-primary);
}

[data-theme="dark"] .region-card h3 {
    color: var(--gold-primary);
}

[data-theme="dark"] .region-stats .stat {
    background: var(--black-primary);
    border-color: var(--gold-primary);
    color: var(--gold-primary);
}

[data-theme="dark"] .region-stats .stat i {
    color: var(--gold-primary);
}

[data-theme="dark"] .admin-sidebar {
    background: linear-gradient(180deg, var(--black-light) 0%, var(--black-primary) 100%);
    border-right-color: var(--gold-primary);
}

[data-theme="dark"] .admin-sidebar .nav-link {
    color: var(--gold-primary);
}

[data-theme="dark"] .admin-sidebar .nav-link:hover {
    background: rgba(255, 215, 0, 0.1);
    color: var(--gold-accent);
}

[data-theme="dark"] .admin-topbar {
    background: var(--black-light);
    border-bottom-color: var(--black-primary);
}

[data-theme="dark"] .modal-content {
    background: var(--black-light);
    border-color: var(--black-primary);
}

[data-theme="dark"] .modal-header {
    background: linear-gradient(135deg, var(--black-primary) 0%, var(--black-light) 100%);
    border-bottom-color: var(--black-primary);
}

[data-theme="dark"] .modal-header h3 {
    color: var(--gold-primary);
}

[data-theme="dark"] .modal-close {
    color: var(--gold-primary);
}

[data-theme="dark"] .modal-close:hover {
    color: var(--gold-accent);
    background: rgba(255, 215, 0, 0.1);
}

[data-theme="dark"] .form-actions {
    border-top-color: var(--black-primary);
}

/* Responsive Design for New Components */
@media (max-width: 768px) {
    .clients-table {
        font-size: 0.875rem;
    }
    
    .clients-table th,
    .clients-table td {
        padding: 0.5rem;
    }
    
    .client-info {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.5rem;
    }
    
    .region-stats {
        flex-direction: column;
        gap: 0.5rem;
    }
    
    .region-actions {
        flex-direction: column;
    }
    
    .admin-sidebar {
        width: 100%;
        position: fixed;
        top: 0;
        left: 0;
        height: 100vh;
        z-index: 1000;
        transform: translateX(-100%);
        transition: transform 0.3s ease;
    }
    
    .admin-sidebar.active {
        transform: translateX(0);
    }
    
    .admin-main {
        margin-left: 0;
    }
}

@media (max-width: 480px) {
    .modal-content {
        width: 95%;
        margin: 10% auto;
    }
    
    .modal-header,
    .modal-body {
        padding: 1rem;
    }
    
    .form-actions {
        flex-direction: column;
    }
    
    .region-card {
        padding: 1rem;
    }
    
    .region-header h3 {
        font-size: 1.1rem;
    }
}

/* Email Templates Styles */
.email-container {
    max-width: 600px;
    margin: 0 auto;
    background: var(--color-surface);
    padding: 2rem;
    border-radius: var(--radius-lg);
    box-shadow: 0 4px 20px rgba(0,0,0,0.1);
    border: 1px solid var(--color-border);
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.6;
    color: var(--color-text);
}

.email-header {
    text-align: center;
    margin-bottom: 2rem;
    padding-bottom: 1.5rem;
    border-bottom: 2px solid var(--gold-primary);
    background: linear-gradient(135deg, var(--gold-light) 0%, var(--color-surface) 100%);
    border-radius: var(--radius-md);
    padding: 1.5rem;
    margin: -2rem -2rem 2rem -2rem;
}

.email-header h1 {
    margin: 0;
    color: var(--color-text);
    font-size: 1.75rem;
    font-weight: 700;
    text-shadow: 0 1px 2px rgba(0,0,0,0.1);
}

.email-content {
    margin-bottom: 2rem;
    color: var(--color-text);
}

.email-content p {
    margin: 1rem 0;
    line-height: 1.7;
}

.email-button {
    display: inline-block;
    padding: 0.75rem 1.5rem;
    background: linear-gradient(135deg, var(--gold-primary) 0%, var(--gold-dark) 100%);
    color: white;
    text-decoration: none;
    border-radius: var(--radius-md);
    font-weight: 600;
    transition: all 0.3s ease;
    border: none;
    cursor: pointer;
    text-align: center;
    box-shadow: 0 2px 10px rgba(212, 175, 55, 0.2);
}

.email-button:hover {
    background: linear-gradient(135deg, var(--gold-dark) 0%, var(--gold-primary) 100%);
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(212, 175, 55, 0.3);
    color: white;
    text-decoration: none;
}

.email-footer {
    text-align: center;
    margin-top: 2rem;
    padding-top: 1.5rem;
    border-top: 1px solid var(--color-border);
    color: var(--color-muted);
}

.reminder-details {
    background: linear-gradient(135deg, var(--gold-light) 0%, var(--color-surface) 100%);
    padding: 1.5rem;
    border-radius: var(--radius-md);
    margin-bottom: 2rem;
    border: 1px solid var(--gold-primary);
    box-shadow: 0 2px 10px rgba(212, 175, 55, 0.1);
}

.reminder-details p {
    margin: 0.75rem 0;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.5rem 0;
    border-bottom: 1px solid rgba(212, 175, 55, 0.2);
}

.reminder-details p:last-child {
    border-bottom: none;
}

.reminder-details strong {
    color: var(--gold-primary);
    font-weight: 700;
    min-width: 80px;
}

.reminder-details span {
    color: var(--color-text);
    font-weight: 500;
}

/* Booking Email Template Styles */
.booking-email-container {
    max-width: 600px;
    margin: 0 auto;
    background: var(--color-surface);
    padding: 2rem;
    border-radius: var(--radius-lg);
    box-shadow: 0 4px 20px rgba(0,0,0,0.1);
    border: 1px solid var(--color-border);
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.6;
    color: var(--color-text);
}

.booking-email-header {
    text-align: center;
    margin-bottom: 2rem;
    padding-bottom: 1.5rem;
    border-bottom: 2px solid var(--gold-primary);
    background: linear-gradient(135deg, var(--gold-light) 0%, var(--color-surface) 100%);
    border-radius: var(--radius-md);
    padding: 1.5rem;
    margin: -2rem -2rem 2rem -2rem;
}

.booking-email-header h1 {
    margin: 0;
    color: var(--color-text);
    font-size: 1.75rem;
    font-weight: 700;
    text-shadow: 0 1px 2px rgba(0,0,0,0.1);
}

.booking-details {
    background: linear-gradient(135deg, var(--gold-light) 0%, var(--color-surface) 100%);
    padding: 1.5rem;
    border-radius: var(--radius-md);
    margin-bottom: 2rem;
    border: 1px solid var(--gold-primary);
    box-shadow: 0 2px 10px rgba(212, 175, 55, 0.1);
}

.booking-details p {
    margin: 0.75rem 0;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.5rem 0;
    border-bottom: 1px solid rgba(212, 175, 55, 0.2);
}

.booking-details p:last-child {
    border-bottom: none;
}

.booking-details strong {
    color: var(--gold-primary);
    font-weight: 700;
    min-width: 80px;
}

.booking-details span {
    color: var(--color-text);
    font-weight: 500;
}

.booking-email-content {
    margin-bottom: 2rem;
    color: var(--color-text);
}

.booking-email-content p {
    margin: 1rem 0;
    line-height: 1.7;
}

/* Dark Theme Overrides for Email Templates */
[data-theme="dark"] .email-container {
    background: var(--black-light);
    border-color: var(--black-primary);
    color: var(--gold-primary);
}

[data-theme="dark"] .email-header {
    background: linear-gradient(135deg, var(--black-primary) 0%, var(--black-light) 100%);
    border-bottom-color: var(--gold-primary);
}

[data-theme="dark"] .email-header h1 {
    color: var(--gold-primary);
}

[data-theme="dark"] .email-content {
    color: var(--gold-primary);
}

[data-theme="dark"] .reminder-details {
    background: linear-gradient(135deg, var(--black-primary) 0%, var(--black-light) 100%);
    border-color: var(--gold-primary);
}

[data-theme="dark"] .reminder-details strong {
    color: var(--gold-accent);
}

[data-theme="dark"] .reminder-details span {
    color: var(--gold-primary);
}

[data-theme="dark"] .reminder-details p {
    border-bottom-color: rgba(255, 215, 0, 0.2);
}

[data-theme="dark"] .email-footer {
    border-top-color: var(--black-primary);
    color: var(--gold-primary);
}

/* Dark Theme Overrides for Booking Email */
[data-theme="dark"] .booking-email-container {
    background: var(--black-light);
    border-color: var(--black-primary);
    color: var(--gold-primary);
}

[data-theme="dark"] .booking-email-header {
    background: linear-gradient(135deg, var(--black-primary) 0%, var(--black-light) 100%);
    border-bottom-color: var(--gold-primary);
}

[data-theme="dark"] .booking-email-header h1 {
    color: var(--gold-primary);
}

[data-theme="dark"] .booking-details {
    background: linear-gradient(135deg, var(--black-primary) 0%, var(--black-light) 100%);
    border-color: var(--gold-primary);
}

[data-theme="dark"] .booking-details strong {
    color: var(--gold-accent);
}

[data-theme="dark"] .booking-details span {
    color: var(--gold-primary);
}

[data-theme="dark"] .booking-details p {
    border-bottom-color: rgba(255, 215, 0, 0.2);
}

[data-theme="dark"] .booking-email-content {
    color: var(--gold-primary);
}

/* Responsive Design for Email Templates */
@media (max-width: 768px) {
    .email-container {
        margin: 1rem;
        padding: 1.5rem;
    }
    
    .email-header {
        margin: -1.5rem -1.5rem 1.5rem -1.5rem;
        padding: 1rem;
    }
    
    .email-header h1 {
        font-size: 1.5rem;
    }
    
    .reminder-details {
        padding: 1rem;
    }
    
    .reminder-details p {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.25rem;
    }
    
    .reminder-details strong {
        min-width: auto;
    }
    
    .booking-email-container {
        margin: 1rem;
        padding: 1.5rem;
    }
    
    .booking-email-header {
        margin: -1.5rem -1.5rem 1.5rem -1.5rem;
        padding: 1rem;
    }
    
    .booking-email-header h1 {
        font-size: 1.5rem;
    }
    
    .booking-details {
        padding: 1rem;
    }
    
    .booking-details p {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.25rem;
    }
    
    .booking-details strong {
        min-width: auto;
    }
}

@media (max-width: 480px) {
    .email-container {
        margin: 0.5rem;
        padding: 1rem;
    }
    
    .email-header {
        margin: -1rem -1rem 1rem -1rem;
        padding: 0.75rem;
    }
    
    .email-header h1 {
        font-size: 1.25rem;
    }
    
    .email-button {
        width: 100%;
        padding: 1rem;
    }
    
    .booking-email-container {
        margin: 0.5rem;
        padding: 1rem;
    }
    
    .booking-email-header {
        margin: -1rem -1rem 1rem -1rem;
        padding: 0.75rem;
    }
    
    .booking-email-header h1 {
        font-size: 1.25rem;
    }
}

/* Barber Show Page Styles */
.barber-profile-container {
    padding: 2rem 0;
}

.barber-profile {
    background: var(--color-surface);
    border-radius: var(--radius-xl);
    box-shadow: 0 4px 20px rgba(0,0,0,0.1);
    overflow: hidden;
    border: 1px solid var(--color-border);
}

.barber-header {
    position: relative;
    padding: 3rem 2rem;
    background: linear-gradient(135deg, var(--gold-primary) 0%, var(--gold-dark) 100%);
    color: white;
    text-align: center;
}

.barber-image {
    width: 150px;
    height: 150px;
    margin: 0 auto 1.5rem;
    border-radius: 50%;
    overflow: hidden;
    border: 4px solid rgba(255,255,255,0.2);
    box-shadow: 0 4px 15px rgba(0,0,0,0.2);
}

.barber-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.barber-placeholder {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255,255,255,0.1);
    font-size: 3rem;
    color: rgba(255,255,255,0.7);
}

.barber-info h1 {
    font-size: 2rem;
    margin-bottom: 1rem;
    color: white;
    text-shadow: 0 2px 4px rgba(0,0,0,0.3);
}

.barber-rating {
    margin-bottom: 1rem;
}

.barber-rating .fas {
    color: #ffd700;
    margin: 0 2px;
    text-shadow: 0 1px 2px rgba(0,0,0,0.3);
}

.barber-rating span {
    margin-right: 0.5rem;
    opacity: 0.9;
}

.barber-bio {
    max-width: 600px;
    margin: 0 auto 1.5rem;
    line-height: 1.6;
    opacity: 0.9;
}

.barber-details {
    display: flex;
    justify-content: center;
    gap: 2rem;
    flex-wrap: wrap;
}

.detail {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    opacity: 0.9;
    background: rgba(255,255,255,0.1);
    padding: 0.5rem 1rem;
    border-radius: var(--radius-md);
    backdrop-filter: blur(10px);
}

.barber-sections {
    padding: 2rem;
}

.section-title {
    text-align: center;
    margin-bottom: 2rem;
    color: var(--color-text);
    font-size: 1.5rem;
    font-weight: 700;
    position: relative;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: -0.5rem;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 3px;
    background: linear-gradient(135deg, var(--gold-primary) 0%, var(--gold-dark) 100%);
    border-radius: 2px;
}

/* Dark Theme Overrides for Barber Show */
[data-theme="dark"] .barber-profile {
    background: var(--black-light);
    border-color: var(--black-primary);
}

[data-theme="dark"] .barber-header {
    background: linear-gradient(135deg, var(--black-primary) 0%, var(--gold-dark) 100%);
}

[data-theme="dark"] .section-title {
    color: var(--gold-primary);
}

[data-theme="dark"] .section-title::after {
    background: linear-gradient(135deg, var(--gold-accent) 0%, var(--gold-primary) 100%);
}

/* Responsive Design for Barber Show */
@media (max-width: 768px) {
    .barber-profile-container {
        padding: 1rem 0;
    }
    
    .barber-header {
        padding: 2rem 1rem;
    }
    
    .barber-image {
        width: 120px;
        height: 120px;
    }
    
    .barber-info h1 {
        font-size: 1.5rem;
    }
    
    .barber-details {
        gap: 1rem;
    }
    
    .detail {
        padding: 0.25rem 0.75rem;
        font-size: 0.9rem;
    }
    
    .barber-sections {
        padding: 1rem;
    }
}

@media (max-width: 480px) {
    .barber-header {
        padding: 1.5rem 0.5rem;
    }
    
    .barber-image {
        width: 100px;
        height: 100px;
    }
    
    .barber-info h1 {
        font-size: 1.25rem;
    }
    
    .barber-details {
        flex-direction: column;
        gap: 0.5rem;
    }
    
    .detail {
        justify-content: center;
    }
}

/* Booking Create Page Styles */
.time-slots {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1rem;
}

.time-slot {
    background: var(--color-surface);
    border-radius: var(--radius-lg);
    padding: 1rem;
    cursor: pointer;
    transition: all 0.3s ease;
    border: 2px solid transparent;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

.time-slot:not(.disabled):hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
    border-color: var(--gold-primary);
}

.time-slot.selected {
    background: linear-gradient(135deg, var(--gold-primary) 0%, var(--gold-dark) 100%);
    color: white;
    border-color: var(--gold-primary);
}

.time-slot.disabled {
    opacity: 0.7;
    cursor: not-allowed;
    background: var(--color-muted);
    border-color: var(--color-border);
}

.time-slot-content {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.time-label, .duration-label {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.time-label i {
    color: var(--gold-primary);
}

.time-slot.selected .time-label i,
.time-slot.selected .duration-label i {
    color: white;
}

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

.time-slot.selected .duration-label {
    color: rgba(255,255,255,0.9);
}

.unavailable-label {
    margin-top: 0.5rem;
    text-align: center;
    color: #dc3545;
    font-size: 0.875rem;
}

.loading-slots,
.no-service-selected,
.error-loading {
    text-align: center;
    padding: 2rem;
    color: var(--color-muted);
}

.loading-slots i,
.no-service-selected i,
.error-loading i {
    font-size: 2rem;
    margin-bottom: 1rem;
    display: block;
}

.loading-slots i {
    color: var(--gold-primary);
}

.no-service-selected i {
    color: var(--gold-accent);
}

.error-loading i {
    color: #dc3545;
}

/* Dark Theme Overrides for Booking Create */
[data-theme="dark"] .time-slot {
    background: var(--black-light);
    border-color: var(--black-primary);
}

[data-theme="dark"] .time-slot.disabled {
    background: var(--black-primary);
    border-color: var(--black-primary);
}

[data-theme="dark"] .time-label i {
    color: var(--gold-accent);
}

[data-theme="dark"] .duration-label {
    color: var(--gold-primary);
}

[data-theme="dark"] .loading-slots,
[data-theme="dark"] .no-service-selected,
[data-theme="dark"] .error-loading {
    color: var(--gold-primary);
}

/* Responsive Design for Booking Create */
@media (max-width: 768px) {
    .time-slots {
        grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
        gap: 0.75rem;
    }
    
    .time-slot {
        padding: 0.75rem;
    }
    
    .time-slot-content {
        gap: 0.25rem;
    }
    
    .time-label, .duration-label {
        font-size: 0.875rem;
    }
}

@media (max-width: 480px) {
    .time-slots {
        grid-template-columns: 1fr;
        gap: 0.5rem;
    }
    
    .time-slot {
        padding: 1rem;
    }
    
    .loading-slots,
    .no-service-selected,
    .error-loading {
        padding: 1rem;
    }
}

/* Regions Show Page Styles */
.view-toggle {
    display: flex;
    gap: 1rem;
    justify-content: center;
    margin-bottom: 2rem;
}

.view-toggle button {
    padding: 0.75rem 1.5rem;
    border: 2px solid var(--color-border);
    background: var(--color-surface);
    border-radius: var(--radius-md);
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-weight: 600;
    transition: all 0.3s ease;
    color: var(--color-text);
}

.view-toggle button:hover {
    border-color: var(--gold-primary);
    color: var(--gold-primary);
    background: var(--gold-light);
}

.view-toggle button.active {
    border-color: var(--gold-primary);
    color: var(--gold-primary);
    background: linear-gradient(135deg, var(--gold-light) 0%, var(--color-surface) 100%);
    box-shadow: 0 2px 10px rgba(212, 175, 55, 0.2);
}

#map-view {
    height: 400px;
    border-radius: var(--radius-lg);
    margin-bottom: 2rem;
    display: none;
    border: 1px solid var(--color-border);
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
}

.map-active #map-view {
    display: block;
}

.map-active .barbers-grid {
    display: none;
}

.leaflet-popup-content {
    direction: rtl;
    text-align: right;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

.map-barber-card {
    padding: 1rem;
    background: var(--color-surface);
    border-radius: var(--radius-md);
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.map-barber-header {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1rem;
}

.map-barber-image {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    overflow: hidden;
    border: 2px solid var(--gold-primary);
}

.map-barber-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.map-barber-info h4 {
    margin: 0 0 0.25rem;
    color: var(--color-text);
    font-weight: 700;
}

.map-barber-rating {
    color: #ffd700;
    font-size: 0.875rem;
}

.map-barber-meta {
    margin-bottom: 1rem;
    font-size: 0.875rem;
    color: var(--color-muted);
}

.map-barber-actions {
    display: flex;
    gap: 0.5rem;
}

.map-barber-actions a {
    flex: 1;
    padding: 0.5rem;
    text-align: center;
    text-decoration: none;
    border-radius: var(--radius-sm);
    font-size: 0.875rem;
    font-weight: 600;
    transition: all 0.3s ease;
}

.map-barber-actions .btn-primary {
    background: linear-gradient(135deg, var(--gold-primary) 0%, var(--gold-dark) 100%);
    color: white;
}

.map-barber-actions .btn-primary:hover {
    background: linear-gradient(135deg, var(--gold-dark) 0%, var(--gold-primary) 100%);
    transform: translateY(-1px);
}

.map-barber-actions .btn-outline {
    background: transparent;
    color: var(--gold-primary);
    border: 1px solid var(--gold-primary);
}

.map-barber-actions .btn-outline:hover {
    background: var(--gold-primary);
    color: white;
}

/* Dark Theme Overrides for Regions Show */
[data-theme="dark"] .view-toggle button {
    background: var(--black-light);
    border-color: var(--black-primary);
    color: var(--gold-primary);
}

[data-theme="dark"] .view-toggle button:hover {
    border-color: var(--gold-accent);
    color: var(--gold-accent);
    background: var(--black-primary);
}

[data-theme="dark"] .view-toggle button.active {
    border-color: var(--gold-primary);
    color: var(--gold-primary);
    background: linear-gradient(135deg, var(--black-primary) 0%, var(--black-light) 100%);
}

[data-theme="dark"] #map-view {
    border-color: var(--black-primary);
}

[data-theme="dark"] .map-barber-card {
    background: var(--black-light);
    color: var(--gold-primary);
}

[data-theme="dark"] .map-barber-info h4 {
    color: var(--gold-primary);
}

[data-theme="dark"] .map-barber-meta {
    color: var(--gold-primary);
}

[data-theme="dark"] .map-barber-actions .btn-outline {
    color: var(--gold-accent);
    border-color: var(--gold-accent);
}

[data-theme="dark"] .map-barber-actions .btn-outline:hover {
    background: var(--gold-accent);
    color: var(--black-primary);
}

/* Responsive Design for Regions Show */
@media (max-width: 768px) {
    .view-toggle {
        gap: 0.5rem;
        margin-bottom: 1.5rem;
    }
    
    .view-toggle button {
        padding: 0.5rem 1rem;
        font-size: 0.875rem;
    }
    
    #map-view {
        height: 300px;
        margin-bottom: 1.5rem;
    }
    
    .map-barber-card {
        padding: 0.75rem;
    }
    
    .map-barber-header {
        gap: 0.75rem;
    }
    
    .map-barber-image {
        width: 40px;
        height: 40px;
    }
}

@media (max-width: 480px) {
    .view-toggle {
        flex-direction: column;
        gap: 0.5rem;
    }
    
    .view-toggle button {
        width: 100%;
        justify-content: center;
    }
    
    #map-view {
        height: 250px;
    }
    
    .map-barber-actions {
        flex-direction: column;
        gap: 0.25rem;
    }
}

/* Dashboard Index Page Styles */
.dashboard-container {
    padding: 2rem 0;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1.5rem;
    margin-bottom: 3rem;
}

.stat-card {
    background: var(--color-surface);
    border-radius: var(--radius-lg);
    padding: 2rem;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    display: flex;
    align-items: center;
    gap: 1rem;
    border: 1px solid var(--color-border);
    transition: all 0.3s ease;
}

.stat-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(0,0,0,0.15);
}

.stat-icon {
    font-size: 2.5rem;
    color: var(--gold-primary);
    background: linear-gradient(135deg, var(--gold-light) 0%, var(--color-surface) 100%);
    padding: 1rem;
    border-radius: var(--radius-md);
    box-shadow: 0 2px 10px rgba(212, 175, 55, 0.2);
}

.stat-content h3 {
    font-size: 2rem;
    margin: 0;
    color: var(--color-text);
    font-weight: 700;
}

.stat-content p {
    margin: 0;
    color: var(--color-muted);
    font-weight: 500;
}

.dashboard-section {
    background: var(--color-surface);
    border-radius: var(--radius-lg);
    padding: 2rem;
    margin-bottom: 2rem;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    border: 1px solid var(--color-border);
}

.section-header {
    margin-bottom: 2rem;
    text-align: center;
}

.section-header h2 {
    color: var(--color-text);
    margin-bottom: 0.5rem;
    font-weight: 700;
    font-size: 1.75rem;
}

.section-header p {
    color: var(--color-muted);
    font-size: 1rem;
}

.barbers-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 1.5rem;
}

.bookings-table {
    overflow-x: auto;
    border-radius: var(--radius-md);
    border: 1px solid var(--color-border);
}

.bookings-table table {
    width: 100%;
    border-collapse: collapse;
    background: var(--color-surface);
}

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

.bookings-table th {
    background: linear-gradient(135deg, var(--gold-light) 0%, var(--color-surface) 100%);
    font-weight: 600;
    color: var(--color-text);
    border-bottom: 2px solid var(--gold-primary);
}

.bookings-table tr:hover {
    background: var(--gold-light);
}

.status-badge {
    padding: 0.25rem 0.75rem;
    border-radius: 20px;
    font-size: 0.875rem;
    font-weight: 500;
    text-align: center;
    display: inline-block;
}

/* Dark Theme Overrides for Dashboard Index */
[data-theme="dark"] .stat-card {
    background: var(--black-light);
    border-color: var(--black-primary);
}

[data-theme="dark"] .stat-icon {
    background: linear-gradient(135deg, var(--black-primary) 0%, var(--black-light) 100%);
    color: var(--gold-accent);
}

[data-theme="dark"] .stat-content h3 {
    color: var(--gold-primary);
}

[data-theme="dark"] .stat-content p {
    color: var(--gold-primary);
}

[data-theme="dark"] .dashboard-section {
    background: var(--black-light);
    border-color: var(--black-primary);
}

[data-theme="dark"] .section-header h2 {
    color: var(--gold-primary);
}

[data-theme="dark"] .section-header p {
    color: var(--gold-primary);
}

[data-theme="dark"] .bookings-table {
    border-color: var(--black-primary);
}

[data-theme="dark"] .bookings-table table {
    background: var(--black-light);
}

[data-theme="dark"] .bookings-table th {
    background: linear-gradient(135deg, var(--black-primary) 0%, var(--black-light) 100%);
    color: var(--gold-primary);
    border-bottom-color: var(--gold-primary);
}

[data-theme="dark"] .bookings-table th,
[data-theme="dark"] .bookings-table td {
    border-bottom-color: var(--black-primary);
    color: var(--gold-primary);
}

[data-theme="dark"] .bookings-table tr:hover {
    background: var(--black-primary);
}

/* Responsive Design for Dashboard Index */
@media (max-width: 768px) {
    .dashboard-container {
        padding: 1rem 0;
    }
    
    .stats-grid {
        grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
        gap: 1rem;
        margin-bottom: 2rem;
    }
    
    .stat-card {
        padding: 1.5rem;
    }
    
    .stat-icon {
        font-size: 2rem;
        padding: 0.75rem;
    }
    
    .stat-content h3 {
        font-size: 1.5rem;
    }
    
    .dashboard-section {
        padding: 1.5rem;
        margin-bottom: 1.5rem;
    }
    
    .barbers-grid {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
    
    .bookings-table th,
    .bookings-table td {
        padding: 0.75rem;
        font-size: 0.875rem;
    }
}

@media (max-width: 480px) {
    .stats-grid {
        grid-template-columns: 1fr;
    }
    
    .stat-card {
        padding: 1rem;
        flex-direction: column;
        text-align: center;
    }
    
    .stat-icon {
        font-size: 1.75rem;
        padding: 0.5rem;
    }
    
    .stat-content h3 {
        font-size: 1.25rem;
    }
    
    .dashboard-section {
        padding: 1rem;
    }
    
    .section-header h2 {
        font-size: 1.5rem;
    }
}

/* Barber Dashboard Page Styles */
.profile-form,
.services-form {
    max-width: 800px;
    margin: 0 auto;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
    margin-bottom: 1rem;
}

.form-group {
    margin-bottom: 1rem;
}

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

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 0.75rem;
    border: 2px solid var(--color-border);
    border-radius: var(--radius-md);
    font-size: 1rem;
    transition: border-color 0.3s ease;
    background: var(--color-surface);
    color: var(--color-text);
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--gold-primary);
    box-shadow: 0 0 0 3px rgba(212, 175, 55, 0.1);
}

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

.form-group small {
    color: var(--color-muted);
    font-size: 0.875rem;
}

.image-upload-container {
    margin-top: 0.5rem;
}

.current-image {
    margin-bottom: 1rem;
}

.current-image img {
    width: 100px;
    height: 100px;
    object-fit: cover;
    border-radius: 50%;
    border: 3px solid var(--gold-primary);
    box-shadow: 0 2px 10px rgba(212, 175, 55, 0.2);
}

.form-group input[type="file"] {
    padding: 0.5rem;
    border: 2px dashed var(--color-border);
    border-radius: var(--radius-md);
    background: var(--gold-light);
    cursor: pointer;
    transition: border-color 0.3s ease;
}

.form-group input[type="file"]:hover {
    border-color: var(--gold-primary);
    background: var(--gold-light);
}

.form-group input[type="file"]:focus {
    outline: none;
    border-color: var(--gold-primary);
    box-shadow: 0 0 0 3px rgba(212, 175, 55, 0.1);
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 1rem;
    margin-bottom: 2rem;
}

.service-item {
    background: var(--color-surface);
    border-radius: var(--radius-lg);
    padding: 1.5rem;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    border: 1px solid var(--color-border);
    transition: all 0.3s ease;
}

.service-item:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(0,0,0,0.15);
}

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

.service-name {
    font-weight: 600;
    color: var(--color-text);
    font-size: 1.1rem;
}

.service-price {
    color: var(--gold-primary);
    font-weight: 700;
    font-size: 1.2rem;
}

.service-duration {
    color: var(--color-muted);
    font-size: 0.875rem;
    margin-bottom: 1rem;
}

.service-description {
    color: var(--color-text);
    line-height: 1.6;
    margin-bottom: 1rem;
}

.service-actions {
    display: flex;
    gap: 0.5rem;
}

.service-actions button {
    padding: 0.5rem 1rem;
    border: none;
    border-radius: var(--radius-sm);
    font-size: 0.875rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
}

.service-actions .btn-edit {
    background: linear-gradient(135deg, var(--gold-primary) 0%, var(--gold-dark) 100%);
    color: white;
}

.service-actions .btn-edit:hover {
    background: linear-gradient(135deg, var(--gold-dark) 0%, var(--gold-primary) 100%);
    transform: translateY(-1px);
}

.service-actions .btn-delete {
    background: #dc3545;
    color: white;
}

.service-actions .btn-delete:hover {
    background: #c82333;
    transform: translateY(-1px);
}

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1rem;
    margin-bottom: 2rem;
}

.gallery-item {
    position: relative;
    border-radius: var(--radius-md);
    overflow: hidden;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    transition: all 0.3s ease;
}

.gallery-item:hover {
    transform: scale(1.05);
    box-shadow: 0 4px 15px rgba(0,0,0,0.2);
}

.gallery-item img,
.gallery-item video {
    width: 100%;
    height: 150px;
    object-fit: cover;
}

.gallery-item .item-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0,0,0,0.5);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.gallery-item:hover .item-overlay {
    opacity: 1;
}

.gallery-item .item-actions {
    display: flex;
    gap: 0.5rem;
}

.gallery-item .item-actions button {
    padding: 0.5rem;
    border: none;
    border-radius: var(--radius-sm);
    background: rgba(255,255,255,0.9);
    color: #333;
    cursor: pointer;
    transition: all 0.3s ease;
}

.gallery-item .item-actions button:hover {
    background: white;
    transform: scale(1.1);
}

.calendar-container {
    background: var(--color-surface);
    border-radius: var(--radius-lg);
    padding: 2rem;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    border: 1px solid var(--color-border);
}

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

.calendar-nav {
    display: flex;
    gap: 1rem;
}

.calendar-nav button {
    padding: 0.5rem 1rem;
    border: 1px solid var(--color-border);
    background: var(--color-surface);
    border-radius: var(--radius-sm);
    cursor: pointer;
    transition: all 0.3s ease;
}

.calendar-nav button:hover {
    border-color: var(--gold-primary);
    color: var(--gold-primary);
}

.calendar-grid {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 0.5rem;
}

.calendar-day {
    aspect-ratio: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1px solid var(--color-border);
    border-radius: var(--radius-sm);
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
}

.calendar-day:hover {
    background: var(--gold-light);
    border-color: var(--gold-primary);
}

.calendar-day.has-bookings {
    background: linear-gradient(135deg, var(--gold-primary) 0%, var(--gold-dark) 100%);
    color: white;
    border-color: var(--gold-primary);
}

.calendar-day.today {
    background: var(--gold-accent);
    color: var(--black-primary);
    border-color: var(--gold-accent);
    font-weight: 700;
}

.day-bookings {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--color-surface);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-md);
    padding: 1rem;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
    z-index: 10;
    max-height: 300px;
    overflow-y: auto;
}

.booking-item {
    padding: 0.75rem;
    border-bottom: 1px solid var(--color-border);
    margin-bottom: 0.5rem;
}

.booking-item:last-child {
    border-bottom: none;
    margin-bottom: 0;
}

.booking-info {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 0.5rem;
}

.booking-time {
    font-weight: 600;
    color: var(--color-text);
}

.booking-status {
    font-size: 0.875rem;
    padding: 0.25rem 0.5rem;
    border-radius: var(--radius-sm);
    font-weight: 500;
}

.booking-status.confirmed {
    background: #28a745;
    color: white;
}

.booking-status.pending {
    background: #ffc107;
    color: #333;
}

.booking-status.cancelled {
    background: #dc3545;
    color: white;
}

.booking-actions {
    display: flex;
    gap: 0.25rem;
}

.booking-actions button {
    padding: 0.25rem 0.5rem;
    border: none;
    border-radius: var(--radius-sm);
    font-size: 0.75rem;
    cursor: pointer;
    transition: all 0.3s ease;
}

.booking-actions .btn-confirm {
    background: #28a745;
    color: white;
}

.booking-actions .btn-confirm:hover {
    background: #218838;
}

.booking-actions .btn-cancel {
    background: #dc3545;
    color: white;
}

.booking-actions .btn-cancel:hover {
    background: #c82333;
}

.booking-actions .btn-complete {
    background: #17a2b8;
    color: white;
}

.booking-actions .btn-complete:hover {
    background: #138496;
}

/* Dark Theme Overrides for Barber Dashboard */
[data-theme="dark"] .form-group label {
    color: var(--gold-primary);
}

[data-theme="dark"] .form-group input,
[data-theme="dark"] .form-group textarea {
    background: var(--black-light);
    border-color: var(--black-primary);
    color: var(--gold-primary);
}

[data-theme="dark"] .form-group input:focus,
[data-theme="dark"] .form-group textarea:focus {
    border-color: var(--gold-accent);
    box-shadow: 0 0 0 3px rgba(255, 215, 0, 0.1);
}

[data-theme="dark"] .form-group small {
    color: var(--gold-primary);
}

[data-theme="dark"] .form-group input[type="file"] {
    background: var(--black-primary);
    border-color: var(--black-primary);
    color: var(--gold-primary);
}

[data-theme="dark"] .form-group input[type="file"]:hover {
    border-color: var(--gold-accent);
    background: var(--black-primary);
}

[data-theme="dark"] .service-item {
    background: var(--black-light);
    border-color: var(--black-primary);
}

[data-theme="dark"] .service-name {
    color: var(--gold-primary);
}

[data-theme="dark"] .service-description {
    color: var(--gold-primary);
}

[data-theme="dark"] .gallery-item .item-actions button {
    background: rgba(0,0,0,0.8);
    color: var(--gold-primary);
}

[data-theme="dark"] .gallery-item .item-actions button:hover {
    background: rgba(0,0,0,0.9);
    color: var(--gold-accent);
}

[data-theme="dark"] .calendar-container {
    background: var(--black-light);
    border-color: var(--black-primary);
}

[data-theme="dark"] .calendar-nav button {
    background: var(--black-light);
    border-color: var(--black-primary);
    color: var(--gold-primary);
}

[data-theme="dark"] .calendar-nav button:hover {
    border-color: var(--gold-accent);
    color: var(--gold-accent);
}

[data-theme="dark"] .calendar-day {
    border-color: var(--black-primary);
    color: var(--gold-primary);
}

[data-theme="dark"] .calendar-day:hover {
    background: var(--black-primary);
    border-color: var(--gold-accent);
}

[data-theme="dark"] .day-bookings {
    background: var(--black-light);
    border-color: var(--black-primary);
}

[data-theme="dark"] .booking-item {
    border-bottom-color: var(--black-primary);
}

[data-theme="dark"] .booking-time {
    color: var(--gold-primary);
}

/* Responsive Design for Barber Dashboard */
@media (max-width: 768px) {
    .form-row {
        grid-template-columns: 1fr;
        gap: 0.5rem;
    }
    
    .services-grid {
        grid-template-columns: 1fr;
    }
    
    .gallery-grid {
        grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    }
    
    .calendar-grid {
        gap: 0.25rem;
    }
    
    .calendar-day {
        font-size: 0.875rem;
    }
    
    .day-bookings {
        max-height: 250px;
    }
}

@media (max-width: 480px) {
    .profile-form,
    .services-form {
        max-width: 100%;
        padding: 0 1rem;
    }
    
    .service-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.5rem;
    }
    
    .service-actions {
        flex-direction: column;
        gap: 0.25rem;
    }
    
    .calendar-header {
        flex-direction: column;
        gap: 1rem;
        align-items: flex-start;
    }
    
    .calendar-nav {
        width: 100%;
        justify-content: space-between;
    }
}

/* Dashboard Barbers Page Styles */
.admin-form {
    max-width: 800px;
    margin: 0 auto;
}

.barbers-table {
    overflow-x: auto;
    border-radius: var(--radius-md);
    border: 1px solid var(--color-border);
}

.barbers-table table {
    width: 100%;
    border-collapse: collapse;
    background: var(--color-surface);
}

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

.barbers-table th {
    background: linear-gradient(135deg, var(--gold-light) 0%, var(--color-surface) 100%);
    font-weight: 600;
    color: var(--color-text);
    border-bottom: 2px solid var(--gold-primary);
}

.barbers-table tr:hover {
    background: var(--gold-light);
}

.barber-info {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.barber-avatar,
.barber-avatar-placeholder {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--gold-light);
    color: var(--color-muted);
    border: 2px solid var(--gold-primary);
}

.barber-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.rating-display {
    display: flex;
    align-items: center;
    gap: 0.25rem;
}

.rating-display .fas.filled {
    color: #ffd700;
}

/* Dark Theme Overrides for Dashboard Barbers */
[data-theme="dark"] .barbers-table {
    border-color: var(--black-primary);
}

[data-theme="dark"] .barbers-table table {
    background: var(--black-light);
}

[data-theme="dark"] .barbers-table th {
    background: linear-gradient(135deg, var(--black-primary) 0%, var(--black-light) 100%);
    color: var(--gold-primary);
    border-bottom-color: var(--gold-primary);
}

[data-theme="dark"] .barbers-table th,
[data-theme="dark"] .barbers-table td {
    border-bottom-color: var(--black-primary);
    color: var(--gold-primary);
}

[data-theme="dark"] .barbers-table tr:hover {
    background: var(--black-primary);
}

[data-theme="dark"] .barber-avatar,
[data-theme="dark"] .barber-avatar-placeholder {
    background: var(--black-primary);
    color: var(--gold-primary);
    border-color: var(--gold-accent);
}

/* Responsive Design for Dashboard Barbers */
@media (max-width: 768px) {
    .admin-form {
        max-width: 100%;
        padding: 0 1rem;
    }
    
    .barbers-table th,
    .barbers-table td {
        padding: 0.75rem;
        font-size: 0.875rem;
    }
    
    .barber-info {
        gap: 0.5rem;
    }
    
    .barber-avatar,
    .barber-avatar-placeholder {
        width: 35px;
        height: 35px;
    }
}

@media (max-width: 480px) {
    .barbers-table {
        font-size: 0.8rem;
    }
    
    .barbers-table th,
    .barbers-table td {
        padding: 0.5rem;
    }
    
    .barber-avatar,
    .barber-avatar-placeholder {
        width: 30px;
        height: 30px;
    }
}

/* Dashboard Regions Map */
#regionsMap {
    height: 400px;
    border-radius: var(--radius-md);
    border: 1px solid var(--color-border);
    overflow: hidden;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

[data-theme="dark"] #regionsMap {
    border-color: var(--black-primary);
    box-shadow: 0 2px 10px rgba(0,0,0,0.3);
}

@media (max-width: 768px) {
    #regionsMap {
        height: 300px;
    }
}

@media (max-width: 480px) {
    #regionsMap {
        height: 250px;
    }
}

/* Custom Barber Markers */
.custom-barber-marker {
  background: transparent;
  border: none;
}

.barber-marker {
  display: flex;
  flex-direction: column;
  align-items: center;
  background: linear-gradient(135deg, var(--gold-primary) 0%, var(--gold-dark) 100%);
  border: 2px solid var(--gold-primary);
  border-radius: 12px;
  padding: 8px 12px;
  box-shadow: 0 4px 12px rgba(212, 175, 55, 0.3);
  min-width: 100px;
  text-align: center;
  transition: all 0.3s ease;
}

.barber-marker:hover {
  transform: scale(1.05);
  box-shadow: 0 6px 16px rgba(212, 175, 55, 0.4);
}

.marker-icon {
  color: white;
  font-size: 1.2rem;
  margin-bottom: 4px;
}

.marker-label {
  color: white;
  font-weight: 700;
  font-size: 0.85rem;
  line-height: 1.2;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.3);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 90px;
}

/* Dark theme for barber markers */
[data-theme="dark"] .barber-marker {
  background: linear-gradient(135deg, var(--gold-primary) 0%, var(--gold-dark) 100%);
  border-color: var(--gold-primary);
  box-shadow: 0 4px 12px rgba(212, 175, 55, 0.4);
}

[data-theme="dark"] .barber-marker:hover {
  box-shadow: 0 6px 16px rgba(212, 175, 55, 0.5);
}

[data-theme="dark"] .marker-icon {
  color: white;
}

[data-theme="dark"] .marker-label {
  color: white;
}

/* Responsive adjustments for markers */
@media (max-width: 768px) {
  .barber-marker {
    min-width: 80px;
    padding: 6px 8px;
  }
  
  .marker-label {
    font-size: 0.75rem;
    max-width: 70px;
  }
  
  .marker-icon {
    font-size: 1rem;
  }
}

@media (max-width: 480px) {
  .barber-marker {
    min-width: 70px;
    padding: 4px 6px;
  }
  
  .marker-label {
    font-size: 0.7rem;
    max-width: 60px;
  }
  
  .marker-icon {
    font-size: 0.9rem;
  }
}

/* Nearest Barbers Page Styles */
.region-detail-container {
  padding: var(--space-8) 0;
}

.page-header {
  text-align: center;
  margin-bottom: var(--space-8);
  padding: var(--space-6) 0;
  background: linear-gradient(135deg, var(--gold-primary) 0%, var(--gold-dark) 100%);
  color: #fff;
  border-radius: var(--radius-lg);
  position: relative;
  overflow: hidden;
}

.page-header::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><defs><pattern id="grain" width="100" height="100" patternUnits="userSpaceOnUse"><circle cx="25" cy="25" r="1" fill="rgba(255,255,255,0.1)"/><circle cx="75" cy="75" r="1" fill="rgba(255,255,255,0.1)"/><circle cx="50" cy="10" r="0.5" fill="rgba(255,255,255,0.1)"/><circle cx="10" cy="60" r="0.5" fill="rgba(255,255,255,0.1)"/><circle cx="90" cy="40" r="0.5" fill="rgba(255,255,255,0.1)"/></pattern></defs><rect width="100" height="100" fill="url(%23grain)"/></svg>');
  opacity: 0.3;
}

.page-header h1 {
  font-size: clamp(2rem, 1.5rem + 2vw, 3rem);
  font-weight: 900;
  margin-bottom: var(--space-3);
  text-shadow: 0 4px 8px rgba(0,0,0,0.3);
  position: relative;
  z-index: 2;
}

.page-header p {
  font-size: clamp(1.1rem, 1rem + 0.5vw, 1.3rem);
  margin: 0;
  opacity: 0.95;
  line-height: 1.6;
  position: relative;
  z-index: 2;
}

.barbers-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: var(--space-6);
  margin-bottom: var(--space-8);
}

.barber-card {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: 0 4px 12px rgba(0,0,0,0.06);
  transition: all 0.3s ease;
  position: relative;
}

.barber-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 24px rgba(0,0,0,0.12);
  border-color: var(--gold-primary);
}

.barber-image {
  position: relative;
  height: 200px;
  overflow: hidden;
  background: linear-gradient(135deg, var(--gray-light), var(--gray-medium));
}

.barber-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s ease;
}

.barber-card:hover .barber-image img {
  transform: scale(1.05);
}

.distance-badge {
  position: absolute;
  top: var(--space-3);
  right: var(--space-3);
  background: rgba(212, 175, 55, 0.95);
  color: #fff;
  padding: var(--space-2) var(--space-3);
  border-radius: var(--radius-md);
  font-weight: 700;
  font-size: 0.9rem;
  backdrop-filter: blur(10px);
  box-shadow: 0 4px 12px rgba(0,0,0,0.2);
  display: flex;
  align-items: center;
  gap: var(--space-2);
  z-index: 2;
  border: 2px solid rgba(255, 255, 255, 0.2);
}

.distance-badge i {
  color: #fff;
  font-size: 0.8rem;
}

.barber-info {
  padding: var(--space-5);
}

.barber-info h3 {
  font-size: 1.4rem;
  font-weight: 800;
  margin-bottom: var(--space-3);
  color: var(--color-text);
}

.barber-rating {
  display: flex;
  align-items: center;
  gap: var(--space-2);
  margin-bottom: var(--space-3);
}

.barber-rating .fas {
  color: var(--gold-primary);
  font-size: 1rem;
}

.barber-rating .fas.filled {
  color: var(--gold-accent);
}

.barber-rating span {
  color: var(--color-muted);
  font-size: 0.9rem;
  font-weight: 600;
}

.barber-bio {
  color: var(--color-muted);
  line-height: 1.6;
  margin-bottom: var(--space-4);
  font-size: 0.95rem;
}

.barber-details {
  display: flex;
  flex-direction: column;
  gap: var(--space-2);
  margin-bottom: var(--space-4);
}

.detail {
  display: flex;
  align-items: center;
  gap: var(--space-2);
  color: var(--color-muted);
  font-size: 0.9rem;
  font-weight: 500;
}

.detail i {
  color: var(--color-primary);
  margin-inline-end: var(--space-2);
  width: 16px;
  text-align: center;
}

.barber-services h4 {
  font-size: 1rem;
  font-weight: 700;
  margin-bottom: var(--space-3);
  color: var(--color-text);
}

.service-details {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-2);
}

.service-tag {
  background: rgba(212, 175, 55, 0.1);
  color: var(--gold-dark);
  padding: var(--space-1) var(--space-3);
  border-radius: var(--radius-sm);
  font-size: 0.85rem;
  font-weight: 600;
  border: 1px solid rgba(212, 175, 55, 0.2);
}

.barber-actions {
  padding: var(--space-4) var(--space-5);
  border-top: 1px solid var(--color-border);
  display: flex;
  gap: var(--space-3);
  background: var(--gray-light);
}

.barber-actions .btn {
  flex: 1;
  justify-content: center;
  font-weight: 600;
  padding: var(--space-3) var(--space-4);
}

.empty-state {
  text-align: center;
  padding: var(--space-12) var(--space-6);
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  box-shadow: 0 4px 12px rgba(0,0,0,0.06);
}

.empty-icon {
  width: 80px;
  height: 80px;
  background: linear-gradient(135deg, var(--gray-light), var(--gray-medium));
  border-radius: 50%;
  display: grid;
  place-items: center;
  margin: 0 auto var(--space-6);
  color: var(--color-muted);
  font-size: 2rem;
}

.empty-state h3 {
  font-size: 1.5rem;
  font-weight: 800;
  margin-bottom: var(--space-3);
  color: var(--color-text);
}

.empty-state p {
  color: var(--color-muted);
  margin-bottom: var(--space-6);
  font-size: 1.1rem;
  line-height: 1.6;
}

/* Dark Theme Support */
[data-theme="dark"] .page-header {
  background: linear-gradient(135deg, var(--gold-dark) 0%, var(--black-primary) 100%);
}

[data-theme="dark"] .barber-card {
  background: var(--black-light);
  border-color: var(--black-primary);
}

[data-theme="dark"] .barber-info h3 {
  color: var(--color-text);
}

[data-theme="dark"] .barber-services h4 {
  color: var(--color-text);
}

[data-theme="dark"] .service-tag {
  background: rgba(212, 175, 55, 0.15);
  color: var(--gold-accent);
  border-color: rgba(212, 175, 55, 0.3);
}

[data-theme="dark"] .barber-actions {
  background: var(--black-primary);
  border-color: var(--black-primary);
}

[data-theme="dark"] .empty-icon {
  background: linear-gradient(135deg, var(--black-primary), var(--black-light));
  color: var(--gold-primary);
}

/* Responsive Design */
@media (max-width: 768px) {
  .page-header {
    padding: var(--space-4) 0;
    margin: 0 var(--space-2) var(--space-6);
  }
  
  .page-header h1 {
    font-size: clamp(1.8rem, 1.5rem + 1.5vw, 2.5rem);
  }
  
  .barbers-grid {
    grid-template-columns: 1fr;
    gap: var(--space-4);
  }
}

@media (max-width: 480px) {
  .page-header {
    margin: 0 var(--space-1) var(--space-4);
  }
  
  .barber-card {
    margin: 0 var(--space-2);
  }
  
  .barber-actions {
    flex-direction: column;
    gap: var(--space-2);
  }
}

/* Test button for developers */
.nearest-card .mt-3 {
  margin-top: 1rem;
}

.nearest-card .btn-outline-secondary {
  background: transparent;
  border: 1px solid var(--color-muted);
  color: var(--color-muted);
  transition: all 0.2s ease;
}

.nearest-card .btn-outline-secondary:hover {
  background: var(--color-muted);
  color: var(--color-surface);
  border-color: var(--color-muted);
}

[data-theme="dark"] .nearest-card .btn-outline-secondary {
  border-color: var(--gray-dark);
  color: var(--gray-medium);
}

[data-theme="dark"] .nearest-card .btn-outline-secondary:hover {
  background: var(--gray-dark);
  color: var(--color-surface);
  border-color: var(--gray-dark);
}

.nearest-badge {
  position: absolute;
  top: var(--space-3);
  left: var(--space-3);
  background: linear-gradient(135deg, #ff6b6b, #ee5a24);
  color: #fff;
  padding: var(--space-2) var(--space-3);
  border-radius: var(--radius-md);
  font-weight: 700;
  font-size: 0.9rem;
  backdrop-filter: blur(10px);
  box-shadow: 0 4px 12px rgba(0,0,0,0.3);
  display: flex;
  align-items: center;
  gap: var(--space-2);
  z-index: 2;
  animation: pulse 2s infinite;
}

.nearest-badge i {
  color: #fff;
  font-size: 1rem;
}

@keyframes pulse {
  0% {
    transform: scale(1);
    box-shadow: 0 4px 12px rgba(0,0,0,0.3);
  }
  50% {
    transform: scale(1.05);
    box-shadow: 0 6px 16px rgba(0,0,0,0.4);
  }
  100% {
    transform: scale(1);
    box-shadow: 0 4px 12px rgba(0,0,0,0.3);
  }
}

.distance-badge i {
  color: #fff;
  font-size: 0.8rem;
}

/* Map link styling */
.map-link {
    color: var(--color-primary);
    text-decoration: none;
    transition: color 0.2s ease;
    display: inline-flex;
    align-items: center;
    gap: var(--space-2);
}

.map-link:hover {
    color: var(--color-primary-dark);
    text-decoration: underline;
}

[data-theme="dark"] .map-link {
    color: var(--gold-primary);
}

[data-theme="dark"] .map-link:hover {
    color: var(--gold-accent);
}

/* Form Actions Styling */
.form-actions {
    margin-top: var(--space-6);
}

.form-footer-actions {
    margin-top: var(--space-4);
    text-align: center;
}

.form-footer-actions .btn {
    padding: var(--space-2) var(--space-4);
    font-size: 0.875rem;
    border-radius: var(--radius-sm);
    transition: all 0.2s ease;
}

.form-footer-actions .btn-outline-secondary {
    color: var(--color-muted);
    border-color: var(--color-border);
    background: transparent;
}

.form-footer-actions .btn-outline-secondary:hover {
    color: var(--color-primary);
    border-color: var(--color-primary);
    background: var(--gold-light);
}

/* Button Loading State */
.btn-loading {
    display: none !important;
}

.btn:disabled .btn-loading {
    display: inline !important;
}

.btn:disabled .btn-text {
    display: none !important;
}

/* RTL Support for Form Actions */
[dir="rtl"] .form-footer-actions .btn i {
    margin-left: var(--space-2);
    margin-right: 0;
}

[dir="ltr"] .form-footer-actions .btn i {
    margin-right: var(--space-2);
    margin-left: 0;
}

[data-theme="dark"] .alert-error
{
  color: #ff9191;
}

[data-theme="dark"] .alert-success
{
  color: #8ed6c2;
}

[data-theme="dark"] .service-title
{
  color: #ffffff;
}