* { box-sizing: border-box; }
body { margin: 0; font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif; background: #f4f6f9; color: #1e293b; line-height: 1.5; }
.container { max-width: 1000px; margin: 30px auto; padding: 0 20px; }
.narrow { max-width: 520px; }
.navbar { background: #0f172a; color: #fff; padding: 12px 0; border-bottom: 3px solid #2563eb; }
.nav-inner { max-width: 1000px; margin: auto; padding: 0 20px; display: flex; justify-content: space-between; align-items: center; }
.navbar a { color: #cbd5e1; text-decoration: none; margin-left: 20px; font-weight: 500; transition: color 0.2s; }
.navbar a:hover { color: #fff; }
.brand { font-weight: 700; font-size: 20px; color: #fff !important; letter-spacing: 0.5px; }
.nav-logout { color: #f87171 !important; }
.card { background: #fff; border: 1px solid #e2e8f0; border-radius: 10px; padding: 24px; margin-bottom: 24px; box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.05); }
.login-card { margin-top: 80px; }
.page-header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 24px; }
h1 { margin: 0 0 6px; font-size: 24px; color: #0f172a; }
h2 { margin-top: 0; font-size: 18px; color: #1e293b; border-bottom: 1px solid #e2e8f0; padding-bottom: 10px; margin-bottom: 16px; }
.muted { color: #64748b; font-size: 14px; }
.small { color: #64748b; font-size: 13px; }
.button { display: inline-block; border: 0; border-radius: 6px; padding: 10px 18px; text-decoration: none; cursor: pointer; font-size: 14px; font-weight: 600; text-align: center; }
.primary { background: #2563eb; color: #fff; }
.primary:hover { background: #1d4ed8; }
.secondary { background: #e2e8f0; color: #334155; }
.secondary:hover { background: #cbd5e1; }
.full { width: 100%; display: block; }
.alert-error { background: #fef2f2; border: 1px solid #fecaca; color: #dc2626; padding: 12px 16px; border-radius: 6px; margin-bottom: 20px; font-size: 14px; }
.form-group { margin-bottom: 18px; }
label { display: block; margin-bottom: 6px; font-weight: 600; font-size: 13px; color: #475569; uppercase; }
input[type="text"], input[type="password"], input[type="date"], select { width: 100%; padding: 10px 14px; border: 1px solid #cbd5e1; border-radius: 6px; font-size: 14px; background-color: #fff; }
input:focus, select:focus { outline: none; border-color: #2563eb; box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.15); }
.table-wrap { overflow-x: auto; }
table { width: 100%; border-collapse: collapse; text-align: left; }
th, td { padding: 12px 16px; border-bottom: 1px solid #e2e8f0; font-size: 14px; }
th { background: #f8fafc; font-weight: 600; color: #475569; }
.badge { display: inline-block; padding: 4px 10px; border-radius: 20px; font-size: 12px; font-weight: 700; text-transform: uppercase; }
.badge.active { background: #dcfce7; color: #15803d; }
.badge.revoked { background: #fee2e2; color: #b91c1c; }
.badge.expired { background: #fef3c7; color: #b45309; }
.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; }
@media (max-width: 768px) { .grid-2 { grid-template-columns: 1fr; } }
.data-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; margin-bottom: 16px; }
.data-grid div span { display: block; font-size: 12px; color: #64748b; text-transform: uppercase; font-weight: 600; }
.data-grid div strong { font-size: 15px; color: #0f172a; word-break: break-word; }
.qr-card { text-align: center; }
#qrcode { margin: 20px auto; display: flex; justify-content: center; }
#qrcode img, #qrcode canvas { border: 8px solid #fff; box-shadow: 0 2px 10px rgba(0,0,0,0.1); border-radius: 8px; }
.verification-card { text-align: center; padding: 40px 30px; }
.status-banner { padding: 14px 20px; border-radius: 8px; font-weight: 700; font-size: 16px; margin-bottom: 24px; text-transform: uppercase; letter-spacing: 0.5px; }
.status-banner.valid { background: #dcfce7; color: #15803d; border: 1px solid #bbf7d0; }
.status-banner.invalid { background: #fee2e2; color: #b91c1c; border: 1px solid #fecaca; }
.footer { text-align: center; margin-top: 40px; padding: 20px 0; color: #94a3b8; font-size: 13px; }
.inline-form { display: flex; gap: 12px; }
