html { font-size: 14px; }
@media (min-width: 768px) { html { font-size: 16px; } }

body {
  margin-bottom: 0;
  font-family: 'Segoe UI', system-ui, sans-serif;
  background: #f0f2f8;
  color: #1e293b;
}

:root {
  --bs-primary: #6f42c1;
  --admin-sidebar: #1e1b2e;
  --admin-accent: #6f42c1;
}

.navbar.bg-primary { background: linear-gradient(135deg, #6f42c1, #5a32a3) !important; }

.hero {
  background: linear-gradient(135deg, #6f42c1 0%, #e83e8c 100%);
  color: #fff;
  border-radius: 1rem;
  padding: 3rem 2rem;
}

.card-service {
  transition: transform .2s, box-shadow .2s;
  border: none;
  box-shadow: 0 4px 14px rgba(0,0,0,.08);
  border-radius: .75rem;
}
.card-service:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 24px rgba(111,66,193,.2);
}

.service-img { height: 180px; object-fit: cover; width: 100%; border-radius: .75rem .75rem 0 0; }
.review-stars { color: #ffc107; }

.admin-body { min-height: 100vh; }
.admin-shell { display: flex; min-height: 100vh; }

.admin-sidebar {
  width: 260px;
  flex-shrink: 0;
  background: var(--admin-sidebar);
  color: #e2e8f0;
  display: flex;
  flex-direction: column;
  padding: 1.25rem 0;
}
.admin-sidebar-master { background: #1a2332; }

.admin-brand {
  color: #fff;
  font-weight: 700;
  font-size: 1.1rem;
  padding: 0 1.25rem 1.25rem;
  text-decoration: none;
  display: block;
}
.admin-brand:hover { color: #c4b5fd; }

.admin-nav { padding: 0 .75rem; flex: 1; }
.admin-nav .nav-link {
  color: #94a3b8;
  border-radius: .5rem;
  padding: .65rem 1rem;
  margin-bottom: .25rem;
  font-weight: 500;
}
.admin-nav .nav-link i { margin-right: .5rem; }
.admin-nav .nav-link:hover { background: rgba(255,255,255,.08); color: #fff; }
.admin-nav .nav-link.active { background: var(--admin-accent); color: #fff; }

.admin-sidebar-footer {
  padding: 1rem 1.25rem 0;
  border-top: 1px solid rgba(255,255,255,.1);
  margin-top: auto;
}
.admin-sidebar-footer .nav-link { color: #94a3b8; padding: .4rem 0; font-size: .9rem; }

.admin-main { flex: 1; display: flex; flex-direction: column; min-width: 0; }
.admin-topbar {
  background: #fff;
  padding: 1rem 1.5rem;
  border-bottom: 1px solid #e2e8f0;
  display: flex;
  align-items: center;
  gap: 1rem;
}
.admin-page-title { font-size: 1.35rem; font-weight: 600; }
.admin-content { padding: 1.5rem; flex: 1; }

.admin-sidebar-mobile { background: var(--admin-sidebar); padding: .5rem 1rem; }
.admin-sidebar-mobile .nav-link { color: #cbd5e1; }

@media (max-width: 991.98px) {
  .admin-sidebar { display: none; }
  .admin-shell { flex-direction: column; }
}

.stat-card {
  border: none;
  border-radius: .75rem;
  box-shadow: 0 4px 20px rgba(0,0,0,.06);
  height: 100%;
}
.stat-card .stat-icon {
  width: 48px; height: 48px;
  border-radius: .5rem;
  display: flex; align-items: center; justify-content: center;
  font-size: 1.4rem;
}
.stat-card .stat-value { font-size: 1.75rem; font-weight: 700; line-height: 1.2; }
.stat-card-purple .stat-icon { background: #ede9fe; color: #6f42c1; }
.stat-card-blue .stat-icon { background: #dbeafe; color: #2563eb; }
.stat-card-green .stat-icon { background: #d1fae5; color: #059669; }
.stat-card-red .stat-icon { background: #fee2e2; color: #dc2626; }

.admin-card {
  border: none;
  border-radius: .75rem;
  box-shadow: 0 4px 20px rgba(0,0,0,.06);
}
.admin-card .card-header {
  background: #fff;
  border-bottom: 1px solid #f1f5f9;
  font-weight: 600;
  padding: 1rem 1.25rem;
}

.quick-action {
  display: flex;
  align-items: center;
  gap: .75rem;
  padding: 1rem 1.25rem;
  border-radius: .75rem;
  background: #fff;
  box-shadow: 0 2px 12px rgba(0,0,0,.05);
  text-decoration: none;
  color: inherit;
  transition: transform .15s, box-shadow .15s;
  height: 100%;
}
.quick-action:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(111,66,193,.15);
  color: var(--admin-accent);
}
.quick-action i { font-size: 1.5rem; color: var(--admin-accent); }

#schedule-calendar {
  background: #fff;
  border-radius: .75rem;
  padding: 1rem;
  box-shadow: 0 4px 20px rgba(0,0,0,.08);
}
.calendar-legend span {
  display: inline-flex;
  align-items: center;
  gap: .35rem;
  font-size: .875rem;
  color: #64748b;
  margin-right: 1rem;
}
.calendar-legend span::before {
  content: '';
  width: 12px; height: 12px;
  border-radius: 3px;
}
.legend-work::before { background: #198754; }
.legend-break::before { background: #ffc107; }
.legend-apt::before { background: #fd7e14; }
.legend-confirmed::before { background: #0d6efd; }
.legend-off::before { background: #6c757d; }

.fc { --fc-border-color: #e2e8f0; --fc-today-bg-color: #f5f3ff; }
.fc .fc-button-primary { background: var(--admin-accent); border-color: var(--admin-accent); }
.fc .fc-button-primary:not(:disabled).fc-button-active,
.fc .fc-button-primary:not(:disabled):active { background: #5a32a3; border-color: #5a32a3; }

.service-admin-card img { height: 140px; object-fit: cover; width: 100%; }
