:root {
  --bg: #f4f7f9;
  --sidebar: #163a5f;
  --panel: #ffffff;
  --text: #1f2937;
  --muted: #6b7280;
  --accent: #3a7ca5;
  --ok: #0f766e;
  --err: #b91c1c;
}
* { box-sizing: border-box; }
body { margin: 0; font-family: "Segoe UI", Tahoma, sans-serif; background: radial-gradient(circle at 15% 10%, #e8f1f7 0%, var(--bg) 40%); color: var(--text); }
.app { display: flex; min-height: 100vh; }
.sidebar { width: 250px; background: linear-gradient(180deg, var(--sidebar), #0b2339); color: #fff; padding: 20px; }
.sidebar h1 { font-size: 20px; margin: 0 0 20px; }
.sidebar nav { display: grid; gap: 8px; }
.sidebar a { color: #d9ebf7; text-decoration: none; padding: 8px; border-radius: 6px; }
.sidebar a:hover { background: rgba(255,255,255,0.12); }
.logout-form { margin-top: 20px; }
.logout-form button { width: 100%; }
.content { flex: 1; padding: 20px; }
.alert { padding: 10px; border-radius: 6px; margin-bottom: 10px; color: #fff; }
.alert.success { background: var(--ok); }
.alert.error { background: var(--err); }
.card, table, form, .auth-card { background: var(--panel); border-radius: 10px; box-shadow: 0 8px 25px rgba(10, 30, 50, 0.07); }
.cards { display: grid; grid-template-columns: repeat(auto-fit,minmax(200px,1fr)); gap: 15px; margin-bottom: 20px; }
.card { padding: 16px; }
.card h3 { margin: 0 0 8px; }
table { width: 100%; border-collapse: collapse; margin-top: 12px; overflow: hidden; }
th, td { padding: 10px; border-bottom: 1px solid #e5e7eb; text-align: left; font-size: 14px; }
form { padding: 14px; margin: 12px 0; }
label { display: grid; gap: 5px; font-size: 13px; color: var(--muted); }
input, select, button { padding: 10px; border-radius: 8px; border: 1px solid #d1d5db; font-size: 14px; }
button { background: var(--accent); border: 0; color: #fff; cursor: pointer; }
button:hover { opacity: .92; }
.grid-2 { display: grid; grid-template-columns: repeat(auto-fit,minmax(220px,1fr)); gap: 10px; }
.grid-3 { display: grid; grid-template-columns: repeat(auto-fit,minmax(180px,1fr)); gap: 10px; }
.full { grid-column: 1/-1; }
.inline-form { display: flex; gap: 8px; align-items: center; }
.progress { background: #e5e7eb; border-radius: 999px; height: 10px; margin-bottom: 12px; }
.bar { background: var(--accent); height: 10px; border-radius: 999px; }
.checklist { list-style: none; padding: 0; }
.checklist li { margin-bottom: 5px; }
.auth-body { min-height: 100vh; display: grid; place-items: center; }
.auth-card { width: min(460px, 92vw); padding: 20px; }
.dropzone { border: 2px dashed #9ca3af; }
.dropzone.dragover { border-color: var(--accent); background: #eff6ff; }
@media (max-width: 960px) {
  .app { flex-direction: column; }
  .sidebar { width: 100%; }
}
