* { box-sizing: border-box; }
body { margin: 0; font-family: Arial, sans-serif; background: #f4f7fb; color: #1f2937; }
.layout { display: flex; min-height: 100vh; }
.sidebar { width: 240px; background: #0f172a; color: #fff; padding: 20px; }
.sidebar .brand { font-size: 20px; font-weight: bold; margin-bottom: 20px; }
.sidebar nav a { display: block; color: #e5e7eb; text-decoration: none; padding: 10px 12px; border-radius: 8px; margin-bottom: 8px; background: rgba(255,255,255,0.03); }
.sidebar nav a:hover { background: rgba(255,255,255,0.12); }
.content { flex: 1; padding: 20px; }
.topbar { display: flex; justify-content: space-between; align-items: center; background: #fff; padding: 14px 18px; border-radius: 12px; box-shadow: 0 1px 4px rgba(0,0,0,0.08); margin-bottom: 18px; }
.grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px,1fr)); gap: 16px; margin-bottom: 20px; }
.card { background: #fff; border-radius: 12px; padding: 18px; box-shadow: 0 1px 4px rgba(0,0,0,0.08); }
.card h3 { margin-top: 0; }
form { display: grid; gap: 10px; }
input, select, textarea, button { padding: 10px 12px; border-radius: 8px; border: 1px solid #d1d5db; width: 100%; }
textarea { min-height: 90px; }
button { background: #2563eb; color: #fff; border: none; cursor: pointer; }
button:hover { background: #1d4ed8; }
.table-wrap { overflow: auto; }
table { width: 100%; border-collapse: collapse; }
th, td { padding: 10px; border-bottom: 1px solid #e5e7eb; text-align: left; white-space: nowrap; }
.badge { padding: 4px 8px; border-radius: 999px; font-size: 12px; display: inline-block; background: #e5e7eb; }
.success { color: #065f46; background: #d1fae5; padding: 10px 12px; border-radius: 8px; margin-bottom: 12px; }
.error { color: #991b1b; background: #fee2e2; padding: 10px 12px; border-radius: 8px; margin-bottom: 12px; }
.login-box { max-width: 420px; margin: 8vh auto; }
pre { white-space: pre-wrap; word-break: break-word; }
@media (max-width: 900px) {
  .layout { flex-direction: column; }
  .sidebar { width: 100%; }
}
