/* :root {
  --bg: #f0f4f9;
  --card: #ffffff;
  --accent: #2a6f97;
  --accent-dark: #1b4d6a;
  --text: #1a1a1a;
  --muted: #6b7280;
  --border: #d1d5db;
  --success: #1f9d55;
  --danger: #c0392b;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: "Segoe UI", Tahoma, Geneva, Verdana, sans-serif;
  color: var(--text);
  background: var(--bg);
}

header {
  background: var(--accent);
  color: white;
  padding: 16px 24px;
}

header h1 {
  margin: 0;
  font-size: 22px;
  letter-spacing: 0.3px;
}

nav {
  margin-top: 8px;
}

nav a {
  color: #ffffff;
  text-decoration: none;
  margin-right: 14px;
  font-weight: 600;
}

nav a:hover {
  text-decoration: underline;
}

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

.card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 20px;
  margin-bottom: 18px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
}

h2 {
  margin-top: 0;
  color: var(--accent-dark);
}

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

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

button {
  background: var(--accent);
  color: white;
  border: none;
  cursor: pointer;
  margin-top: 12px;
  font-weight: 700;
}

button:hover {
  background: var(--accent-dark);
}

.alert {
  padding: 10px 12px;
  border-radius: 6px;
  margin-bottom: 12px;
}

.alert.success {
  background: #e8f5e9;
  color: var(--success);
}

.alert.error {
  background: #fdecea;
  color: var(--danger);
}

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

.table th, .table td {
  text-align: left;
  padding: 10px;
  border-bottom: 1px solid var(--border);
}

.badge {
  display: inline-block;
  padding: 4px 8px;
  border-radius: 6px;
  background: #eef2ff;
  font-weight: 700;
  color: var(--accent-dark);
}

.list {
  list-style: none;
  padding: 0;
}

.list li {
  padding: 10px;
  border: 1px solid var(--border);
  margin-bottom: 8px;
  border-radius: 6px;
  background: #f8fafc;
  cursor: grab;
}

.list li.dragging {
  opacity: 0.5;
}

.footer-note {
  color: var(--muted);
  font-size: 12px;
} */
:root {
  --bg: #f7f9fc;
  --card: #ffffff;
  --accent: #3c5a9a;        /* cleaner blue */
  --accent-soft: #e8efff;
  --text: #111827;
  --muted: #6b7280;
  --border: #e5e7eb;
  --success: #16a34a;
  --danger: #dc2626;
  --radius: 12px;
  --shadow: 0 8px 24px rgba(0, 0, 0, 0.04);
}

/* Reset */
* {
  box-sizing: border-box;
}

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

/* Header */
header {
  background: linear-gradient(135deg, var(--accent), #273e8a);
  color: white;
  padding: 20px 28px;
}

header h1 {
  margin: 0;
  font-size: 20px;
  font-weight: 700;
  letter-spacing: 0.2px;
}

nav {
  margin-top: 6px;
}

nav a {
  color: rgba(255, 255, 255, 0.9);
  text-decoration: none;
  margin-right: 16px;
  font-weight: 500;
}

nav a:hover {
  text-decoration: underline;
}

/* Layout */
.container {
  max-width: 1080px;
  margin: 32px auto;
  padding: 0 20px;
}

/* Cards */
.card {
  background: var(--card);
  border-radius: var(--radius);
  padding: 24px;
  margin-bottom: 20px;
  box-shadow: var(--shadow);
  border: 1px solid var(--border);
}

/* Headings */
h2 {
  margin-top: 0;
  margin-bottom: 16px;
  font-size: 18px;
  font-weight: 700;
  color: var(--text);
}

/* Forms */
label {
  display: block;
  margin: 14px 0 6px;
  font-size: 14px;
  font-weight: 600;
  color: var(--muted);
}

input,
select {
  width: 100%;
  padding: 11px 12px;
  border-radius: 8px;
  border: 1px solid var(--border);
  font-size: 14px;
  background: #fff;
  transition: border-color 0.2s, box-shadow 0.2s;
}

input:focus,
select:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px var(--accent-soft);
}

/* Buttons */
button {
  width: 100%;
  margin-top: 16px;
  padding: 12px;
  border-radius: 10px;
  border: none;
  background: var(--accent);
  color: white;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}

button:hover {
  transform: translateY(-1px);
  box-shadow: 0 6px 16px rgba(37, 99, 235, 0.3);
}

/* Alerts */
.alert {
  padding: 12px 14px;
  border-radius: 10px;
  margin-bottom: 14px;
  font-size: 14px;
}

.alert.success {
  background: #ecfdf5;
  color: var(--success);
}

.alert.error {
  background: #fef2f2;
  color: var(--danger);
}

/* Table */
.table {
  width: 100%;
  border-collapse: collapse;
  font-size: 14px;
}

.table th,
.table td {
  padding: 12px 10px;
  border-bottom: 1px solid var(--border);
}

.table th {
  color: var(--muted);
  font-weight: 600;
}

/* Badge */
.badge {
  display: inline-block;
  padding: 4px 10px;
  border-radius: 999px;
  background: var(--accent-soft);
  color: var(--accent);
  font-size: 12px;
  font-weight: 600;
}

/* Drag list */
.list {
  list-style: none;
  padding: 0;
}

.list li {
  padding: 12px 14px;
  margin-bottom: 10px;
  border-radius: 10px;
  background: #ffffff;
  border: 1px solid var(--border);
  cursor: grab;
  transition: box-shadow 0.2s ease;
}

.list li:hover {
  box-shadow: var(--shadow);
}

.list li.dragging {
  opacity: 0.6;
}

/* Footer note */
.footer-note {
  color: var(--muted);
  font-size: 12px;
  margin-top: 12px;
}
