:root { --navy: #0f172a; --navy-2: #17233d; --surface: #f4f7fb; --primary: #2563eb; }
body { margin: 0; font-size: 15px; background: var(--surface); }
.admin-body { min-height: 100vh; display: flex; color: #1f2937; }
.admin-sidebar { position: fixed; inset: 0 auto 0 0; width: 260px; background: var(--navy); color: #cbd5e1; padding: 22px 16px; }
.brand { display: flex; align-items: center; gap: 12px; color: #fff; font-weight: 700; text-decoration: none; font-size: 1.2rem; margin-bottom: 28px; }
.brand i { color: #60a5fa; font-size: 1.55rem; }
.admin-sidebar .nav-link { color: #cbd5e1; display: flex; gap: 10px; align-items: center; border-radius: 8px; padding: 11px 12px; margin-bottom: 4px; }
.admin-sidebar .nav-link:hover, .admin-sidebar .nav-link:focus { color: #fff; background: var(--navy-2); }
.admin-main { margin-left: 260px; width: calc(100% - 260px); min-height: 100vh; }
.topbar { min-height: 82px; background: #fff; border-bottom: 1px solid #e5e7eb; display: flex; align-items: center; justify-content: space-between; padding: 18px 28px; gap: 12px; }
.topbar h1 { margin: 0; font-size: 1.35rem; font-weight: 700; }
.content-wrap { padding: 26px; }
.stat-card, .data-card { background: #fff; border: 1px solid #e5e7eb; border-radius: 8px; box-shadow: 0 8px 24px rgba(15, 23, 42, .05); }
.stat-card { padding: 20px; }
.stat-card .icon { width: 42px; height: 42px; display: grid; place-items: center; border-radius: 8px; color: #fff; background: var(--primary); }
.table td, .table th { vertical-align: middle; }
.badge-soft-active { background: #dcfce7; color: #15803d; }
.badge-soft-warning { background: #fef3c7; color: #a16207; }
.badge-soft-danger { background: #fee2e2; color: #b91c1c; }
.badge-soft-muted { background: #e5e7eb; color: #4b5563; }
.auth-body { min-height: 100vh; display: grid; place-items: center; background: linear-gradient(135deg, #0f172a, #1d4ed8); padding: 20px; }
.auth-card { width: min(440px, 100%); background: #fff; border-radius: 8px; box-shadow: 0 24px 70px rgba(0, 0, 0, .28); padding: 34px; }
.required::after { content: " *"; color: #dc2626; }
.module-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 10px; }
.module-option { display: flex; align-items: flex-start; gap: 10px; min-height: 76px; padding: 12px; border: 1px solid #dbe1ea; border-radius: 6px; background: #fff; cursor: pointer; }
.module-option:hover { border-color: #93b4ee; background: #f8fbff; }
.module-option span { display: grid; gap: 2px; min-width: 0; }
.module-option code { font-size: .76rem; }
.module-option small { color: #64748b; line-height: 1.35; }
.module-editor { display: grid; grid-template-columns: 1.1fr 1.5fr 1fr 100px; gap: 10px; }
.module-editor .module-description { grid-column: 1 / -2; }
.module-list { display: grid; gap: 8px; }
.module-row { display: grid; grid-template-columns: 150px 1.2fr 1fr 90px 1.8fr 100px 42px; gap: 8px; align-items: center; padding: 10px 0; border-top: 1px solid #e5e7eb; }
.help-content { max-width: 980px; }
.help-content h1 { font-size: 1.65rem; margin-bottom: 1rem; }
.help-content h2 { font-size: 1.2rem; margin-top: 1.8rem; padding-top: 1rem; border-top: 1px solid #e5e7eb; }
.help-content p, .help-content li { color: #374151; line-height: 1.65; }
.help-content pre { background: #0f172a; color: #e5e7eb; border-radius: 8px; padding: 14px 16px; overflow-x: auto; }
.help-content code { color: #1d4ed8; }
.help-content pre code { color: inherit; }
@media (max-width: 900px) {
  .admin-sidebar { position: static; width: 100%; }
  .admin-body { display: block; }
  .admin-main { margin-left: 0; width: 100%; }
  .topbar { align-items: flex-start; flex-direction: column; }
  .module-editor, .module-row { grid-template-columns: 1fr; }
  .module-editor .module-description { grid-column: auto; }
}
