:root {
  color-scheme: light dark;
  --bg: #0f172a;
  --bg-alt: #111c33;
  --card: rgba(15, 23, 42, 0.85);
  --text: #f8fafc;
  --muted: #94a3b8;
  --accent: #38bdf8;
  --danger: #f87171;
  --success: #4ade80;
  --warning: #facc15;
  font-family: "Inter", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI",
    sans-serif;
}

html,
body {
  margin: 0;
  min-height: 100%;
  background: radial-gradient(circle at top, #1e293b, #020617 55%);
  color: var(--text);
}

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

a:hover {
  text-decoration: underline;
}

.container {
  width: min(960px, 90vw);
  margin: 0 auto;
  padding: 1.5rem;
}

.topbar {
  background: rgba(2, 6, 23, 0.85);
  border-bottom: 1px solid rgba(148, 163, 184, 0.2);
  backdrop-filter: blur(18px);
}

.topbar .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.brand a {
  color: var(--text);
  font-size: 1.3rem;
  font-weight: 700;
}

nav ul {
  display: flex;
  list-style: none;
  gap: 1rem;
  margin: 0;
  padding: 0;
  align-items: center;
}

nav form button {
  background: none;
  border: 1px solid rgba(148, 163, 184, 0.4);
  border-radius: 999px;
  padding: 0.4rem 0.9rem;
  color: var(--text);
  cursor: pointer;
  transition: border-color 0.2s ease, color 0.2s ease;
}

nav form button:hover {
  border-color: var(--accent);
  color: var(--accent);
}

.card {
  background: var(--card);
  border: 1px solid rgba(148, 163, 184, 0.15);
  border-radius: 18px;
  padding: 1.5rem;
  margin: 2rem auto;
  box-shadow: 0 10px 35px rgba(15, 23, 42, 0.6);
}

.card h2 {
  margin-top: 0;
}

.form {
  display: grid;
  gap: 1rem;
}

.form-inline {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  align-items: center;
}

label {
  display: grid;
  gap: 0.4rem;
  font-weight: 600;
}

input,
select,
button,
textarea {
  padding: 0.6rem 0.75rem;
  border-radius: 10px;
  border: 1px solid rgba(148, 163, 184, 0.3);
  background: rgba(15, 23, 42, 0.7);
  color: var(--text);
  font-size: 1rem;
}

button {
  cursor: pointer;
  background: linear-gradient(135deg, #38bdf8, #818cf8);
  border: none;
  color: #0f172a;
  font-weight: 700;
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}

button:hover {
  transform: translateY(-1px);
  box-shadow: 0 8px 15px rgba(56, 189, 248, 0.25);
}

button.danger {
  background: linear-gradient(135deg, #f87171, #ef4444);
  color: #fee2e2;
}

.alert {
  padding: 0.75rem 1rem;
  border-radius: 12px;
  margin-bottom: 1rem;
  border: 1px solid transparent;
}

.alert-warning {
  background: rgba(250, 204, 21, 0.15);
  border-color: rgba(250, 204, 21, 0.4);
  color: #facc15;
}

.alert-success {
  background: rgba(74, 222, 128, 0.15);
  border-color: rgba(74, 222, 128, 0.4);
  color: #4ade80;
}

.alert-error {
  background: rgba(248, 113, 113, 0.15);
  border-color: rgba(248, 113, 113, 0.4);
  color: #f87171;
}

.muted {
  color: var(--muted);
}

.table-wrapper {
  overflow-x: auto;
}

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

thead {
  background: rgba(148, 163, 184, 0.1);
}

th,
td {
  padding: 0.65rem;
  text-align: left;
  border-bottom: 1px solid rgba(148, 163, 184, 0.1);
}

details summary {
  cursor: pointer;
  color: var(--accent);
}

.footer {
  padding: 2rem 0;
  text-align: center;
  color: var(--muted);
  font-size: 0.9rem;
}

@media (max-width: 720px) {
  nav ul {
    flex-direction: column;
    align-items: flex-start;
  }

  .form-inline {
    flex-direction: column;
    align-items: stretch;
  }
}

.card-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  margin-bottom: 1rem;
}

.button,
.card-header a.button {
  display: inline-block;
  padding: 0.55rem 1.1rem;
  border-radius: 999px;
  background: linear-gradient(135deg, #38bdf8, #818cf8);
  color: #0f172a;
  font-weight: 600;
  border: none;
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.button:hover {
  text-decoration: none;
  transform: translateY(-1px);
  box-shadow: 0 8px 15px rgba(56, 189, 248, 0.25);
}

.badge {
  display: inline-flex;
  align-items: center;
  padding: 0.25rem 0.6rem;
  border-radius: 999px;
  background: rgba(148, 163, 184, 0.2);
  color: var(--muted);
  font-size: 0.85rem;
}

.status {
  display: inline-flex;
  padding: 0.25rem 0.6rem;
  border-radius: 999px;
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.03em;
  background: rgba(148, 163, 184, 0.15);
  margin-right: 0.25rem;
}

.status-pending {
  color: #facc15;
  background: rgba(250, 204, 21, 0.12);
}

.status-approved {
  color: #4ade80;
  background: rgba(74, 222, 128, 0.12);
}

.status-denied {
  color: #f87171;
  background: rgba(248, 113, 113, 0.12);
}

.status-disabled {
  color: #94a3b8;
  background: rgba(148, 163, 184, 0.12);
}

.status-running {
  color: #38bdf8;
  background: rgba(56, 189, 248, 0.12);
}

.mods-grid {
  display: grid;
  gap: 0.75rem;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
}

.checkbox-card {
  display: flex;
  gap: 0.75rem;
  padding: 0.75rem;
  border: 1px solid rgba(148, 163, 184, 0.2);
  border-radius: 12px;
  background: rgba(15, 23, 42, 0.6);
}

.checkbox-card input {
  width: auto;
}

.checkbox-card strong {
  display: block;
}

.list-unstyled {
  list-style: none;
  margin: 0.5rem 0 0;
  padding: 0;
}

.actions {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}

.actions form {
  margin: 0;
}

@media (max-width: 720px) {
  .card-header {
    flex-direction: column;
    align-items: flex-start;
  }
}
