/* Admin Dashboard Styles */

:root {
  --accent: #00e599;
  --accent-glow: rgba(0, 229, 153, 0.15);
  --accent-dim: #00b377;
  --bg: #0a0a0c;
  --bg-elevated: #111114;
  --bg-card: #16161a;
  --fg: #e8e6e3;
  --fg-muted: #8a8a8e;
  --fg-dim: #5a5a5e;
  --border: #2a2a2e;
  --radius: 12px;
  --font-heading: 'Space Grotesk', sans-serif;
  --font-mono: 'IBM Plex Mono', monospace;
}

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

body {
  background: var(--bg);
  color: var(--fg);
  font-family: var(--font-heading);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  display: flex;
  min-height: 100vh;
}

/* ── Layout ── */
.admin-layout {
  display: flex;
  width: 100%;
}

/* ── Sidebar ── */
.sidebar {
  width: 240px;
  min-height: 100vh;
  background: var(--bg-elevated);
  border-right: 1px solid var(--border);
  display: flex;
  flex-direction: column;
  position: sticky;
  top: 0;
  height: 100vh;
}

.sidebar-brand {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 24px 20px;
  border-bottom: 1px solid var(--border);
}

.brand-logo {
  width: 36px;
  height: 36px;
  background: var(--accent);
  color: #0a0a0c;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 0.85rem;
}

.brand-name {
  font-weight: 700;
  font-size: 1rem;
  letter-spacing: -0.01em;
}

.sidebar-nav {
  flex: 1;
  padding: 16px 12px;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.nav-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 12px;
  border-radius: 8px;
  color: var(--fg-muted);
  text-decoration: none;
  font-size: 0.88rem;
  transition: background 0.15s, color 0.15s;
}

.nav-item:hover { background: var(--bg-card); color: var(--fg); }
.nav-item.active { background: var(--accent-glow); color: var(--accent); }

.sidebar-footer {
  padding: 16px 20px;
  border-top: 1px solid var(--border);
}

.sidebar-date {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  color: var(--fg-dim);
}

/* ── Main Content ── */
.main-content {
  flex: 1;
  padding: 40px;
  overflow-x: hidden;
}

.page-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 32px;
}

.page-header h1 {
  font-size: 1.8rem;
  font-weight: 700;
  letter-spacing: -0.02em;
}

.date-picker {
  background: var(--bg-card);
  border: 1px solid var(--border);
  color: var(--fg);
  padding: 8px 14px;
  border-radius: 8px;
  font-family: var(--font-mono);
  font-size: 0.82rem;
  cursor: pointer;
}

/* ── Stats Row ── */
.stats-row {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
  margin-bottom: 32px;
}

.stat-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 20px;
}

.stat-card .stat-label {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  color: var(--fg-dim);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin-bottom: 8px;
}

.stat-card .stat-value {
  font-size: 1.8rem;
  font-weight: 700;
  color: var(--accent);
  font-family: var(--font-mono);
}

/* ── Dashboard Grid ── */
.dashboard-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
  margin-bottom: 32px;
}

.dashboard-section {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 24px;
}

.section-title {
  font-size: 1rem;
  font-weight: 600;
  margin-bottom: 20px;
  color: var(--fg);
}

.full-width { grid-column: 1 / -1; }

/* ── Empty State ── */
.empty-state {
  text-align: center;
  padding: 40px 20px;
}

.empty-icon { font-size: 2.5rem; margin-bottom: 12px; }

.empty-state p {
  font-size: 0.95rem;
  color: var(--fg-muted);
  margin-bottom: 6px;
}

.empty-state span {
  font-size: 0.8rem;
  color: var(--fg-dim);
}

/* ── Booking List ── */
.booking-list { display: flex; flex-direction: column; gap: 12px; }

.booking-item {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 14px;
  background: var(--bg-elevated);
  border-radius: 10px;
  border: 1px solid var(--border);
}

.booking-time {
  display: flex;
  flex-direction: column;
  align-items: center;
  min-width: 56px;
}

.time-text { font-family: var(--font-mono); font-size: 0.88rem; font-weight: 600; color: var(--accent); }
.duration-text, .date-text { font-size: 0.7rem; color: var(--fg-dim); font-family: var(--font-mono); }

.booking-details { flex: 1; }

.booking-service { font-weight: 600; font-size: 0.9rem; margin-bottom: 2px; }
.booking-customer { font-size: 0.78rem; color: var(--fg-muted); }

.booking-status { font-size: 1.1rem; }
.booking-status.confirmed { color: var(--accent); }

/* ── Services Grid ── */
.services-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}

.service-card {
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 18px;
}

.service-name { font-weight: 600; font-size: 0.92rem; margin-bottom: 6px; }
.service-desc { font-size: 0.8rem; color: var(--fg-muted); margin-bottom: 12px; line-height: 1.5; }

.service-meta { display: flex; gap: 10px; }

.meta-badge {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 6px;
  padding: 3px 8px;
  font-family: var(--font-mono);
  font-size: 0.72rem;
  color: var(--fg-dim);
}

.meta-price {
  background: var(--accent-glow);
  border: 1px solid var(--accent-dim);
  border-radius: 6px;
  padding: 3px 8px;
  font-family: var(--font-mono);
  font-size: 0.72rem;
  color: var(--accent);
}

/* ── Responsive ── */
@media (max-width: 1024px) {
  .stats-row { grid-template-columns: repeat(2, 1fr); }
  .dashboard-grid { grid-template-columns: 1fr; }
  .services-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 768px) {
  .sidebar { display: none; }
  .main-content { padding: 20px; }
  .services-grid { grid-template-columns: 1fr; }
}