/* ─── Admin Shell ─────────────────────────────────────── */
.app-body { background: var(--bg); }

.app-nav {
  justify-content: space-between;
}

.nav-links { display: flex; align-items: center; gap: 1rem; }

.nav-link {
  font-size: 0.85rem;
  color: var(--fg-muted);
  text-decoration: none;
  transition: color 0.2s;
}

.nav-link:hover { color: var(--fg); }

/* ─── Layout ─────────────────────────────────────────── */
.admin-layout {
  padding: 2rem 2.5rem;
  max-width: 1200px;
  margin: 0 auto;
}

/* ─── Stats ─────────────────────────────────────────── */
.stats-row {
  display: flex;
  gap: 1.5rem;
  margin-bottom: 2.5rem;
  flex-wrap: wrap;
}

.stat-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 1rem;
  padding: 1.5rem 2rem;
  min-width: 200px;
}

.stat-value {
  font-family: var(--font-display);
  font-size: 2.5rem;
  font-weight: 600;
  color: var(--accent);
  margin-bottom: 0.35rem;
  line-height: 1;
}

.stat-label {
  font-size: 0.8rem;
  color: var(--fg-muted);
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

/* ─── Table Section ─────────────────────────────────── */
.table-section {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 1rem;
  overflow: hidden;
}

.table-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1.25rem 1.5rem;
  border-bottom: 1px solid var(--border);
  background: var(--bg-elevated);
}

.table-title {
  font-family: var(--font-display);
  font-size: 1rem;
  font-weight: 500;
}

.refresh-btn {
  font-size: 0.8rem;
  color: var(--fg-muted);
  cursor: pointer;
  padding: 0.35rem 0.75rem;
  border: 1px solid var(--border);
  border-radius: 0.4rem;
  transition: all 0.2s;
}

.refresh-btn:hover {
  background: var(--bg-card);
  color: var(--fg);
}

.table-wrap { overflow-x: auto; }

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

.appt-table th {
  text-align: left;
  padding: 0.85rem 1.5rem;
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--fg-muted);
  border-bottom: 1px solid var(--border);
  white-space: nowrap;
  font-weight: 500;
}

.appt-table td {
  padding: 1rem 1.5rem;
  font-size: 0.875rem;
  border-bottom: 1px solid var(--border);
  color: var(--fg);
  vertical-align: middle;
}

.appt-table tbody tr:last-child td { border-bottom: none; }

.appt-table tbody tr:hover { background: var(--bg-elevated); }

.table-loading {
  text-align: center;
  color: var(--fg-muted);
  padding: 2rem !important;
  font-size: 0.85rem !important;
}

.client-name { font-weight: 600; }

.service-chip {
  display: inline-block;
  background: var(--accent-dim);
  border: 1px solid rgba(200, 169, 110, 0.2);
  border-radius: 2rem;
  padding: 0.2rem 0.65rem;
  font-size: 0.75rem;
  color: var(--accent);
}

.contact-cell { color: var(--fg-muted); font-size: 0.8rem; }

.status-badge {
  display: inline-block;
  border-radius: 2rem;
  padding: 0.2rem 0.65rem;
  font-size: 0.75rem;
  font-weight: 500;
}

.status-confirmed { background: rgba(39, 174, 96, 0.15); color: #27ae60; border: 1px solid rgba(39, 174, 96, 0.25); }
.status-pending   { background: rgba(241, 196, 15, 0.15); color: #f1c40f; border: 1px solid rgba(241, 196, 15, 0.25); }
.status-cancelled { background: rgba(192, 57, 43, 0.15); color: #c0392b; border: 1px solid rgba(192, 57, 43, 0.25); }

/* ─── Empty state ────────────────────────────────────── */
.empty-state {
  text-align: center;
  padding: 3rem 2rem;
  color: var(--fg-muted);
}

.empty-icon { font-size: 2rem; margin-bottom: 0.75rem; display: block; }
.empty-title { font-weight: 500; margin-bottom: 0.35rem; color: var(--fg); }
.empty-body { font-size: 0.85rem; }

/* ─── Responsive ────────────────────────────────────── */
@media (max-width: 768px) {
  .admin-layout { padding: 1.25rem; }
  .stats-row { gap: 1rem; }
  .appt-table th, .appt-table td { padding: 0.75rem 1rem; }
}