/* ============================================================
   IriSkating — admin page (login + bookings dashboard)
   ============================================================ */

body.admin-body {
  background-image:
    radial-gradient(1100px 520px at 85% -5%, rgba(124, 58, 237, 0.16), transparent 60%),
    radial-gradient(900px 480px at -10% 30%, rgba(34, 211, 238, 0.07), transparent 60%);
}

.admin-badge {
  display: inline-block;
  vertical-align: middle;
  margin-left: 8px;
  padding: 2px 10px;
  border-radius: 999px;
  background: rgba(139, 92, 246, 0.18);
  border: 1px solid rgba(139, 92, 246, 0.45);
  color: #c4b5fd;
  font-size: 0.68rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.admin-main { padding: 40px 0 60px; }

/* ---------- login ---------- */

.login-card {
  max-width: 420px;
  margin: 6vh auto 0;
  padding: 32px 30px;
  border-radius: 24px;
  background: linear-gradient(165deg, #12163a, #0a0e22 70%);
  border: 1px solid var(--line-2);
  box-shadow: var(--shadow);
}

.login-card h1 { font-size: 1.45rem; font-weight: 800; margin-bottom: 6px; }
.admin-sub { color: var(--muted); font-size: 0.92rem; margin-bottom: 22px; }

#loginForm { display: flex; flex-direction: column; gap: 14px; }
#loginForm label { display: flex; flex-direction: column; gap: 6px; }
#loginForm label > span {
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--muted);
  letter-spacing: 0.04em;
}
#loginForm input {
  font-family: inherit;
  font-size: 0.95rem;
  color: var(--txt);
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 11px 14px;
}
#loginForm input:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(139, 92, 246, 0.25);
}
#loginForm .btn { margin-top: 8px; }

/* ---------- dashboard ---------- */

.dash-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 20px;
}
.dash-head h1 { font-size: 1.6rem; font-weight: 800; }
.dash-actions { display: flex; gap: 10px; }

.table-wrap {
  overflow-x: auto;
  border-radius: 18px;
  border: 1px solid var(--line);
  background: var(--panel);
}

.bookings-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.88rem;
  min-width: 900px;
}

.bookings-table th {
  text-align: left;
  padding: 12px 14px;
  color: var(--muted);
  font-size: 0.76rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  border-bottom: 1px solid var(--line);
  white-space: nowrap;
}

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

.bookings-table tbody tr:hover { background: rgba(255, 255, 255, 0.03); }
.bookings-table tbody tr:last-child td { border-bottom: none; }

.empty-row { color: var(--muted); text-align: center; padding: 30px !important; }

.b-comment { max-width: 260px; color: var(--muted); }
.b-date { white-space: nowrap; color: var(--muted); }

.status-chip {
  display: inline-flex;
  align-items: center;
  padding: 4px 11px;
  border-radius: 999px;
  font-size: 0.76rem;
  font-weight: 700;
  white-space: nowrap;
}
.status-new { background: rgba(251, 191, 36, 0.15); color: #fcd34d; border: 1px solid rgba(251, 191, 36, 0.4); }
.status-confirmed { background: rgba(52, 211, 153, 0.14); color: #6ee7b7; border: 1px solid rgba(52, 211, 153, 0.4); }
.status-cancelled { background: rgba(248, 113, 113, 0.13); color: #fca5a5; border: 1px solid rgba(248, 113, 113, 0.35); }

.row-actions { display: flex; gap: 6px; }
.row-actions .icon-btn {
  width: 30px;
  height: 30px;
  border-radius: 9px;
  border: 1px solid var(--line);
  background: var(--panel-2);
  color: var(--muted);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: color 0.15s ease, border-color 0.15s ease;
}
.row-actions .icon-btn .icon { width: 15px; height: 15px; }
.row-actions .icon-btn:hover { color: var(--txt); border-color: var(--line-2); }
.row-actions .confirm:hover { color: #6ee7b7; border-color: rgba(52, 211, 153, 0.5); }
.row-actions .cancel:hover { color: #fca5a5; border-color: rgba(248, 113, 113, 0.5); }

.admin-note { color: var(--muted); font-size: 0.82rem; margin-top: 14px; }

@media (max-width: 640px) {
  .dash-head { flex-direction: column; align-items: flex-start; }
}
