* { box-sizing: border-box; margin: 0; padding: 0; }
body { font-family: 'Segoe UI', sans-serif; background: #f5f5f5; color: #333; }

.admin-shell { display: flex; min-height: 100vh; }

.sidebar {
    width: 220px; background: #1e293b; color: #fff; padding: 20px 16px;
    display: flex; flex-direction: column; gap: 8px;
}
.sidebar h2 { font-size: 16px; margin-bottom: 16px; color: #94a3b8; }
.sidebar a { color: #cbd5e1; text-decoration: none; padding: 8px 12px; border-radius: 6px; display: block; }
.sidebar a:hover, .sidebar a.active { background: #334155; color: #fff; }

.content { flex: 1; padding: 32px; max-width: 1200px; }

h1 { font-size: 24px; margin-bottom: 24px; }
h2 { font-size: 18px; margin: 24px 0 12px; }

.stats-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 16px; margin-bottom: 24px; }
.stat-card { background: #fff; padding: 20px; border-radius: 8px; box-shadow: 0 1px 3px rgba(0,0,0,0.1); text-align: center; }
.stat-card h3 { font-size: 32px; color: #1e293b; }
.stat-card p { color: #64748b; margin-top: 4px; }

table { width: 100%; border-collapse: collapse; background: #fff; border-radius: 8px; overflow: hidden; box-shadow: 0 1px 3px rgba(0,0,0,0.1); }
th, td { padding: 10px 14px; text-align: left; border-bottom: 1px solid #e2e8f0; }
th { background: #f8fafc; font-weight: 600; color: #475569; font-size: 13px; }
td { font-size: 14px; }
code { background: #f1f5f9; padding: 2px 6px; border-radius: 4px; font-size: 13px; }

.form-group { margin-bottom: 16px; }
.form-group label { display: block; font-weight: 600; margin-bottom: 4px; color: #475569; }
.form-group input, .form-group select { padding: 8px 12px; border: 1px solid #cbd5e1; border-radius: 6px; font-size: 14px; width: 100%; max-width: 400px; }

.btn-primary { background: #2563eb; color: #fff; border: none; padding: 10px 24px; border-radius: 6px; cursor: pointer; font-size: 14px; }
.btn-primary:hover { background: #1d4ed8; }
.btn-small { padding: 4px 10px; font-size: 12px; border: 1px solid #cbd5e1; border-radius: 4px; background: #fff; cursor: pointer; margin-right: 4px; }
.btn-small:hover { background: #f1f5f9; }
.btn-danger { color: #dc2626; border-color: #fecaca; }
.btn-danger:hover { background: #fef2f2; }

.inline-form { display: flex; gap: 8px; margin-top: 8px; }
.inline-form input { flex: 1; }

.alert { padding: 12px 16px; border-radius: 6px; margin-bottom: 16px; }
.alert-success { background: #f0fdf4; color: #166534; border: 1px solid #bbf7d0; }
.alert-error { background: #fef2f2; color: #991b1b; border: 1px solid #fecaca; }

.result-box { background: #f0fdf4; border: 1px solid #bbf7d0; padding: 16px; border-radius: 8px; margin-top: 16px; }

.status-active { color: #16a34a; font-weight: 600; }
.status-revoked { color: #dc2626; font-weight: 600; }
.status-expired { color: #d97706; font-weight: 600; }
