/* === ADMIN PANEL === */

.admin-header {
  border-bottom: 1px solid var(--border);
  padding: 16px 40px;
  background: var(--bg);
  position: sticky;
  top: 0;
  z-index: 10;
}

.admin-header-inner {
  display: flex;
  align-items: center;
  gap: 12px;
}

.admin-badge {
  font-family: var(--font-display);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--accent);
  background: var(--accent-dim);
  border: 1px solid rgba(232, 197, 71, 0.25);
  padding: 3px 10px;
  border-radius: 100px;
}

.admin-main {
  padding: 40px;
}

.admin-container {
  max-width: 1200px;
  margin: 0 auto;
}

.admin-title-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 32px;
}

.admin-title-row h1 {
  font-family: var(--font-display);
  font-size: 32px;
  font-weight: 700;
  letter-spacing: -0.02em;
}

/* === STATS === */
.admin-stats {
  display: flex;
  gap: 12px;
  margin-bottom: 32px;
  flex-wrap: wrap;
}

.stat-card {
  flex: 1;
  min-width: 100px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 16px 20px;
  text-align: center;
  text-decoration: none;
  color: var(--fg);
  transition: border-color 0.15s ease;
}

.stat-card:hover { border-color: rgba(232, 197, 71, 0.3); }

.stat-card.active { border-color: var(--accent); background: var(--accent-dim); }

.stat-value {
  font-family: var(--font-display);
  font-size: 28px;
  font-weight: 700;
  letter-spacing: -0.02em;
  margin-bottom: 4px;
}

.stat-label {
  font-size: 12px;
  color: var(--fg-muted);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  font-weight: 500;
}

/* === TABLE === */
.admin-table-wrap {
  overflow-x: auto;
  border: 1px solid var(--border);
  border-radius: var(--radius);
}

.admin-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 14px;
}

.admin-table th {
  font-family: var(--font-display);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--fg-muted);
  padding: 14px 16px;
  text-align: left;
  border-bottom: 1px solid var(--border);
  background: var(--bg-elevated);
  white-space: nowrap;
}

.admin-table td {
  padding: 14px 16px;
  border-bottom: 1px solid var(--border);
  vertical-align: top;
}

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

.admin-table tr:hover td {
  background: var(--bg-elevated);
}

.admin-table .notes-row:hover td { background: transparent; }

.booking-id {
  font-family: var(--font-display);
  font-size: 13px;
  color: var(--fg-muted);
  font-weight: 500;
  white-space: nowrap;
}

.booking-datetime div:first-child {
  font-weight: 500;
  white-space: nowrap;
}

.meta {
  font-size: 12px;
  color: var(--fg-muted);
  margin-top: 2px;
}

.booking-address {
  font-size: 13px;
  max-width: 180px;
  line-height: 1.4;
}

/* === SERVICE TAGS === */
.service-tag {
  display: inline-block;
  padding: 4px 10px;
  border-radius: 100px;
  font-family: var(--font-display);
  font-size: 12px;
  font-weight: 600;
  text-transform: capitalize;
  letter-spacing: 0.02em;
  white-space: nowrap;
  background: var(--accent-dim);
  color: var(--accent);
  border: 1px solid rgba(232, 197, 71, 0.2);
}

/* === STATUS BADGES === */
.status-badge {
  display: inline-block;
  padding: 4px 10px;
  border-radius: 100px;
  font-family: var(--font-display);
  font-size: 12px;
  font-weight: 600;
  text-transform: capitalize;
  white-space: nowrap;
}

.status-pending  { background: rgba(251, 191, 36, 0.12); color: #fbbf24; border: 1px solid rgba(251,191,36,0.25); }
.status-confirmed { background: rgba(34, 197, 94, 0.12); color: #4ade80; border: 1px solid rgba(34,197,94,0.25); }
.status-completed { background: rgba(99, 102, 241, 0.12); color: #818cf8; border: 1px solid rgba(99,102,241,0.25); }
.status-cancelled { background: rgba(239, 68, 68, 0.12); color: #f87171; border: 1px solid rgba(239,68,68,0.25); }

/* === STATUS SELECT === */
.status-select {
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 6px 10px;
  font-family: var(--font-body);
  font-size: 13px;
  color: var(--fg);
  cursor: pointer;
  outline: none;
  transition: border-color 0.15s ease;
}

.status-select:hover { border-color: rgba(232, 197, 71, 0.3); }
.status-select:focus { border-color: rgba(232, 197, 71, 0.5); }

/* === NOTES === */
.notes-row td {
  padding: 4px 16px 14px;
  border-bottom: 1px solid var(--border);
}

.notes-cell {
  font-size: 13px;
  color: var(--fg-muted);
  font-style: italic;
}

/* === EMPTY STATE === */
.admin-empty {
  text-align: center;
  padding: 80px 40px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  color: var(--fg-muted);
}

.admin-empty p { margin-bottom: 20px; }

/* === BUTTONS (reuse from book.css or define here) === */
.btn-ghost {
  display: inline-block;
  padding: 10px 20px;
  background: transparent;
  color: var(--fg-muted);
  font-family: var(--font-display);
  font-size: 14px;
  font-weight: 500;
  border-radius: var(--radius);
  border: 1px solid var(--border);
  cursor: pointer;
  text-decoration: none;
  transition: color 0.15s ease, border-color 0.15s ease;
}

.btn-ghost:hover { color: var(--fg); border-color: rgba(232, 197, 71, 0.3); }
.btn-ghost.btn-sm { padding: 8px 16px; font-size: 13px; }

/* === MOBILE === */
@media (max-width: 768px) {
  .admin-main { padding: 24px 16px; }
  .admin-header { padding: 14px 20px; }
  .admin-stats { flex-direction: row; overflow-x: auto; flex-wrap: nowrap; }
  .stat-card { min-width: 80px; flex: 0 0 auto; }
}
