@import url('https://fonts.googleapis.com/css2?family=DM+Sans:opsz,wght@9..40,400;9..40,500;9..40,600;9..40,700&family=Outfit:wght@400;500;600;700&display=swap');

html, body {
    font-family: 'DM Sans', 'Outfit', 'Segoe UI', sans-serif;
    font-size: 17px;
    background-color: #f8f9fc;
    color: #1f2937;
    margin: 0;
    padding: 0;
    font-weight: 500;
    letter-spacing: 0.15px;
    overflow-x: visible;
}

a, .btn-link {
    color: #4f46e5;
}

    a:hover {
        color: #3730a3;
    }

.btn-primary {
    color: #fff;
    background: linear-gradient(90deg, #4f46e5, #0ea5e9);
    border: none;
    border-radius: 8px;
    font-weight: 600;
    transition: opacity 0.2s;
}

    .btn-primary:hover {
        opacity: 0.9;
    }

.btn:focus, .btn:active:focus, .btn-link.nav-link:focus,
.form-control:focus, .form-check-input:focus {
    box-shadow: 0 0 0 0.15rem rgba(79,70,229,0.25);
}

.content {
    padding-top: 1.5rem;
}

h1, h2, h3, h4, h5, h6 {
    color: #111827;
    font-weight: 700;
    font-family: 'Outfit', sans-serif;
    letter-spacing: 0.5px;
}

h1:focus {
    outline: none;
}

.valid.modified:not([type=checkbox]) {
    outline: 1px solid #10b981;
}

.invalid {
    outline: 1px solid #ef4444;
}

.validation-message {
    color: #ef4444;
    font-size: 0.85rem;
}

.blazor-error-boundary {
    background: #fef2f2;
    border: 1px solid #fecaca;
    border-radius: 8px;
    padding: 1rem 1rem 1rem 3.7rem;
    color: #b91c1c;
}

    .blazor-error-boundary::after {
        content: "An error has occurred."
    }

.darker-border-checkbox.form-check-input {
    border-color: #d1d5db;
}

/* Fixed Save Button */
.btn-save-fixed {
    position: fixed;
    bottom: 2rem;
    right: 2rem;
    z-index: 999;
    background: linear-gradient(90deg, #4f46e5, #0ea5e9);
    color: #fff;
    border: none;
    border-radius: 10px;
    padding: 0.75rem 2rem;
    font-size: 1rem;
    font-weight: 600;
    font-family: 'Roboto', 'Segoe UI', Arial, sans-serif;
    cursor: pointer;
    box-shadow: 0 4px 18px rgba(79,70,229,0.35);
    transition: opacity 0.2s, transform 0.15s;
    letter-spacing: 0.3px;
}

    .btn-save-fixed:hover {
        opacity: 0.92;
        transform: translateY(-2px);
    }

    .btn-save-fixed:active {
        transform: translateY(0);
        opacity: 1;
    }
