html, body {
    font-family: 'Helvetica Neue', Helvetica, Arial, sans-serif;
    background-color: #f9fafb; /* soft gray background */
    color: #212529; /* neutral text color */
}

/* Links */
a, .btn-link {
    color: #0078d4; /* soft blue */
    text-decoration: none;
}

    a:hover, .btn-link:hover {
        color: #005fa3;
        text-decoration: underline;
    }

/* Buttons */
.btn-primary {
    color: #fff;
    background-color: #0078d4;
    border-color: #006bb7;
}

    .btn-primary:hover {
        background-color: #006bb7;
        border-color: #005fa3;
    }

.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 #0078d4;
}

/* Layout spacing */
.content {
    padding-top: 1.1rem;
}

h1:focus {
    outline: none;
}

/* Validation */
.valid.modified:not([type=checkbox]) {
    outline: 1px solid #28a745; /* green */
}

.invalid {
    outline: 1px solid #dc3545; /* red */
}

.validation-message {
    color: #dc3545;
}

/* Error boundary */
.blazor-error-boundary {
    background-color: #fff3cd; /* light warning */
    border-left: 4px solid #ffc107;
    padding: 1rem 1.5rem;
    color: #856404;
    font-weight: 500;
    margin-top: 1rem;
}

    .blazor-error-boundary::after {
        content: "An error has occurred.";
    }

/* Placeholder tweaks */
.form-floating > .form-control-plaintext::placeholder,
.form-floating > .form-control::placeholder {
    color: #6c757d;
    text-align: end;
}

.form-floating > .form-control-plaintext:focus::placeholder,
.form-floating > .form-control:focus::placeholder {
    text-align: start;
}

.toast-message-container {
    position: fixed;
    top: 20px;
    right: 20px;
    width: 300px;
    z-index: 1000;
    animation: slide-in 0.5s ease-out, slide-out 0.5s ease-in 5s forwards;
}

.toast-message-box {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 15px;
    border-radius: 5px;
    color: white;
    font-weight: bold;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
    margin-bottom: 10px;
}

.toast-message-success {
    background-color: #28a745;
}

.toast-message-failure {
    background-color: #dc3545;
}

.toast-message-alert {
    background-color: #ffc107;
    color: #212529;
}

.toast-message-warning {
    background-color: #ff8800;
}

.toast-message-default {
    background-color: #17a2b8;
}

.toast-close-button {
    background: none;
    border: none;
    color: white;
    font-size: 16px;
    font-weight: bold;
    cursor: pointer;
}

    .toast-close-button:hover {
        color: #000;
    }

@keyframes slide-in {
    from {
        transform: translateX(100%);
        opacity: 0;
    }

    to {
        transform: translateX(0);
        opacity: 1;
    }
}

@keyframes slide-out {
    from {
        transform: translateX(0);
        opacity: 1;
    }

    to {
        transform: translateX(100%);
        opacity: 0;
    }
}

.loading-bar {
    width: 200px;
    height: 6px;
    background-color: #e0e0e0;
    border-radius: 3px;
    overflow: hidden;
    margin: 0 auto;
}

.loading-bar-progress {
    width: 0;
    height: 100%;
    background-color: #0078d4; /* your brand color */
    animation: load 2s infinite;
}

@keyframes load {
    0% {
        width: 0;
    }

    50% {
        width: 100%;
    }

    100% {
        width: 0;
    }
}
