html, body {
    font-family: 'Helvetica Neue', Helvetica, Arial, sans-serif;
    background-color: #202020; /* Dark background */
    color: #E0E0E0; /* Light text */
    margin: 0;
    padding: 0;
}

h1:focus {
    outline: none;
}

a, .btn-link {
    color: #66B2FF; /* Lighter blue for links in dark mode */
    text-decoration: none;
}

    a:hover, .btn-link:hover {
        color: #66B2FF; /* Slightly darker hover effect */
    }

.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 #FFD6E8; /* Soft pink highlight */
}

.valid.modified:not([type=checkbox]) {
    outline: 1px solid #4CAF50; /* Keep green for validity */
}

.invalid {
    outline: 1px solid #FF6F91; /* Soft pink-red for invalid inputs */
}

.validation-message {
    color: #D9534F; /* Subtle red for validation errors */
}

#blazor-error-ui {
    background: #FFD3D3; /* Soft red to indicate an error */
    bottom: 0;
    box-shadow: 0 -1px 2px rgba(0, 0, 0, 0.2);
    display: none;
    left: 0;
    padding: 0.6rem 1.25rem 0.7rem 1.25rem;
    position: fixed;
    width: 100%;
    z-index: 1000;
}

    #blazor-error-ui .dismiss {
        cursor: pointer;
        position: absolute;
        right: 0.75rem;
        top: 0.5rem;
    }

.blazor-error-boundary {
    background: #E57373;
    padding: 1rem;
    color: white;
}

code {
    color: #6C757D; /* Slate gray for code text */
}


/* Loader Container */
.loader-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    height: 100vh;
    background-color: #202020; /* Match body background */
}

/* Spinning Ring */
.loader {
    width: 5rem; /* Responsive size for loader */
    height: 5rem;
    border: 0.5rem solid rgba(0, 0, 0, 0.1); /* Light outer border */
    border-top: 0.5rem solid #4A90E2; /* Active segment color */
    border-radius: 50%; /* Makes it a circle */
    animation: spin 1.5s linear infinite; /* Smooth spinning animation */
}

/* Smooth Spinning Animation */
@keyframes spin {
    0% {
        transform: rotate(0deg);
    }

    100% {
        transform: rotate(360deg);
    }
}

/* Optional Text Below the Loader */
.loader-text {
    margin-top: 1rem;
    font-size: 1rem; /* Responsive font size */
    color: #4A90E2; /* Match loader's active color */
    font-family: Arial, sans-serif;
    font-weight: bold;
    text-align: center;
}

/* Responsive Adjustments */
@media (max-width: 768px) {
    .loader {
        width: 3rem; /* Smaller loader for mobile */
        height: 3rem;
        border: 0.4rem solid rgba(0, 0, 0, 0.1);
        border-top: 0.4rem solid #4A90E2;
    }

    .loader-text {
        font-size: 0.9rem; /* Slightly smaller text for mobile */
    }
}

.flex-container {
    display: flex;
    align-items: flex-start;
    flex-wrap:wrap;
}
    .flex-container img {
        max-width: 100%;
        height: auto;
        display: block;
    }

.flex-item {
    margin-right: 20px;
    width:auto;
    height:auto;
}

@media (max-width: 600px) {
    .flex-container {
        flex-direction: column;
        align-items: center;
    }
}