*{box-sizing:border-box}
body{margin:0;font-family:-apple-system,BlinkMacSystemFont,"Segoe UI",Roboto,Arial,sans-serif;font-size:15px;color:#1f2937;background:#f3f4f6}
a{color:#2563eb;text-decoration:none}
.layout{display:flex;min-height:100vh}
.sidebar{width:240px;background:#fff;border-right:1px solid #e5e7eb;padding:20px 12px;display:flex;flex-direction:column}
.sidebar .brand{font-size:18px;font-weight:700;padding:0 12px 20px;color:#111827}
.sidebar nav a{display:block;padding:10px 12px;border-radius:6px;color:#374151;margin-bottom:4px}
.sidebar nav a:hover{background:#f3f4f6}
.sidebar nav a.active{background:#eff6ff;color:#2563eb;font-weight:600}
.sidebar .logout{margin-top:auto}
.main{flex:1;display:flex;flex-direction:column;min-width:0}
.topbar{background:#fff;border-bottom:1px solid #e5e7eb;padding:14px 28px;display:flex;justify-content:space-between;align-items:center}
.content{padding:28px}
h1{margin:0 0 20px;font-size:22px}
.card{background:#fff;border:1px solid #e5e7eb;border-radius:8px;padding:20px}
table{width:100%;border-collapse:collapse}
th,td{text-align:left;padding:10px 12px;border-bottom:1px solid #e5e7eb}
th{font-size:13px;color:#6b7280;text-transform:uppercase;letter-spacing:.03em}
.btn{display:inline-block;padding:8px 16px;border:1px solid transparent;border-radius:6px;background:#2563eb;color:#fff;font-size:14px;cursor:pointer}
.btn:hover{background:#1d4ed8}
.btn-light{background:#fff;color:#374151;border-color:#d1d5db}
.btn-light:hover{background:#f3f4f6}
.btn-danger{background:#dc2626}
.btn-danger:hover{background:#b91c1c}
.btn-sm{padding:5px 10px;font-size:13px}
.actions{display:flex;gap:8px}
.actions form{margin:0}
.head{display:flex;justify-content:space-between;align-items:center;margin-bottom:20px}
.head h1{margin:0}
.form-group{margin-bottom:16px}
label{display:block;margin-bottom:6px;font-weight:600;font-size:14px}
input[type=text],input[type=password]{width:100%;padding:9px 12px;border:1px solid #d1d5db;border-radius:6px;font-size:15px;background:#fff}
input:focus{outline:2px solid #bfdbfe;border-color:#2563eb}
.error{color:#dc2626;font-size:13px;margin-top:4px}
.alert{padding:12px 16px;border-radius:6px;margin-bottom:20px}
.alert-success{background:#ecfdf5;color:#065f46;border:1px solid #a7f3d0}
.alert-error{background:#fef2f2;color:#991b1b;border:1px solid #fecaca}
.form-card{max-width:520px}
.login-wrap{min-height:100vh;display:flex;align-items:center;justify-content:center;padding:20px}
.login-card{width:100%;max-width:380px;background:#fff;border:1px solid #e5e7eb;border-radius:8px;padding:28px}
.login-card h1{text-align:center}
.check{display:flex;align-items:center;gap:8px;font-weight:400}
.stat{font-size:32px;font-weight:700}
.muted{color:#6b7280}
