html, body {
    font-family: 'Helvetica Neue', Helvetica, Arial, sans-serif;
    background-color: darkslateblue;
    position: relative;
    color: white; /* Added to make all body text white by default */
}

    body::after {
        content: "";
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        background-image: url("../css/uNderMe.jpg");
        background-repeat: no-repeat;
        background-position: center;
        background-size: cover;
        opacity: 0.25; /* 25% transparency */
        pointer-events: none;
        z-index: 0;
    }

    /* Ensure that all page content is placed above the watermark */
    body > * {
        position: relative;
        z-index: 1;
    }

/* Remove individual gradient styling */
.top-row {
    background-image: none !important;
    background-color: transparent !important;
    border-bottom: none !important;
    color: #d7d7d7 !important;
}

/* Add a unified gradient across the entire top section */
.sidebar, main > .top-row {
    background-image: linear-gradient(90deg, rgb(5, 39, 103) 0%, #3a0647 100%) !important;
}

.top-row ::deep a, .top-row ::deep .btn-link {
    color: white !important;
}

    .top-row ::deep a:hover, .top-row ::deep .btn-link:hover {
        color: #fff !important;
        text-decoration: none !important;
        opacity: 0.8;
    }

h1:focus {
    outline: none;
}

/* Make links stand out on dark background */
a, .btn-link {
    color: #68d1ff;
}

.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;
}

.content {
    padding-top: 1.1rem;
}

/* Make form validation messages more visible on dark background */
.valid.modified:not([type=checkbox]) {
    outline: 1px solid #26b050;
}

.invalid {
    outline: 1px solid red;
}

.validation-message {
    color: #ff6666;
}

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

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

.loading-progress circle:last-child {
    stroke: #1b6ec2;
    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");
}

/* Hide the error UI during normal loading */
#blazor-error-ui {
    display: none;
    background: lightyellow;
    bottom: 0;
    box-shadow: 0 -1px 2px rgba(0, 0, 0, 0.2);
}
