:root {
    color-scheme: light;
}

* {
    box-sizing: border-box;
}

body {
    margin: 0;
    font-family: Arial, Helvetica, sans-serif;
    background: #f5f7fb;
    color: #111827;
}

a {
    color: #2563eb;
}

header {
    background: #0f172a;
    color: #fff;
    padding: 14px 0;
}

header .container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
}

header a {
    color: #e5e7eb;
    text-decoration: none;
    margin-right: 12px;
}

header a:hover {
    color: #fff;
}

.container {
    width: min(1100px, 92%);
    margin: 0 auto;
}

main.container {
    padding: 28px 0;
}

.card {
    background: #fff;
    border: 1px solid #e5e7eb;
    border-radius: 14px;
    padding: 18px;
    box-shadow: 0 8px 24px rgba(15, 23, 42, 0.05);
    margin-bottom: 18px;
}

.cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 14px;
    margin-bottom: 24px;
}

.stat {
    font-size: 30px;
    font-weight: 700;
}

.table-wrap {
    overflow: auto;
}

table {
    width: 100%;
    border-collapse: collapse;
    background: #fff;
    border-radius: 14px;
    overflow: hidden;
}

th,
td {
    padding: 12px;
    border-bottom: 1px solid #e5e7eb;
    text-align: left;
}

th {
    background: #f8fafc;
}

.btn {
    display: inline-block;
    background: #2563eb;
    color: #fff;
    padding: 10px 14px;
    border: 0;
    border-radius: 10px;
    text-decoration: none;
    cursor: pointer;
}

.btn.small {
    padding: 7px 10px;
    font-size: 14px;
}

.btn.dark {
    background: #0f172a;
}

input,
textarea,
select {
    width: 100%;
    padding: 10px 12px;
    border: 1px solid #cbd5e1;
    border-radius: 10px;
    margin-bottom: 12px;
    font: inherit;
}

label {
    display: block;
    margin-bottom: 6px;
    font-weight: 600;
}

.alert {
    padding: 12px 14px;
    border-radius: 10px;
    margin-bottom: 16px;
    background: #dbeafe;
    border: 1px solid #93c5fd;
}

.alert.error {
    background: #fee2e2;
    border-color: #fca5a5;
}

.muted {
    color: #6b7280;
}

pre,
code,
textarea.code {
    background: #0f172a;
    color: #e5e7eb;
    border-radius: 10px;
}

pre {
    padding: 14px;
    overflow: auto;
}

textarea.code {
    padding: 14px;
    min-height: 120px;
}

.inline {
    display: inline;
}

.badge {
    padding: 5px 9px;
    border-radius: 999px;
    font-size: 12px;
    font-weight: 700;
}

.badge.ok {
    background: #dcfce7;
    color: #166534;
}

.badge.no {
    background: #fee2e2;
    color: #991b1b;
}
/* ============================================================
   Auditimi SEO — score gauge, badges sipas severity, tabela
   ============================================================ */

.seo-score-row {
    display: flex;
    align-items: center;
    gap: 24px;
    flex-wrap: wrap;
    margin-bottom: 10px;
}

.seo-score-gauge {
    width: 84px;
    height: 84px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 26px;
    font-weight: 800;
    color: #fff;
    background: #94a3b8;
    flex-shrink: 0;
}

.seo-score-gauge.score-good {
    background: #16a34a;
}

.seo-score-gauge.score-average {
    background: #d97706;
}

.seo-score-gauge.score-bad {
    background: #dc2626;
}

.seo-score-meta {
    flex: 1;
    min-width: 220px;
}

.seo-score-meta p {
    margin: 4px 0;
}

.issue-counts .badge {
    margin-right: 6px;
}

.seo-scan-form {
    text-align: right;
}

.seo-scan-form .hint {
    font-size: 12px;
    color: #6b7280;
    max-width: 220px;
    margin-top: 6px;
}

.badge.sev-error {
    background: #fee2e2;
    color: #991b1b;
}

.badge.sev-warning {
    background: #fef3c7;
    color: #92400e;
}

.badge.sev-notice {
    background: #e0e7ff;
    color: #3730a3;
}

.badge.score-good {
    background: #dcfce7;
    color: #166534;
}

.badge.score-average {
    background: #fef3c7;
    color: #92400e;
}

.badge.score-bad {
    background: #fee2e2;
    color: #991b1b;
}

.top-issues {
    margin: 8px 0 0;
    padding-left: 0;
    list-style: none;
}

.top-issues li {
    padding: 6px 0;
    border-bottom: 1px solid #f1f5f9;
}

.top-issues .badge {
    margin-right: 8px;
    background: #f1f5f9;
    color: #334155;
}

.truncate {
    max-width: 280px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.site-score-pill {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 36px;
    height: 36px;
    border-radius: 999px;
    color: #fff;
    font-weight: 700;
    background: #94a3b8;
    padding: 0 8px;
}

.site-score-pill.score-good {
    background: #16a34a;
}

.site-score-pill.score-average {
    background: #d97706;
}

.site-score-pill.score-bad {
    background: #dc2626;
}
