* { box-sizing: border-box; }
body {
    margin: 0;
    font-family: Arial, Helvetica, sans-serif;
    background: #f5f7fb;
    color: #1f2937;
}
.layout {
    max-width: 1180px;
    margin: 0 auto;
    padding: 24px;
}
.topbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
}
.brand {
    font-size: 24px;
    font-weight: bold;
    color: #111827;
}
.nav a {
    text-decoration: none;
    margin-left: 12px;
    color: #374151;
}
.card {
    background: #fff;
    border-radius: 14px;
    padding: 20px;
    box-shadow: 0 10px 30px rgba(17, 24, 39, 0.07);
    margin-bottom: 20px;
}
.grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
}
.stat {
    padding: 18px;
    border-radius: 14px;
    background: #fff;
    box-shadow: 0 10px 30px rgba(17, 24, 39, 0.07);
}
.stat h3 {
    margin: 0 0 8px;
    font-size: 14px;
    color: #6b7280;
}
.stat p {
    margin: 0;
    font-size: 28px;
    font-weight: bold;
}
form .row {
    display: grid;
    grid-template-columns: 2fr 1fr auto;
    gap: 12px;
}
input[type="text"],
input[type="url"],
input[type="email"],
input[type="password"] {
    width: 100%;
    padding: 12px 14px;
    border: 1px solid #d1d5db;
    border-radius: 10px;
    outline: none;
    font-size: 14px;
}
button, .btn {
    display: inline-block;
    padding: 12px 16px;
    border: 0;
    border-radius: 10px;
    background: #111827;
    color: #fff;
    text-decoration: none;
    cursor: pointer;
    font-size: 14px;
}
.btn-secondary {
    background: #4b5563;
}
.btn-danger {
    background: #b91c1c;
}
.btn-success {
    background: #047857;
}
table {
    width: 100%;
    border-collapse: collapse;
}
table th, table td {
    padding: 12px 10px;
    border-bottom: 1px solid #e5e7eb;
    vertical-align: top;
    text-align: left;
    font-size: 14px;
}
.badge {
    display: inline-block;
    padding: 5px 10px;
    border-radius: 999px;
    font-size: 12px;
    font-weight: bold;
}
.badge-active {
    background: #dcfce7;
    color: #166534;
}
.badge-inactive {
    background: #fee2e2;
    color: #991b1b;
}
.alert {
    padding: 12px 14px;
    border-radius: 10px;
    margin-bottom: 16px;
}
.alert-success {
    background: #dcfce7;
    color: #166534;
}
.alert-error {
    background: #fee2e2;
    color: #991b1b;
}
.actions {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}
.login-wrap {
    max-width: 440px;
    margin: 60px auto;
}
.small {
    font-size: 12px;
    color: #6b7280;
}
.link-box {
    word-break: break-all;
}
.code {
    font-family: monospace;
}
@media (max-width: 900px) {
    .grid { grid-template-columns: 1fr; }
    form .row { grid-template-columns: 1fr; }
    table { display: block; overflow-x: auto; }
}
