:root {
  --bg: #ffffff;
  --text: #1f2937;
  --muted: #6b7280;

  --card: #f8fafc;
  --border: #e5e7eb;

  --primary: #2563eb;
  --success: #16a34a;
  --warning: #f59e0b;
  --danger: #dc2626;

  --text-on-color: #ffffff;
}

/* DARK */
.theme-dark {
  --bg: #0f172a;
  --text: #e5e7eb;

  --card: #1e293b;
  --border: #1e293b;
}

/* CONTRAST */
.theme-contrast {
  --bg: #000;
  --text: #fff;

  --card: #000;
  --border: #fff;

  --primary: #ffff00;
  --success: #00ff00;
  --warning: #ffff00;
  --danger: #ff0000;

  --text-on-color: #000;
}

/* BASE */
body {
  background: var(--bg);
  color: var(--text);
  font-family: system-ui, sans-serif;
}

/* LAYOUT */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 16px;
}

/* CARD */
.card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 16px;
}

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

.table-row {
  border-bottom: 1px solid var(--border);
}

.table-row:hover {
  background: var(--card);
}

/* BADGE */
.badge {
  display: inline-block;
  padding: 4px 8px;
  border-radius: 6px;
  font-size: 12px;
  font-weight: 600;
}

.badge.success {
  background: var(--success);
  color: var(--text-on-color);
}

.badge.warning {
  background: var(--warning);
  color: #000;
}

.badge.danger {
  background: var(--danger);
  color: var(--text-on-color);
}

/* TEXT */
.text-muted {
  color: var(--muted);
}

.text-center {
  text-align: center;
}

/* BUTTON */
.button {
  background: var(--primary);
  color: var(--text-on-color);
  border: none;
  padding: 8px 12px;
  border-radius: 6px;
  cursor: pointer;
}