:root {
  --theme-color: #1d4ed8;
  --bg: #f3f4f6;
  --card: #ffffff;
  --text: #0f172a;
}
* { box-sizing: border-box; }
body { margin: 0; font-family: Arial, sans-serif; background: var(--bg); color: var(--text); }
.app { display: flex; min-height: 100vh; }
.sidebar { width: 250px; background: #0f172a; color: #fff; padding: 16px; display:flex; flex-direction:column; gap:16px; }
.brand { font-weight: bold; }
.sidebar nav { display:flex; flex-direction:column; gap:8px; }
.sidebar a { color:#dbeafe; text-decoration:none; padding:8px; border-radius:8px; }
.sidebar a:hover { background:#1e293b; }
.sidebar-footer { margin-top:auto; display:flex; flex-direction:column; gap:8px; }
.main-content { flex: 1; padding: 16px; }
.topbar { display:flex; justify-content:space-between; align-items:center; margin-bottom:16px; gap:8px; }
.grid { display:grid; gap:12px; }
.grid-4 { grid-template-columns: repeat(4, minmax(0,1fr)); }
.card { background: var(--card); border-radius: 12px; padding: 16px; box-shadow: 0 2px 12px rgba(0,0,0,.06); }
.stat { font-size: 26px; font-weight: bold; color: var(--theme-color); }
.btn { display:inline-block; background: var(--theme-color); color:#fff; border:none; padding:8px 12px; border-radius:8px; text-decoration:none; cursor:pointer; }
.btn-secondary { background:#334155; }
.btn-danger { background:#dc2626; }
.alert { padding:10px; border-radius:8px; margin-bottom:8px; }
.alert-success { background:#dcfce7; }
.alert-error { background:#fee2e2; }
form { background: var(--card); padding: 16px; border-radius: 12px; margin-bottom: 12px; }
label { display:block; font-size:14px; margin-bottom:4px; }
input, select, textarea { width:100%; padding:8px; margin-bottom:10px; border:1px solid #cbd5e1; border-radius:8px; }
table { width:100%; border-collapse: collapse; background: #fff; border-radius: 10px; overflow:hidden; }
th, td { padding:10px; border-bottom:1px solid #e2e8f0; text-align:left; font-size:14px; }
.actions { display:flex; gap:8px; flex-wrap:wrap; }
.mobile-toggle { display:none; }
.qcm-grid { display:grid; grid-template-columns: 80px repeat(5, 40px); gap:6px; align-items:center; }
.bubble { width:26px; height:26px; border:2px solid #334155; border-radius:50%; margin:auto; }
.sheet { width:210mm; min-height:297mm; background:#fff; margin:auto; padding:10mm; position:relative; }
.corner { width:12mm; height:12mm; border:3px solid #000; position:absolute; }
.corner.tl { top:5mm; left:5mm; } .corner.tr { top:5mm; right:5mm; }
.corner.bl { bottom:5mm; left:5mm; } .corner.br { bottom:5mm; right:5mm; }
@media (max-width: 900px) {
  .sidebar { position: fixed; left: -260px; top:0; bottom:0; z-index:10; transition:.2s; }
  .sidebar.open { left:0; }
  .mobile-toggle { display:inline-block; }
  .grid-4 { grid-template-columns: repeat(2, minmax(0,1fr)); }
}
