@import url("https://fonts.googleapis.com/css2?family=Manrope:wght@400;600;700&display=swap");

:root {
  --bg: #0b0f17;
  --panel: #111827;
  --line: #1f2937;
  --text: #e5e7eb;
  --muted: #94a3b8;
  --primary: #60a5fa;
  --warning: #f59e0b;
  --danger: #f87171;
  --ok: #34d399;
  --shadow: 0 12px 30px rgba(2, 6, 23, 0.4);
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: "Manrope", "Segoe UI", Tahoma, Arial, sans-serif;
  color: var(--text);
  background: radial-gradient(circle at top, #0f172a 0%, #0b0f17 55%, #070a11 100%);
}

.topbar {
  background: rgba(15, 23, 42, 0.95);
  color: #fff;
  padding: 16px 24px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
}

.topbar h1 {
  margin: 0;
  font-size: 20px;
}

.topbar nav {
  display: flex;
  gap: 12px;
  align-items: center;
}

.topbar a {
  color: #fff;
  text-decoration: none;
  border: 1px solid rgba(148, 163, 184, 0.4);
  padding: 6px 10px;
  border-radius: 8px;
  font-size: 14px;
  background: rgba(15, 23, 42, 0.6);
}

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

.panel {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 16px;
  box-shadow: var(--shadow);
}

.panel-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 12px;
  flex-wrap: wrap;
}

.stats {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 8px;
  margin-bottom: 12px;
}

.table-wrap {
  overflow-x: auto;
  border: 1px solid var(--line);
  border-radius: 10px;
}

table {
  width: 100%;
  border-collapse: collapse;
  min-width: 1200px;
}

th,
td {
  border-bottom: 1px solid var(--line);
  padding: 10px;
  vertical-align: top;
  text-align: left;
  font-size: 14px;
}

th {
  background: rgba(15, 23, 42, 0.6);
}

.muted {
  color: var(--muted);
  font-size: 12px;
}

.btn {
  border: none;
  border-radius: 8px;
  padding: 8px 12px;
  cursor: pointer;
  font-weight: 600;
  box-shadow: 0 6px 16px rgba(2, 6, 23, 0.4);
}

.btn-small {
  font-size: 12px;
  padding: 6px 10px;
}

.btn-primary {
  background: var(--primary);
  color: #0b0f17;
}

.btn-warning {
  background: var(--warning);
  color: #0b0f17;
}

.btn-danger {
  background: var(--danger);
  color: #0b0f17;
}

.inline-form {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin-bottom: 12px;
}

.inline-form input {
  padding: 8px 10px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(15, 23, 42, 0.85);
  color: var(--text);
}

.status {
  display: inline-block;
  padding: 4px 8px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 700;
}

.status-applied {
  background: rgba(52, 211, 153, 0.18);
  color: var(--ok);
}

.status-eligible {
  background: rgba(96, 165, 250, 0.18);
  color: var(--primary);
}

.status-blocked {
  background: rgba(248, 113, 113, 0.18);
  color: var(--danger);
}

.flash-wrap {
  margin-bottom: 12px;
}

.flash {
  padding: 10px 12px;
  border-radius: 8px;
  margin-bottom: 8px;
}

.flash-success {
  background: rgba(52, 211, 153, 0.15);
  border: 1px solid rgba(52, 211, 153, 0.35);
}

.flash-error {
  background: rgba(248, 113, 113, 0.15);
  border: 1px solid rgba(248, 113, 113, 0.35);
}

table tbody tr:hover {
  background: rgba(148, 163, 184, 0.06);
}
