/* -----------------------------
   Global styling
------------------------------ */

:root {
  --bg: #f8fafc;
  --panel: #ffffff;
  --border: #e5e7eb;
  --muted: #6b7280;
  --heading: #111827;
  --accent: #2563eb;
  --accent-light: #eff6ff;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: "Segoe UI", system-ui, -apple-system, sans-serif;
  background-color: var(--bg);
  color: #374151;
  line-height: 1.5;
}

/* -----------------------------
   Page container
------------------------------ */

.page {
  max-width: 1200px;
  margin: 0 auto;
  padding: 32px 40px 64px;
}

/* -----------------------------
   Headings
------------------------------ */

h1 {
  font-size: 2rem;
  font-weight: 600;
  color: var(--heading);
  margin: 0 0 8px;
}

h2 {
  font-size: 1.25rem;
  font-weight: 600;
  color: var(--heading);
  margin-top: 32px;
  margin-bottom: 12px;
}

/* -----------------------------
   Text helpers
------------------------------ */

p {
  margin: 0 0 12px;
}

.muted {
  color: var(--muted);
  font-size: 0.9rem;
}

/* -----------------------------
   Panels / cards
------------------------------ */

.panel {
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 24px;
  margin-top: 16px;
  box-shadow: 0 1px 2px rgba(0,0,0,0.03);
}

/* -----------------------------
   Inputs
------------------------------ */

input[type="text"] {
  width: 100%;
  max-width: 420px;
  padding: 10px 12px;
  border: 1px solid var(--border);
  border-radius: 6px;
  font-size: 0.9rem;
  margin-bottom: 16px;
}

input[type="text"]:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px var(--accent-light);
}

/* -----------------------------
   Tables
------------------------------ */

table {
  width: 100%;
  border-collapse: separate;
  border-spacing: 0;
  font-size: 0.9rem;
}

th {
  background: #f1f5f9;
  text-align: left;
  padding: 10px 12px;
  font-weight: 600;
  color: #111827;
  border-bottom: 1px solid var(--border);
}

td {
  padding: 10px 12px;
  border-bottom: 1px solid var(--border);
  vertical-align: top;
}

tr:hover td {
  background-color: #f9fafb;
}

/* -----------------------------
   Links
------------------------------ */

a {
  color: var(--accent);
  text-decoration: none;
}

a:hover {
  text-decoration: underline;
}

/* -----------------------------
   Utility
------------------------------ */

.back-link {
  display: inline-block;
  margin-bottom: 16px;
  font-size: 0.85rem;
}