html, body {
    background-color: #121212; /* Dark background */
    color: #e0e0e0; /* Light text color */
    font-family: 'Helvetica Neue', Helvetica, Arial, sans-serif;
}

h1:focus {
    outline: none;
}

a, .btn-link {
    color: #58a6ff; /* Lighter blue for links */
}

.btn-primary {
    color: #fff;
    background-color: #1b6ec2; /* Keeping this for contrast */
    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; /* Adjusted for dark background */
}

.content {
    padding-top: 1.1rem;
}

.valid.modified:not([type=checkbox]) {
    outline: 1px solid #26b050; /* Green outline for valid inputs */
}

.invalid {
    outline: 1px solid red; /* Red outline for invalid inputs */
}

.validation-message {
    color: red; /* Error messages in red */
}

#blazor-error-ui {
    background: #333; /* Dark background for error UI */
    bottom: 0;
    box-shadow: 0 -1px 2px rgba(0, 0, 0, 0.5); /* Stronger shadow */
    display: none;
    left: 0;
    padding: 0.6rem 1.25rem 0.7rem 1.25rem;
    position: fixed;
    width: 100%;
    z-index: 1000;
    color: white; /* White text on dark background */
}

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

.blazor-error-boundary {
    background: url(data:image/svg+xml;base64,...); /* Image for error background */
    background-color: #b32121; /* Dark red for error background */
    padding: 1rem 1rem 1rem 3.7rem;
    color: white; /* White text for error messages */
}

    .blazor-error-boundary::after {
        content: "An error has occurred.";
    }

.loading-progress {
    position: relative;
    display: block;
    width: 8rem;
    height: 8rem;
    margin: 20vh auto 1rem auto;
}

    .loading-progress circle {
        fill: none;
        stroke: #e0e0e0; /* Light gray stroke */
        stroke-width: 0.6rem;
        transform-origin: 50% 50%;
        transform: rotate(-90deg);
    }

        .loading-progress circle:last-child {
            stroke: #1b6ec2; /* Blue stroke for progress */
            stroke-dasharray: calc(3.141 * var(--blazor-load-percentage, 0%) * 0.8), 500%;
            transition: stroke-dasharray 0.05s ease-in-out;
        }

.loading-progress-text {
    position: absolute;
    text-align: center;
    font-weight: bold;
    inset: calc(20vh + 3.25rem) 0 auto 0.2rem;
}

    .loading-progress-text:after {
        content: var(--blazor-load-percentage-text, "Loading");
    }

code {
    color: #ff79c6; /* Pinkish color for code snippets in dark mode */
}
