/* ===============================
   1. Base elements & typography
   =============================== */

html, body {
    font-family: 'Inter', sans-serif;
}

h1:focus {
    outline: none;
}

h3 {
    font-size: 1.1rem;
    font-weight: 500;
    margin-top: 0rem;
    margin-bottom: 0.5rem;
    color: #003b6f;
    line-height: 1.4;
    padding: 0.5rem 0px 0.5rem 0px;
}

figcaption {
    font-size: 0.75rem;
    color: #666;
    margin-top: 0.2rem;
}

/* ===============================
   2. Links & Buttons
   =============================== */

a,
.btn-link {
    color: #006bb7;
}

.btn-primary {
    color: #fff;
    background-color: #1b6ec2;
    border-color: #1861ac;
}

.btn:focus,
.btn:active:focus,
.btn-link.nav-link:focus,
.form-control:focus,
.form-check-input:focus {
    box-shadow: 0 0 0 0.1rem white, 0 0 0 0.25rem #258cfb;
}

/* ===============================
   3. Forms & Validation
   =============================== */

.valid.modified:not([type=checkbox]) {
    outline: 1px solid #26b050;
}

.invalid {
    outline: 1px solid #e50000;
}

.validation-message {
    color: #e50000;
}

.darker-border-checkbox.form-check-input {
    border-color: #929292;
}

.form-floating > .form-control-plaintext::placeholder,
.form-floating > .form-control::placeholder {
    color: var(--bs-secondary-color);
    text-align: end;
}

.form-floating > .form-control-plaintext:focus::placeholder,
.form-floating > .form-control:focus::placeholder {
    text-align: start;
}

/* ===============================
   4. Layout & Content spacing
   =============================== */

.content {
    padding-top: 1.1rem;
}

/* ===============================
   5. Blazor error UI
   =============================== */

.blazor-error-boundary {
    background: url(data:image/svg+xml;base64,...) no-repeat 1rem/1.8rem, #b32121;
    padding: 1rem 1rem 1rem 3.7rem;
    color: white;
}

    .blazor-error-boundary::after {
        content: "An error has occurred.";
    }

/* ===============================
   6. Extra utilities
   =============================== */

.btn-xl {
    padding: 1.25rem 2.5rem;
}

/* ========= Återanvändbar blå knapp ========= */
.round-button {
    width: 50px;
    height: 50px;
    background: #006bb7;
    color: white;
    border: none;
    border-radius: 6px;
    font-size: 1.25rem;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: background 0.3s ease;
    padding: 0;
    z-index: 999;
}

    .round-button:hover {
        background: #004f91;
    }

@media (max-width: 768px) {
    .round-button {
        width: 25px;
        height: 25px;
        border-radius: 2px;
        font-size: 1.1rem;
    }
}

.side-menu-container a.menu-link {
    color: white !important;
    text-decoration: none;
}
