* { box-sizing: border-box; margin: 0; padding: 0; font-family: system-ui, -apple-system, sans-serif; }
body { background: #f1f5f9; color: #1e293b; display: flex; height: 100vh; overflow: hidden; }
.sidebar { width: 250px; background: #0f172a; color: #cbd5e1; display: flex; flex-direction: column; }
.brand { height: 64px; display: flex; align-items: center; padding: 0 20px; font-size: 20px; font-weight: bold; color: #fff; border-bottom: 1px solid #1e293b; }
.brand span { color: #818cf8; }
.nav { padding: 15px; display: flex; flex-direction: column; gap: 6px; }
.nav a { color: #cbd5e1; text-decoration: none; padding: 10px 14px; border-radius: 8px; font-size: 14px; transition: 0.2s; }
.nav a:hover, .nav a.active { background: #4f46e5; color: #fff; }
.main { flex: 1; display: flex; flex-direction: column; overflow-y: auto; }
.topbar { height: 64px; background: #fff; border-bottom: 1px solid #e2e8f0; display: flex; align-items: center; justify-content: space-between; padding: 0 24px; }
.badge { background: #e0e7ff; color: #4338ca; padding: 4px 12px; border-radius: 99px; font-size: 12px; font-weight: 600; }
.content { padding: 24px; }
.grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 20px; margin-bottom: 24px; }
.card { background: #fff; padding: 20px; border-radius: 12px; border: 1px solid #e2e8f0; box-shadow: 0 1px 2px rgba(0,0,0,0.03); }
.card p { font-size: 13px; color: #64748b; }
.card h3 { font-size: 28px; margin-top: 6px; }
.text-green { color: #059669; } .text-red { color: #e11d48; } .text-indigo { color: #4f46e5; }
.btn { background: #4f46e5; color: #fff; border: none; padding: 8px 16px; border-radius: 8px; cursor: pointer; text-decoration: none; font-size: 14px; display: inline-block; }
.btn:hover { background: #4338ca; }
.table { width: 100%; border-collapse: collapse; margin-top: 15px; background: #fff; }
.table th, .table td { padding: 12px 15px; text-align: left; border-bottom: 1px solid #e2e8f0; font-size: 14px; }
.table th { background: #f8fafc; color: #475569; font-weight: 600; }
.form-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 15px; margin-top: 15px; }
.input { width: 100%; padding: 9px 12px; border: 1px solid #cbd5e1; border-radius: 8px; font-size: 14px; margin-top: 4px; }
.alert { padding: 12px 16px; border-radius: 8px; margin-bottom: 16px; font-size: 14px; }
.alert-ok { background: #dcfce7; color: #166534; border: 1px solid #bbf7d0; }
.alert-err { background: #fee2e2; color: #991b1b; border: 1px solid #fecaca; }
.btn-sm { padding: 5px 10px; font-size: 12px; }
.btn-green { background: #059669; } .btn-red { background: #e11d48; }
