*, *::before, *::after {
    box-sizing: border-box;
}

html {
    font-size: 17px;
    scroll-behavior: smooth;
}

body {
    background-color: #f9f6f0;
    font-family: 'Open Sans', 'Segoe UI', Arial, sans-serif;
    color: #1a1a1a;
    line-height: 1.7;
}

h1:focus {
    outline: none;
}

a {
    color: #2e7d32;
}

a:hover {
    color: #1b5e20;
}

/* MudBlazor kort hover-effekt */
.mud-card:hover {
    box-shadow: 0 6px 20px rgba(46, 125, 50, 0.18) !important;
    transform: translateY(-2px);
    transition: box-shadow 0.2s ease, transform 0.2s ease;
}

/* MudChip tekstfarve fix */
.mud-chip .mud-chip-content {
    font-size: 0.85rem;
}

/* Større klikflader til navigationslinks */
.mud-nav-link {
    font-size: 1.05rem !important;
    padding: 12px 16px !important;
    min-height: 52px !important;
}

/* Validering */
.valid.modified:not([type=checkbox]) {
    outline: 1px solid #2e7d32;
}

.invalid {
    outline: 1px solid #c62828;
}

.validation-message {
    color: #c62828;
}

/* Blazor fejlgrænse */
.blazor-error-boundary {
    background: #b32121;
    padding: 1rem 1rem 1rem 3.7rem;
    color: white;
    border-radius: 8px;
}

.blazor-error-boundary::after {
    content: "Der opstod en fejl.";
}

/* Scrollbar styling */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: #f1f1f1;
}

::-webkit-scrollbar-thumb {
    background: #a5d6a7;
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: #2e7d32;
}

/* SSR-kompatible formfelter (login/register) */
.sp19-field {
    display: flex;
    flex-direction: column;
    margin-bottom: 16px;
}

.sp19-label {
    font-size: 0.85rem;
    font-weight: 600;
    color: #555;
    margin-bottom: 4px;
}

.sp19-input {
    width: 100%;
    padding: 12px 14px;
    border: 1px solid rgba(0,0,0,0.23);
    border-radius: 4px;
    font-size: 1rem;
    font-family: inherit;
    background: #fff;
    color: #1a1a1a;
    transition: border-color 0.2s;
    outline: none;
}

.sp19-input:focus {
    border-color: #2e7d32;
    border-width: 2px;
}

.sp19-checkbox {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.95rem;
    cursor: pointer;
    user-select: none;
}

.sp19-checkbox input[type="checkbox"] {
    width: 18px;
    height: 18px;
    accent-color: #2e7d32;
    cursor: pointer;
}
}