:root {
  color-scheme: light;
  --bg:#f6f7fb;
  --surface:#ffffff;
  --surface-muted:#f8f9fb;
  --border:#e5e7eb;
  --text:#1f2937;
  --text-muted:#6b7280;
  --accent:#0ea5e9;
  --accent-strong:#0284c7;
  --danger:#ef4444;
  --warning:#f59e0b;
  --success:#16a34a;
  --radius-lg:14px;
  --radius-md:10px;
  --shadow-lg:0 10px 28px rgba(15, 23, 42, 0.08);
  --shadow-md:0 6px 18px rgba(15, 23, 42, 0.06);
  --transition:200ms ease;
  font-size:16px;
}

*, *::before, *::after {
  box-sizing:border-box;
}

body {
  margin:0;
  font-family: "Inter", "Segoe UI", Roboto, system-ui, -apple-system, BlinkMacSystemFont, "Helvetica Neue", Arial, sans-serif;
  background:var(--bg);
  color:var(--text);
  min-height:100vh;
  display:flex;
  flex-direction:column;
}

a {
  color:inherit;
  text-decoration:none;
}

a:focus-visible,
button:focus-visible,
input:focus-visible,
textarea:focus-visible {
  outline:3px solid rgba(14, 165, 233, .45);
  outline-offset:2px;
  border-radius:var(--radius-md);
}

main {
  flex:1;
  width:100%;
}

.container {
  width:100%;
  max-width:1200px;
  margin:24px auto;
  padding:0 16px;
}

.card {
  background:var(--surface);
  border-radius:var(--radius-lg);
  box-shadow:var(--shadow-lg);
  padding:20px;
}

.btn {
  display:inline-flex;
  align-items:center;
  justify-content:center;
  gap:8px;
  padding:11px 18px;
  border-radius:var(--radius-md);
  border:1px solid transparent;
  font-weight:600;
  cursor:pointer;
  transition:var(--transition);
  background:var(--accent);
  color:#fff;
}

.btn:hover {
  background:var(--accent-strong);
}

.btn:disabled {
  cursor:not-allowed;
  filter:grayscale(0.2);
  opacity:0.8;
}

.btn--light {
  background:#ecf7ff;
  color:var(--accent-strong);
  border-color:rgba(14,165,233,.25);
}

.btn--ghost {
  background:transparent;
  color:var(--accent-strong);
  border-color:var(--accent);
}

.btn--ghost:hover {
  background:rgba(14,165,233,.1);
}

.alert {
  padding:12px 16px;
  border-radius:var(--radius-md);
  border:1px solid transparent;
  margin-bottom:16px;
}

.alert--success {
  background:#dcfce7;
  border-color:#bbf7d0;
  color:#166534;
}

.alert--error {
  background:#fee2e2;
  border-color:#fecaca;
  color:#991b1b;
}

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

.table thead th {
  text-align:left;
  color:var(--text-muted);
  font-weight:600;
  font-size:0.95rem;
  border-bottom:1px solid var(--border);
  padding:12px 10px;
}

.table tbody td {
  padding:12px 10px;
  border-bottom:1px solid var(--border);
  font-size:0.96rem;
}

.status {
  display:inline-flex;
  align-items:center;
  gap:8px;
  padding:5px 12px;
  border-radius:999px;
  font-weight:600;
  font-size:0.85rem;
  line-height:1;
}

.status__dot {
  width:8px;
  height:8px;
  border-radius:50%;
  background:currentColor;
}

.status--success {
  background:#dcfce7;
  color:#166534;
}

.status--warning {
  background:#fef3c7;
  color:#92400e;
}

.status--danger {
  background:#fee2e2;
  color:#991b1b;
}

.status--info {
  background:#e0f2fe;
  color:#0369a1;
}

.status--muted {
  background:#f3f4f6;
  color:var(--text-muted);
}

.pagination {
  display:flex;
  gap:8px;
  justify-content:center;
  align-items:center;
  margin:20px 0;
  flex-wrap:wrap;
}

.pagination__link {
  padding:8px 12px;
  border-radius:var(--radius-md);
  border:1px solid var(--border);
  color:var(--text);
  font-weight:600;
  background:var(--surface);
  transition:var(--transition);
}

.pagination__link:hover {
  border-color:var(--accent);
  color:var(--accent-strong);
}

.pagination__link--active {
  background:var(--accent);
  color:#fff;
  border-color:var(--accent);
}

.pagination__link--disabled {
  opacity:0.5;
  cursor:not-allowed;
}

.pagination__ellipsis {
  color:var(--text-muted);
  padding:0 4px;
}

.breadcrumb {
  font-size:0.92rem;
  color:var(--text-muted);
  margin:16px 0;
}

.breadcrumb a {
  color:var(--accent-strong);
}

.flash {
  border-radius:var(--radius-md);
  padding:12px 16px;
  margin-bottom:16px;
}

.flash[data-type="success"] {
  background:#dcfce7;
  color:#166534;
  border:1px solid #bbf7d0;
}

.flash[data-type="error"] {
  background:#fee2e2;
  color:#991b1b;
  border:1px solid #fecaca;
}

form {
  width:100%;
}

label {
  font-weight:600;
  display:block;
  margin:12px 0 6px;
}

input:not([type="checkbox"]):not([type="radio"]),
textarea,
select {
  width:100%;
  padding:12px 14px;
  border-radius:var(--radius-md);
  border:1px solid var(--border);
  font-size:1rem;
  background:#fff;
  transition:var(--transition);
}

input:focus,
textarea:focus,
select:focus {
  border-color:var(--accent);
  box-shadow:0 0 0 3px rgba(14,165,233,.2);
}

input[type="checkbox"] {
  accent-color:var(--accent);
}

.grid {
  display:grid;
  gap:16px;
}

@media (min-width: 720px) {
  .grid--cols-3 {
    grid-template-columns:repeat(3, minmax(0, 1fr));
  }
}

.badge-inline {
  display:inline-flex;
  align-items:center;
  gap:6px;
  font-size:0.85rem;
  color:var(--text-muted);
}

.header {
  background:#fff;
  position:sticky;
  top:0;
  z-index:100;
  box-shadow:0 2px 8px rgba(15,23,42,.08);
}

.header__inner {
  max-width:1200px;
  margin:0 auto;
  padding:12px 18px;
  display:flex;
  align-items:center;
  gap:16px;
}

.header__brand {
  display:flex;
  align-items:center;
  gap:10px;
  font-weight:800;
  font-size:1.25rem;
}

.header__brand img {
  height:40px;
  width:auto;
}

.nav {
  margin-left:auto;
  display:flex;
  align-items:center;
  gap:16px;
}

.nav__link {
  padding:8px 12px;
  border-radius:var(--radius-md);
  font-weight:600;
  transition:var(--transition);
}

.nav__link:hover,
.nav__link[aria-current="page"] {
  background:#ecf7ff;
  color:var(--accent-strong);
}

.nav__cta {
  background:var(--accent);
  color:#fff !important;
  padding:8px 18px;
  border-radius:var(--radius-md);
  box-shadow:0 3px 12px rgba(14,165,233,.25);
}

.menu-toggle {
  background:none;
  border:none;
  font-size:1.8rem;
  line-height:1;
  display:none;
}

@media (max-width: 860px) {
  .nav {
    position:absolute;
    top:100%;
    left:0;
    right:0;
    background:#fff;
    flex-direction:column;
    align-items:flex-start;
    gap:10px;
    padding:0 18px 18px;
    border-bottom:1px solid var(--border);
    display:none;
  }

  .nav.is-open {
    display:flex;
  }

  .menu-toggle {
    display:block;
  }
}

footer {
  background:rgb(29, 80, 131);
  color:#f8f9fa;
  padding:24px 16px;
  margin-top:48px;
}

.footer__inner {
  max-width:1200px;
  margin:0 auto;
  display:flex;
  flex-direction:column;
  gap:8px;
  text-align:center;
  font-size:0.9rem;
}

.footer__inner a {
  color:#f0f9ff;
  text-decoration:underline;
}

.hide-visually {
  position:absolute !important;
  clip:rect(1px, 1px, 1px, 1px);
  padding:0;
  border:0;
  height:1px;
  width:1px;
  overflow:hidden;
}

.sr-live {
  position:absolute;
  width:1px;
  height:1px;
  padding:0;
  margin:-1px;
  overflow:hidden;
  clip:rect(0,0,0,0);
  white-space:nowrap;
  border:0;
}
