body.dark {
  background: #0f172a;
  color: #e5e7eb;
}

body.dark .card {
  background: #020617;
  color: #e5e7eb;
}

body.dark .topbar {
  background: #020617;
}

body.dark table th,
body.dark table td {
  border-color: #1f2937;
}

body.dark textarea,
body.dark input,
body.dark select {
  background: #020617;
  color: #e5e7eb;
  border-color: #1f2937;
}

/* BASIC RESET */
* {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Arial, sans-serif;
  background: #f3f4f6;
  color: #111827;
}

/* TOP NAVBAR */
.topbar {
  background: #111827;
  color: #fff;
  padding: 14px 22px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.topbar a {
  color: #93c5fd;
  text-decoration: none;
  font-size: 14px;
}

/* CONTAINER */
.container {
  max-width: 1150px;
  margin: 22px auto;
  padding: 0 14px;
}

/* CARDS */
.card {
  background: #fff;
  border-radius: 14px;
  padding: 18px 18px;
  margin-bottom: 18px;
  box-shadow: 0 10px 20px -12px rgba(0,0,0,.12);
}

/* TITLES */
h1, h2, h3 {
  margin-top: 0;
}

table {
  width: 100%;
  border-collapse: collapse;
  margin-top: 10px;
}

th {
  text-align: left;
  padding: 10px;
  background: #f9fafb;
  border-bottom: 1px solid #e5e7eb;
  font-weight: 600;
}

td {
  padding: 10px;
  border-bottom: 1px solid #e5e7eb;
}

textarea, input, select {
  width: 100%;
  padding: 8px 10px;
  border: 1px solid #d1d5db;
  border-radius: 8px;
  font-size: 14px;
}

button {
  padding: 8px 14px;
  border-radius: 999px;
  border: none;
  cursor: pointer;
  background: #2563eb;
  color: #fff;
  font-weight: 500;
}

button:hover {
  background: #1d4ed8;
}

.notice {
  background: #ecfeff;
  border: 1px solid #06b6d4;
  padding: 10px;
  border-radius: 10px;
  margin-bottom: 10px;
}

.error {
  background: #fee2e2;
  border: 1px solid #ef4444;
  padding: 10px;
  border-radius: 10px;
}
