:root {
  --blue: #0D4270;
  --blue-dark: #0a3559;
  --bg: #f4f7fb;
  --text: #1d2a36;
  --muted: #667587;
  --border: #d8e2ee;
  --success: #edf7ee;
  --danger: #b00020;
  --danger-dark: #8a001a;
  --danger-bg: #fff0f2;
}
* { box-sizing: border-box; }
body { margin: 0; font-family: Arial, Helvetica, sans-serif; background: var(--bg); color: var(--text); }
a { color: var(--blue); text-decoration: none; }
.container { width: min(1100px, calc(100% - 32px)); margin: 0 auto; }
.site-header, .site-footer { background: var(--blue); color: white; }
.header-row { display:flex; align-items:center; justify-content:space-between; padding: 16px 0; }
.brand { color:white; font-size: 1.2rem; font-weight: 700; }
nav a { color:white; margin-left: 16px; }
.main-content { padding: 32px 0 48px; }
.page-header { margin-bottom: 20px; }
.card { background: white; border-radius: 16px; padding: 24px; box-shadow: 0 10px 25px rgba(13,66,112,.08); margin-bottom: 20px; }
.form-card h2 { margin-top: 28px; border-top: 1px solid var(--border); padding-top: 20px; }
.form-card h2:first-of-type { margin-top: 8px; border-top: 0; padding-top: 0; }
.grid-1, .grid-2, .detail-grid, .stats-grid { display:grid; gap: 16px; }
.grid-2, .detail-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.stats-grid { grid-template-columns: repeat(5, minmax(0, 1fr)); margin-bottom: 20px; }
.stat-card { background:white; border-radius: 16px; padding: 18px; box-shadow: 0 10px 25px rgba(13,66,112,.08); }
.stat-card span { display:block; color: var(--muted); margin-bottom: 8px; }
.stat-card strong { font-size: 1.8rem; }
label { display:block; font-weight:600; margin-bottom:8px; }
.form-control, textarea, select, input[type="text"], input[type="email"], input[type="date"], input[type="number"], input[type="file"] {
  width:100%; border:1px solid var(--border); border-radius:10px; padding:12px 14px; font-size: 1rem; background:white;
}
.radio-group { gap: 12px; }
.radio-item { display:flex; align-items:flex-start; gap:10px; font-weight: normal; padding:12px 14px; border:1px solid var(--border); border-radius:10px; }
.checkbox-group label { font-weight: normal; margin-bottom: 10px; }
.btn-primary, .btn-secondary, .btn-danger { display:inline-block; border:0; border-radius: 12px; padding: 12px 18px; cursor:pointer; font-weight:700; }
.btn-primary { background: var(--blue); color:white; }
.btn-primary:hover { background: var(--blue-dark); }
.btn-secondary { background: white; color: var(--blue); border:1px solid var(--border); }
.btn-danger { background: var(--danger); color:white; }
.btn-danger:hover { background: var(--danger-dark); }
.modal-overlay { position:fixed; inset:0; background:rgba(0,0,0,.45); display:flex; align-items:center; justify-content:center; z-index:999; }
.modal-overlay[hidden] { display:none; }
.modal { background:white; border-radius:16px; padding:32px; max-width:440px; width:calc(100% - 32px); box-shadow:0 20px 60px rgba(0,0,0,.2); }
.modal h3 { margin:0 0 10px; }
.modal p { margin:0 0 24px; color:var(--muted); line-height:1.6; }
.modal-actions { display:flex; gap:10px; justify-content:flex-end; }
.validation-summary, .field-validation { color: #b00020; }
.validation-summary ul { margin: 0 0 16px; }
.success-card { background: var(--success); }
.admin-topbar { display:flex; align-items:center; justify-content:space-between; gap:16px; margin-bottom:20px; }
.actions { display:flex; gap: 10px; flex-wrap: wrap; }
.table { width:100%; border-collapse: collapse; }
.table th, .table td { border-bottom:1px solid var(--border); padding: 12px 8px; text-align:left; vertical-align:top; }
.filter-row { display:grid; grid-template-columns: 2fr 1fr auto; gap:12px; align-items:end; }
.detail-list { display:grid; grid-template-columns: 180px 1fr; gap:10px 16px; margin:0; }
.detail-list dt { font-weight:700; color: var(--muted); }
.detail-list dd { margin:0; }
@media (max-width: 900px) {
  .grid-2, .detail-grid, .stats-grid, .filter-row { grid-template-columns: 1fr; }
  .admin-topbar, .header-row { flex-direction:column; align-items:flex-start; }
}
