* { box-sizing: border-box; margin: 0; padding: 0; }

body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Arial, sans-serif;
    background: #0f1720;
    color: #e2e8f0;
    line-height: 1.5;
}

.topbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 32px;
    background: #16202b;
    border-bottom: 1px solid #223040;
}

.topbar h1 { font-size: 20px; font-weight: 600; }
.topbar nav { display: flex; gap: 10px; }

.container { max-width: 1100px; margin: 32px auto; padding: 0 24px; }
.container-narrow { max-width: 640px; }

.card {
    background: #16202b;
    border: 1px solid #223040;
    border-radius: 10px;
    padding: 24px;
    margin-bottom: 20px;
}

.card h3 { margin-bottom: 14px; font-size: 16px; color: #93c5fd; }
.card p { margin-bottom: 8px; }

.table { width: 100%; border-collapse: collapse; background: #16202b; border-radius: 10px; overflow: hidden; }
.table th, .table td { padding: 14px 16px; text-align: left; border-bottom: 1px solid #223040; }
.table th { background: #1c2732; font-size: 13px; text-transform: uppercase; color: #94a3b8; letter-spacing: 0.05em; }
.table .empty { text-align: center; color: #64748b; padding: 40px; }
.table .actions { display: flex; gap: 8px; flex-wrap: wrap; }

code { background: #0f1720; padding: 2px 6px; border-radius: 4px; font-size: 13px; color: #86efac; }

.badge {
    display: inline-block;
    padding: 3px 10px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
}
.badge-green { background: #14532d; color: #86efac; }
.badge-red { background: #450a0a; color: #fca5a5; }
.badge-yellow { background: #451a03; color: #fcd34d; }
.badge-gray { background: #1e293b; color: #94a3b8; }

.btn {
    display: inline-block;
    padding: 9px 16px;
    border-radius: 8px;
    background: #223040;
    color: #e2e8f0;
    text-decoration: none;
    font-size: 14px;
    font-weight: 500;
    border: none;
    cursor: pointer;
}
.btn:hover { background: #2c3e50; }
.btn-primary { background: #2563eb; color: white; }
.btn-primary:hover { background: #1d4ed8; }
.btn-green { background: #16a34a; color: white; }
.btn-green:hover { background: #15803d; }
.btn-red { background: #dc2626; color: white; }
.btn-red:hover { background: #b91c1c; }
.btn-ghost { background: transparent; border: 1px solid #334155; }
.btn-sm { padding: 6px 12px; font-size: 13px; }

label { display: block; margin: 14px 0 6px; font-size: 14px; color: #cbd5e1; }
label:first-of-type { margin-top: 0; }
label small { color: #64748b; font-weight: normal; }

input, textarea {
    width: 100%;
    padding: 10px 12px;
    border-radius: 8px;
    border: 1px solid #334155;
    background: #0f1720;
    color: #e2e8f0;
    font-size: 14px;
}
input:focus, textarea:focus { outline: none; border-color: #2563eb; }

form button { margin-top: 18px; }

.alert { padding: 12px 16px; border-radius: 8px; margin-bottom: 20px; font-size: 14px; }
.alert-error { background: #450a0a; color: #fca5a5; }
.alert-success { background: #14532d; color: #86efac; }

.hint { font-size: 13px; color: #94a3b8; margin-top: 8px; }

.qrbox { text-align: center; margin-top: 16px; }
.qrbox img { max-width: 280px; border-radius: 8px; background: white; padding: 10px; }

.login-page { display: flex; align-items: center; justify-content: center; height: 100vh; }
.login-box {
    background: #16202b;
    border: 1px solid #223040;
    border-radius: 12px;
    padding: 40px;
    width: 340px;
}
.login-box h1 { font-size: 18px; text-align: center; margin-bottom: 24px; }
.login-box button { width: 100%; margin-top: 20px; padding: 12px; }
