* { box-sizing: border-box; }
body {
    font-family: -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
    background: #f4f5f7;
    color: #1f2430;
    margin: 0;
}
.topbar {
    background: #1f2937;
    color: #fff;
    padding: 16px 24px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}
.topbar h1 { font-size: 18px; margin: 0; }
.topbar a { color: #cbd5e1; text-decoration: none; }
.topbar a:hover { color: #fff; }

.container { max-width: 1000px; margin: 24px auto; padding: 0 16px; }

.card {
    background: #fff;
    border-radius: 10px;
    padding: 24px;
    margin-bottom: 24px;
    box-shadow: 0 1px 3px rgba(0,0,0,0.08);
}
.card h2 { margin-top: 0; font-size: 16px; }

.form-grid { display: grid; gap: 14px; max-width: 480px; }
.form-grid label { display: flex; flex-direction: column; gap: 6px; font-size: 13px; font-weight: 600; color: #374151; }
.form-grid input {
    font-size: 14px;
    padding: 9px 10px;
    border: 1px solid #d1d5db;
    border-radius: 6px;
    font-weight: normal;
}
.static-field { font-size: 13px; color: #374151; display: flex; flex-direction: column; gap: 4px; }
.static-field code { background: #f3f4f6; padding: 6px 8px; border-radius: 6px; width: fit-content; }
.hint { color: #9ca3af; font-size: 12px; font-weight: normal; }

.form-actions { display: flex; gap: 10px; margin-top: 4px; }
button, .btn-secondary {
    padding: 9px 16px;
    border-radius: 6px;
    border: none;
    font-size: 14px;
    cursor: pointer;
}
button { background: #2563eb; color: #fff; }
button:hover { background: #1d4ed8; }
.btn-secondary { background: #e5e7eb; color: #111827; text-decoration: none; display: inline-flex; align-items: center; }

.list-header { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 12px; }
.search-form { display: flex; gap: 8px; }
.search-form input { padding: 7px 9px; border: 1px solid #d1d5db; border-radius: 6px; }
.search-form button { background: #374151; padding: 7px 14px; }

.qr-table { width: 100%; border-collapse: collapse; margin-top: 16px; font-size: 13px; }
.qr-table th { text-align: left; color: #6b7280; font-weight: 600; padding: 8px; border-bottom: 2px solid #e5e7eb; }
.qr-table td { padding: 8px; border-bottom: 1px solid #f0f1f3; vertical-align: middle; }
.slug-tag { color: #6b7280; font-size: 11px; }
.url-cell { max-width: 260px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.url-cell a { color: #2563eb; }
.actions-cell a { margin-right: 10px; color: #2563eb; text-decoration: none; font-size: 12px; }
.link-danger { color: #dc2626 !important; }
.link-muted { color: #9ca3af; text-decoration: none; font-size: 13px; }
.empty-state { color: #9ca3af; font-size: 14px; }

.login-page { display: flex; align-items: center; justify-content: center; height: 100vh; }
.login-box { background: #fff; padding: 32px; border-radius: 10px; box-shadow: 0 1px 3px rgba(0,0,0,0.1); width: 320px; }
.login-box h1 { font-size: 18px; margin-top: 0; margin-bottom: 20px; }
.login-box label { font-size: 13px; font-weight: 600; color: #374151; display: block; margin-bottom: 6px; }
.login-box input { width: 100%; padding: 9px 10px; border: 1px solid #d1d5db; border-radius: 6px; margin-bottom: 14px; }
.login-box button { width: 100%; }
.error { color: #dc2626; font-size: 13px; }
