* { box-sizing: border-box; }
body {
  margin: 0;
  font-family: "Segoe UI", Tahoma, Geneva, Verdana, sans-serif;
  background: #f3f6fb;
  color: #101828;
}

.layout {
  display: grid;
  grid-template-columns: 260px 1fr;
  min-height: 100vh;
}

.sidebar {
  background: linear-gradient(180deg, #0b1220 0%, #111827 100%);
  color: #e5e7eb;
  padding: 20px 14px;
}

.brand {
  font-size: 18px;
  font-weight: 700;
  margin-bottom: 20px;
  color: #f9fafb;
}

.side-group {
  margin-bottom: 16px;
}

.side-group h4 {
  margin: 0 0 8px;
  font-size: 12px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: #94a3b8;
}

.side-link {
  display: block;
  color: #d1d5db;
  text-decoration: none;
  padding: 8px 10px;
  border-radius: 8px;
  margin-bottom: 4px;
  font-size: 14px;
}

.side-link:hover { background: rgba(148, 163, 184, 0.18); }
.side-link.active { background: #2563eb; color: #fff; }
.side-link.disabled { opacity: 0.75; }

.content { padding: 22px; }

.topbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 14px;
}

.pill {
  display: inline-block;
  padding: 4px 8px;
  border-radius: 999px;
  background: #dbeafe;
  color: #1d4ed8;
  font-size: 12px;
  font-weight: 700;
}

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

.card {
  background: #fff;
  border: 1px solid #e5e7eb;
  border-radius: 12px;
  padding: 14px;
  box-shadow: 0 8px 20px rgba(15, 23, 42, 0.05);
}

.card .k {
  font-size: 11px;
  text-transform: uppercase;
  color: #64748b;
}

.card .v {
  margin-top: 6px;
  font-size: 26px;
  font-weight: 800;
  color: #111827;
}

.section {
  margin-top: 14px;
  background: #fff;
  border: 1px solid #e5e7eb;
  border-radius: 12px;
  padding: 14px;
}

.section h3 {
  margin-top: 0;
  margin-bottom: 10px;
  font-size: 18px;
}

.notice {
  background: #fff7ed;
  border: 1px solid #fed7aa;
  border-left: 4px solid #f97316;
  padding: 10px 12px;
  border-radius: 8px;
  margin-bottom: 12px;
}

.error {
  background: #fef2f2;
  border: 1px solid #fecaca;
  border-left: 4px solid #ef4444;
  padding: 10px 12px;
  border-radius: 8px;
  margin-bottom: 12px;
}

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

th {
  text-align: left;
  font-size: 11px;
  text-transform: uppercase;
  color: #64748b;
  border-bottom: 1px solid #e5e7eb;
  padding: 8px 6px;
}

td {
  border-bottom: 1px solid #f1f5f9;
  padding: 8px 6px;
  font-size: 13px;
}

.num { text-align: right; }

.badge {
  display: inline-block;
  border-radius: 999px;
  padding: 2px 8px;
  font-size: 11px;
  font-weight: 700;
  color: #fff;
}
.b-excellent { background: #16a34a; }
.b-good { background: #2563eb; }
.b-average { background: #f59e0b; }
.b-needs { background: #ef4444; }
.b-unrated { background: #6b7280; }

.form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

textarea, input[type="password"], input[type="text"] {
  width: 100%;
  padding: 10px;
  border-radius: 8px;
  border: 1px solid #cbd5e1;
  font-family: monospace;
  font-size: 12px;
}

button {
  border: none;
  border-radius: 8px;
  padding: 10px 12px;
  font-weight: 700;
  cursor: pointer;
}
.btn-primary { background: #2563eb; color: #fff; }
.btn-warning { background: #f59e0b; color: #fff; }
.btn-success { background: #16a34a; color: #fff; }
.btn-danger { background: #dc2626; color: #fff; }

.btn-row { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 8px; }

.login-wrap {
  max-width: 420px;
  margin: 10vh auto;
  background: #fff;
  border: 1px solid #e5e7eb;
  border-radius: 14px;
  padding: 22px;
  box-shadow: 0 12px 28px rgba(15, 23, 42, 0.08);
}

@media (max-width: 920px) {
  .layout { grid-template-columns: 1fr; }
  .sidebar { display: none; }
  .form-grid { grid-template-columns: 1fr; }
}

