* { box-sizing: border-box; }
body {
    margin: 0;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    background: #f4f6f8;
    color: #1b1f23;
}
.topbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 14px 28px;
    background: #0f172a;
    color: #fff;
    box-shadow: 0 1px 3px rgba(0,0,0,.1);
}
.topbar .brand { font-weight: 700; font-size: 18px; }
.topbar .links a {
    color: #cbd5e1;
    margin-left: 18px;
    text-decoration: none;
    font-weight: 500;
}
.topbar .links a:hover { color: #fff; }
.topbar .links .logout { color: #fca5a5; }
.container { max-width: 1100px; margin: 28px auto; padding: 0 20px; }
h1 { margin-top: 0; font-size: 24px; }
h2 { font-size: 18px; color: #475569; margin-top: 28px; }

.stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 16px;
    margin-bottom: 24px;
}
.stat-card {
    background: #fff;
    padding: 24px;
    border-radius: 10px;
    box-shadow: 0 1px 3px rgba(0,0,0,.08);
    text-align: center;
}
.stat-value { font-size: 32px; font-weight: 700; color: #0f172a; }
.stat-label { color: #64748b; margin-top: 4px; }

table {
    width: 100%;
    border-collapse: collapse;
    background: #fff;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 1px 3px rgba(0,0,0,.08);
}
th, td { padding: 12px 14px; text-align: left; border-bottom: 1px solid #e2e8f0; font-size: 14px; }
th { background: #f1f5f9; color: #475569; font-weight: 600; }
tr.blocked { background: #fee2e2; }
tr:last-child td { border-bottom: none; }
.actions { white-space: nowrap; }

.btn {
    display: inline-block;
    padding: 6px 12px;
    border-radius: 6px;
    text-decoration: none;
    font-size: 13px;
    border: none;
    background: #e2e8f0;
    color: #1b1f23;
    cursor: pointer;
    margin-right: 4px;
}
.btn.primary { background: #2563eb; color: #fff; }
.btn.danger { background: #dc2626; color: #fff; }
.btn:hover { opacity: 0.85; }

.login-box {
    max-width: 360px;
    margin: 80px auto;
    background: #fff;
    padding: 36px;
    border-radius: 12px;
    box-shadow: 0 4px 14px rgba(0,0,0,.08);
    text-align: center;
}
.login-box h1 { margin: 0 0 6px; }
.login-box h2 { margin: 0 0 20px; color: #64748b; font-weight: 500; font-size: 14px; }
.login-box form { text-align: left; }
.login-box label { display: block; font-size: 13px; color: #475569; margin-top: 12px; }
.login-box input, .settings-form input, .settings-form textarea {
    width: 100%;
    padding: 10px 12px;
    border-radius: 6px;
    border: 1px solid #cbd5e1;
    margin-top: 4px;
    font-size: 14px;
}
.login-box button, .settings-form button {
    width: 100%;
    padding: 10px;
    margin-top: 20px;
    background: #2563eb;
    color: #fff;
    border: none;
    border-radius: 6px;
    font-weight: 600;
    cursor: pointer;
}
.settings-form { max-width: 520px; }
.settings-form label { display: block; font-size: 13px; color: #475569; margin-top: 14px; }
.error { background: #fee2e2; color: #991b1b; padding: 10px; border-radius: 6px; margin-bottom: 12px; }
.hint { color: #64748b; font-size: 14px; }
