:root {
  --bg: #0f1419;
  --card: #1a2332;
  --text: #e8eef7;
  --muted: #8b9cb3;
  --accent: #f9d611;
  --accent-dark: #c9ae0e;
  --danger: #e85d5d;
  --ok: #4caf50;
  --border: #2a3545;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  min-height: 100vh;
  font-family: system-ui, "Segoe UI", Roboto, Ubuntu, Cantarell, sans-serif;
  background: radial-gradient(ellipse at top, #1a2744 0%, var(--bg) 55%);
  color: var(--text);
  line-height: 1.5;
}

a {
  color: var(--accent);
}

.wrap {
  max-width: 420px;
  margin: 0 auto;
  padding: 2rem 1.25rem;
}

.card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 1.75rem;
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.35);
}

h1 {
  margin: 0 0 0.35rem;
  font-size: 1.35rem;
}

.sub {
  color: var(--muted);
  font-size: 0.9rem;
  margin-bottom: 1.25rem;
}

label {
  display: block;
  font-size: 0.85rem;
  color: var(--muted);
  margin-bottom: 0.35rem;
}

input[type="text"],
input[type="password"] {
  width: 100%;
  padding: 0.65rem 0.75rem;
  border-radius: 8px;
  border: 1px solid var(--border);
  background: #121a26;
  color: var(--text);
  margin-bottom: 1rem;
}

input:focus {
  outline: 2px solid var(--accent-dark);
  border-color: var(--accent);
}

.btn {
  display: inline-block;
  width: 100%;
  text-align: center;
  padding: 0.7rem 1rem;
  border-radius: 8px;
  border: none;
  font-weight: 600;
  cursor: pointer;
  font-size: 1rem;
}

.btn-primary {
  background: var(--accent);
  color: #1a1500;
}

.btn-primary:hover {
  filter: brightness(1.05);
}

.btn-ghost {
  background: transparent;
  color: var(--muted);
  border: 1px solid var(--border);
  margin-top: 0.75rem;
}

.alert {
  padding: 0.65rem 0.85rem;
  border-radius: 8px;
  margin-bottom: 1rem;
  font-size: 0.9rem;
}

.alert-error {
  background: rgba(232, 93, 93, 0.15);
  border: 1px solid var(--danger);
  color: #ffb4b4;
}

.alert-ok {
  background: rgba(76, 175, 80, 0.15);
  border: 1px solid var(--ok);
  color: #b9f6b0;
}

.nav-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0.75rem 1.25rem;
  border-bottom: 1px solid var(--border);
  background: rgba(0, 0, 0, 0.25);
}

.nav-top a {
  text-decoration: none;
  font-size: 0.9rem;
}

table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.88rem;
}

th,
td {
  padding: 0.5rem 0.6rem;
  border-bottom: 1px solid var(--border);
  text-align: left;
}

th {
  color: var(--muted);
  font-weight: 600;
}

.badge {
  display: inline-block;
  padding: 0.15rem 0.45rem;
  border-radius: 6px;
  font-size: 0.75rem;
  font-weight: 600;
}

.badge-pending {
  background: #3d3310;
  color: var(--accent);
}

.badge-approved {
  background: #153a1a;
  color: #8dff9a;
}

.badge-rejected {
  background: #3a1515;
  color: #ff9a9a;
}

.row-actions form {
  display: inline;
}

.row-actions button {
  padding: 0.25rem 0.5rem;
  font-size: 0.75rem;
  border-radius: 6px;
  border: 1px solid var(--border);
  background: #243044;
  color: var(--text);
  cursor: pointer;
  margin-right: 0.25rem;
}

.row-actions button.approve {
  border-color: var(--ok);
  color: #b9f6b0;
}

.row-actions button.reject {
  border-color: var(--danger);
  color: #ffb4b4;
}
