html, body {
    font-family: 'Inter', 'Segoe UI', system-ui, -apple-system, sans-serif;
    background-color: #f0f2f5;
    color: #1e293b;
}

/* ── Typografi ──────────────────────────────────────────── */
h2 {
    font-size: 1.4rem;
    font-weight: 700;
    color: #1e293b;
    margin-bottom: 0.25rem;
}

h5 {
    font-size: 1rem;
    font-weight: 600;
    color: #1e293b;
}

/* ── Länkar ─────────────────────────────────────────────── */
a, .btn-link {
    color: #f97316;
    text-decoration: none;
}

a:hover {
    color: #ea580c;
    text-decoration: underline;
}

/* ── Knappar ─────────────────────────────────────────────── */
.btn-primary {
    background-color: #f97316;
    border-color: #f97316;
    color: #fff;
    font-weight: 500;
    border-radius: 8px;
}

.btn-primary:hover, .btn-primary:focus {
    background-color: #ea580c;
    border-color: #ea580c;
    color: #fff;
}

.btn-outline-primary {
    color: #f97316;
    border-color: #f97316;
    border-radius: 8px;
}

.btn-outline-primary:hover {
    background-color: #f97316;
    border-color: #f97316;
    color: #fff;
}

.btn-outline-secondary {
    border-radius: 8px;
}

.btn-outline-success {
    border-radius: 8px;
}

.btn-success {
    border-radius: 8px;
}

.btn:focus, .btn:active:focus, .form-control:focus, .form-check-input:focus {
    box-shadow: 0 0 0 0.2rem rgba(249, 115, 22, 0.25);
}

.form-control:focus, .form-select:focus {
    border-color: #f97316;
    box-shadow: 0 0 0 0.2rem rgba(249, 115, 22, 0.15);
}

/* ── Kort ────────────────────────────────────────────────── */
.card {
    border: none;
    border-radius: 12px;
    box-shadow: 0 1px 4px rgba(0,0,0,0.07), 0 4px 12px rgba(0,0,0,0.04);
}

.card-header {
    background-color: #f8fafc;
    border-bottom: 1px solid #e2e8f0;
    border-radius: 12px 12px 0 0 !important;
    font-weight: 600;
    color: #1e293b;
    padding: 0.9rem 1.25rem;
}

/* ── Tabeller ────────────────────────────────────────────── */
.table {
    font-size: 0.875rem;
}

.table thead th {
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: #64748b;
    border-bottom: 2px solid #e2e8f0;
    background-color: #f8fafc;
    padding: 0.75rem 0.75rem;
}

.table-striped > tbody > tr:nth-of-type(odd) > * {
    background-color: rgba(241, 245, 249, 0.5);
}

.table-hover > tbody > tr:hover > * {
    background-color: rgba(249, 115, 22, 0.04);
}

/* ── Badges ──────────────────────────────────────────────── */
.badge {
    font-weight: 500;
    font-size: 0.7rem;
    padding: 0.3em 0.6em;
    border-radius: 6px;
}

/* ── Formulär ────────────────────────────────────────────── */
.form-control, .form-select {
    border-radius: 8px;
    border-color: #e2e8f0;
    font-size: 0.9rem;
}

.form-label {
    font-size: 0.8rem;
    font-weight: 600;
    color: #475569;
    margin-bottom: 0.3rem;
}

/* ── Flikar ──────────────────────────────────────────────── */
.nav-tabs {
    border-bottom: 2px solid #e2e8f0;
    gap: 0.25rem;
}

.nav-tabs .nav-link {
    color: #64748b;
    border: none;
    border-radius: 8px 8px 0 0;
    font-size: 0.875rem;
    font-weight: 500;
    padding: 0.6rem 1.1rem;
    transition: color 0.15s, background 0.15s;
}

.nav-tabs .nav-link:hover {
    color: #1e293b;
    background-color: #f1f5f9;
}

.nav-tabs .nav-link.active {
    color: #f97316;
    background-color: #fff;
    border-bottom: 2px solid #f97316;
    font-weight: 600;
}

/* ── Alert ───────────────────────────────────────────────── */
.alert {
    border-radius: 10px;
    border: none;
    font-size: 0.875rem;
}

.alert-info {
    background-color: #eff6ff;
    color: #1e40af;
}

.alert-success {
    background-color: #f0fdf4;
    color: #166534;
}

.alert-warning {
    background-color: #fffbeb;
    color: #92400e;
}

/* ── Innehållsyta ────────────────────────────────────────── */
.content {
    padding-top: 1.5rem;
}

/* ── Blazor-fel ──────────────────────────────────────────── */
h1:focus {
    outline: none;
}

.valid.modified:not([type=checkbox]) {
    outline: 1px solid #22c55e;
}

.invalid {
    outline: 1px solid #ef4444;
}

.validation-message {
    color: #ef4444;
    font-size: 0.8rem;
}

.blazor-error-boundary {
    background: #fef2f2;
    border-left: 4px solid #ef4444;
    padding: 1rem;
    color: #991b1b;
    border-radius: 8px;
}

    .blazor-error-boundary::after {
        content: "Ett fel har inträffat."
    }

.darker-border-checkbox.form-check-input {
    border-color: #94a3b8;
}
