:root {
  --bg: #f2f4f7;
  --ink: #0f172a;
  --card: #fff;
  --border: #d0d7de;
  --muted: #5b6471;
  --ok: #166534;
  --danger: #991b1b;
  --accent: #0f766e;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: "Segoe UI", "Avenir Next", sans-serif;
  background: linear-gradient(180deg, #eef3f7, #f8fafc 35%, #eef2f7);
  color: var(--ink);
}

.admin-page {
  min-height: 100vh;
}

.login-shell {
  min-height: 100vh;
  display: grid;
  place-items: center;
  padding: 1rem;
}

.login-card {
  width: min(380px, 100%);
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 1rem;
  display: grid;
  gap: 0.8rem;
}

.topbar {
  padding: 1rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-bottom: 1px solid #dbe1e8;
  background: rgba(255, 255, 255, 0.85);
  backdrop-filter: blur(6px);
  position: sticky;
  top: 0;
}

.dashboard-grid {
  max-width: 1300px;
  margin: 0 auto;
  padding: 1rem;
  display: grid;
  grid-template-columns: 1.6fr 1fr;
  gap: 1rem;
}

.card {
  border: 1px solid var(--border);
  border-radius: 14px;
  background: var(--card);
  padding: 1rem;
  box-shadow: 0 10px 22px rgba(15, 23, 42, 0.05);
}

.stack {
  display: grid;
  gap: 0.55rem;
  margin-bottom: 1rem;
}

.filters {
  margin-bottom: 0.75rem;
}

input,
select,
textarea,
button {
  font: inherit;
}

input,
select,
textarea {
  width: 100%;
  padding: 0.55rem 0.65rem;
  border: 1px solid #c8d2de;
  border-radius: 10px;
}

button {
  border: 0;
  border-radius: 10px;
  padding: 0.6rem 0.8rem;
  background: var(--accent);
  color: #fff;
  font-weight: 700;
  cursor: pointer;
}

button.danger {
  background: var(--danger);
}

.stats {
  display: flex;
  gap: 0.4rem;
  flex-wrap: wrap;
  margin-bottom: 0.75rem;
}

.stat-pill {
  background: #ecfeff;
  color: #0f766e;
  border: 1px solid #99f6e4;
  border-radius: 999px;
  padding: 0.25rem 0.5rem;
  font-size: 0.8rem;
  font-weight: 700;
}

.list {
  display: grid;
  gap: 0.7rem;
}

.item {
  border: 1px solid #d4dde7;
  border-radius: 12px;
  padding: 0.75rem;
  background: #fbfdff;
}

.item-head {
  display: flex;
  justify-content: space-between;
  gap: 0.8rem;
  align-items: baseline;
}

.item h3 {
  margin: 0;
  font-size: 1rem;
}

.meta {
  margin: 0.25rem 0;
  color: var(--muted);
  font-size: 0.9rem;
}

.status-pill {
  background: #e2e8f0;
  color: #0f172a;
  padding: 0.2rem 0.55rem;
  border-radius: 999px;
  font-size: 0.8rem;
  font-weight: 700;
}

.repair-needs {
  margin: 0.4rem 0;
  white-space: pre-wrap;
}

.booking-actions {
  margin-top: 0.5rem;
  display: grid;
  grid-template-columns: 1fr 0.8fr auto;
  gap: 0.5rem;
}

.price-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 0.6rem;
}

.price-title {
  font-weight: 700;
}

.price-actions {
  display: flex;
  gap: 0.5rem;
}

.price-actions button {
  padding: 0.45rem 0.6rem;
}

.message {
  min-height: 1.2rem;
  color: var(--danger);
  margin: 0;
}

@media (max-width: 1024px) {
  .dashboard-grid {
    grid-template-columns: 1fr;
  }

  .booking-actions {
    grid-template-columns: 1fr;
  }
}
