:root {
  color-scheme: light;
  --brand: #0b5fff;
  --brand-dark: #063fb0;
  --bg: #f5f7fb;
  --surface: #ffffff;
  --text: #14181f;
  --muted: #5b6472;
  --border: #e2e6ed;
  --danger: #d92d20;
  --success: #12805c;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: -apple-system, "Segoe UI", Roboto, sans-serif;
  background: var(--bg);
  color: var(--text);
}

header.topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 32px;
  background: var(--surface);
  border-bottom: 1px solid var(--border);
}

header.topbar .brand {
  font-weight: 700;
  font-size: 1.25rem;
  color: var(--brand);
  text-decoration: none;
}

header.topbar nav {
  display: flex;
  align-items: center;
  gap: 20px;
}

header.topbar nav a {
  color: var(--text);
  text-decoration: none;
  font-size: 0.95rem;
}

main {
  max-width: 960px;
  margin: 0 auto;
  padding: 40px 24px;
}

.hero {
  text-align: center;
  padding: 64px 16px;
}

.hero h1 {
  font-size: 2.4rem;
  margin-bottom: 12px;
}

.hero p {
  color: var(--muted);
  font-size: 1.1rem;
  margin-bottom: 32px;
}

.btn {
  display: inline-block;
  padding: 12px 24px;
  border-radius: 8px;
  background: var(--brand);
  color: #fff;
  text-decoration: none;
  font-weight: 600;
  border: none;
  cursor: pointer;
  font-size: 1rem;
}

.btn:hover {
  background: var(--brand-dark);
}

.btn.secondary {
  background: transparent;
  color: var(--brand);
  border: 1px solid var(--brand);
}

.card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 28px;
  margin-bottom: 20px;
}

.form-group {
  margin-bottom: 16px;
}

label {
  display: block;
  margin-bottom: 6px;
  font-size: 0.9rem;
  font-weight: 600;
}

input, select, textarea {
  width: 100%;
  padding: 10px 12px;
  border: 1px solid var(--border);
  border-radius: 8px;
  font-size: 1rem;
}

.alert {
  padding: 12px 16px;
  border-radius: 8px;
  margin-bottom: 16px;
  font-size: 0.95rem;
}

.alert.error {
  background: #fef3f2;
  color: var(--danger);
  border: 1px solid #fda29b;
}

.alert.success {
  background: #ecfdf3;
  color: var(--success);
  border: 1px solid #a6f4c5;
}

table {
  width: 100%;
  border-collapse: collapse;
  background: var(--surface);
}

th, td {
  text-align: left;
  padding: 12px 14px;
  border-bottom: 1px solid var(--border);
  font-size: 0.92rem;
}

th {
  background: #f0f2f6;
  font-weight: 600;
}

.badge {
  display: inline-block;
  padding: 3px 10px;
  border-radius: 999px;
  font-size: 0.78rem;
  font-weight: 600;
  text-transform: capitalize;
}

.badge.waiting_confirmation { background: #fff4e5; color: #b54708; }
.badge.accepted { background: #eff8ff; color: #175cd3; }
.badge.in_progress { background: #f0f9ff; color: #026aa2; }
.badge.completed { background: #ecfdf3; color: #12805c; }
.badge.cancelled { background: #fef3f2; color: #d92d20; }

.stat-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 16px;
  margin-bottom: 24px;
}

.stat-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 18px;
}

.stat-card .label {
  color: var(--muted);
  font-size: 0.85rem;
  margin-bottom: 6px;
}

.stat-card .value {
  font-size: 1.5rem;
  font-weight: 700;
}

.muted {
  color: var(--muted);
}
