html {
    scroll-behavior: smooth;
}

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

.invalid {
    outline: 1px solid red;
}

.validation-message {
    color: red;
}

#blazor-error-ui {
    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: url(data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iNTYiIGhlaWdodD0iNDkiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyIgeG1sbnM6eGxpbms9Imh0dHA6Ly93d3cudzMub3JnLzE5OTkveGxpbmsiIG92ZXJmbG93PSJoaWRkZW4iPjxkZWZzPjxjbGlwUGF0aCBpZD0iY2xpcDAiPjxyZWN0IHg9IjIzNSIgeT0iNTEiIHdpZHRoPSI1NiIgaGVpZ2h0PSI0OSIvPjwvY2xpcFBhdGg+PC9kZWZzPjxnIGNsaXAtcGF0aD0idXJsKCNjbGlwMCkiIHRyYW5zZm9ybT0idHJhbnNsYXRlKC0yMzUgLTUxKSI+PHBhdGggZD0iTTI2My41MDYgNTFDMjY0LjcxNyA1MSAyNjUuODEzIDUxLjQ4MzcgMjY2LjYwNiA1Mi4yNjU4TDI2Ny4wNTIgNTIuNzk4NyAyNjcuNTM5IDUzLjYyODMgMjkwLjE4NSA5Mi4xODMxIDI5MC41NDUgOTIuNzk1IDI5MC42NTYgOTIuOTk2QzI5MC44NzcgOTMuNTEzIDI5MSA5NC4wODE1IDI5MSA5NC42NzgyIDI5MSA5Ny4wNjUxIDI4OS4wMzggOTkgMjg2LjYxNyA5OUwyNDAuMzgzIDk5QzIzNy45NjMgOTkgMjM2IDk3LjA2NTEgMjM2IDk0LjY3ODIgMjM2IDk0LjM3OTkgMjM2LjAzMSA5NC4wODg2IDIzNi4wODkgOTMuODA3MkwyMzYuMzM4IDkzLjAxNjIgMjM2Ljg1OCA5Mi4xMzE0IDI1OS40NzMgNTMuNjI5NCAyNTkuOTYxIDUyLjc5ODUgMjYwLjQwNyA1Mi4yNjU4QzI2MS4yIDUxLjQ4MzcgMjYyLjI5NiA1MSAyNjMuNTA2IDUxWk0yNjMuNTg2IDY2LjAxODNDMjYwLjczNyA2Ni4wMTgzIDI1OS4zMTMgNjcuMTI0NSAyNTkuMzEzIDY5LjMzNyAyNTkuMzEzIDY5LjYxMDIgMjU5LjMzMiA2OS44NjA4IDI1OS4zNzEgNzAuMDg4N0wyNjEuNzk1IDg0LjAxNjEgMjY1LjM4IDg0LjAxNjEgMjY3LjgyMSA2OS43NDc1QzI2Ny44NiA2OS43MzA5IDI2Ny44NzkgNjkuNTg3NyAyNjcuODc5IDY5LjMxNzkgMjY3Ljg3OSA2Ny4xMTgyIDI2Ni40NDggNjYuMDE4MyAyNjMuNTg2IDY2LjAxODNaTTI2My41NzYgODYuMDU0N0MyNjEuMDQ5IDg2LjA1NDcgMjU5Ljc4NiA4Ny4zMDA1IDI1OS43ODYgODkuNzkyMSAyNTkuNzg2IDkyLjI4MzcgMjYxLjA0OSA5My41Mjk1IDI2My41NzYgOTMuNTI5NSAyNjYuMTE2IDkzLjUyOTUgMjY3LjM4NyA5Mi4yODM3IDI2Ny4zODcgODkuNzkyMSAyNjcuMzg3IDg3LjMwMDUgMjY2LjExNiA4Ni4wNTQ3IDI2My41NzYgODYuMDU0N1oiIGZpbGw9IiNGRkU1MDAiIGZpbGwtcnVsZT0iZXZlbm9kZCIvPjwvZz48L3N2Zz4=) no-repeat 1rem/1.8rem, #b32121;
    padding: 1rem 1rem 1rem 3.7rem;
    color: white;
}

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

code {
    color: #c02d76;
}

.navbar-dark .navbar-nav .nav-link {
    color: #ffffff !important; /* Pure white */
}

    .navbar-dark .navbar-nav .nav-link:hover,
    .navbar-dark .navbar-nav .nav-link:focus {
        color: #cccccc !important; /* Light gray on hover */
    }

a .nav-link, .nav-link {
    color: #ffffff !important; /* Pure white */
    padding-right: 20px;
}

.mud-grid thead {
    background-color: #212529; /* Matches bg-dark */
    color: #fff;
}

.editable-cell {
    background-color: #f8f9fa; /* Light gray like Bootstrap’s editable fields */
}

.mud-table-cell {
    padding: 0.75rem; /* Matches Bootstrap table padding */
}

.strongHeader {
    font-weight: bold !important;
    font-size: 1.4em;
}

h1, h2, h3, .mud-button-label {
    font-family: 'MedievalSharp', cursive !important; /* Google Fonts medieval vibe */
}

.custom-grid-box {
    /* MudContainer-like styles */
    max-width: 1200px; /* Adjust as needed */
    margin: 0 auto; /* Center horizontally */
    padding: 16px; /* Internal spacing */
    /* MudPaper-like styles */
    background-color: #fff; /* White background */
    box-shadow: 0 3px 6px rgba(0,0,0,0.16), 0 3px 6px rgba(0,0,0,0.23); /* Elevation 3 equivalent */
    border-radius: 4px; /* Optional: slight rounding like MudPaper */
}

.strong {
    font-weight:bold !important; 
}

.testing {
    background-color:red;
    color:white;
    font-weight:400;
}

/* Add this to your CSS file (e.g., wwwroot/css/site.css) */
.responsive-button .mud-button-label {
    display: flex;
}

@media (max-width: 840px) {
    .responsive-button .mud-button-label {
        display: none;
    }
}

@media (min-width: 920px) {
    button.anti-responsive-button {
        display: none !important;
    }
}

.loading-logo {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
}

.loading-container {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    display: flex;
    flex-direction: column;
    align-items: center;
}


/*--------------------------------------*/


.loading-container {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    display: flex;
    flex-direction: column;
    align-items: center;
}

.loading-logo {
    width: 75px; /* Adjust size as needed */
    height: 75px;
    margin-bottom: 1rem; /* Space between image and spinner */
}

.loading-progress {
    width: 8rem;
    height: 8rem;
    margin: 0; /* Remove any default margins */
}

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

        .loading-progress circle:first-child {
            stroke: #e0e0e0; /* Background circle color */
        }

        .loading-progress circle:last-child {
            stroke: #795548; /* Progress circle color */
            stroke-dasharray: 251.2;
            stroke-dashoffset: calc(251.2 - (251.2 * var(--blazor-load-percentage, 0)) / 100);
            transition: stroke-dashoffset 0.05s ease-in-out;
        }

.loading-progress-text {
    margin-top: -8em; /* Space between spinner and text */
    text-align: center;
    font-weight: bold;
}



/* ---------------- Announcement DropCaps ---------------*/

/* Container styling */
.ewj-container {
    font-size: 1.3em;
    font-family: Arial, sans-serif; /* Default font for body text */
    max-width: 800px; /* Restrict width for readability */
    margin: 0 auto;
    padding: 20px;
}

    /* Paragraph spacing */
    .ewj-container p {
        padding-bottom: 1rem; /* Replaces inline pb-4 */
    }

/* Drop cap styling */
.drop-cap {
    font-family: 'Pirata One', cursive;
    font-size: 4.5em; /* Large size for drop cap */
    line-height: 0.8; /* Adjust for vertical alignment */
    float: left; /* Text flows around it */
    margin-right: 10px; /* Space between drop cap and text */
    margin-bottom: 5px; /* Prevent overlap with next line */
    color: #4a2c0b; /* Medieval-inspired dark brown */
}

/* Responsive adjustments */
@media (max-width: 600px) {
    .drop-cap {
        font-size: 3em; /* Smaller drop cap on mobile */
        margin-right: 8px;
    }

    .ewj-container {
        font-size: 1.1em; /* Slightly smaller text on mobile */
    }
}

.flex-container {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    justify-content: center;
}

    /*.flex-container > * {
        flex: 1 1 calc(50% - 20px);*/ /* Two columns, accounting for gap */
        /*max-width: calc(50% - 20px);
    }*/

.button-stack {
    display: flex;
    flex-direction: column;
    gap: 20px; /* Space between buttons */
    align-items: center;
}

/*@media (max-width: 768px) {*/ /* Adjust breakpoint as needed for small screens */
    /*.flex-container > * {
        flex: 1 1 100%;*/ /* Single column */
        /*max-width: 100%;
    }
}*/

.not-authorized {
    flex: 1 1 100%; /* Ensure it spans full width even in two-column layout */
    max-width: 100%;
}

.custom-flex {
    display: flex;
    flex-direction: row;
    justify-content: space-between;
}

.waiting-spinner {
    position: fixed; /* Stays in the viewport, unaffected by scroll */
    top: 50%; /* Center vertically */
    left: 50%; /* Center horizontally */
    transform: translate(-50%, -50%); /* Offset by half its size for perfect centering */
    z-index: 1000; /* High value to ensure it appears above other elements */
    /* Optional: Styling for the spinner */
    width: 50px;
    height: 50px;
    border: 5px solid #f3f3f3; /* Light grey border */
    border-top: 5px solid #3498db; /* Blue top for spinning effect */
    border-radius: 50%; /* Circular shape */
    animation: spin 1s linear infinite; /* Spinning animation */
}

/* Optional: Semi-transparent overlay to dim the background */
.waiting-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5); /* Semi-transparent black */
    z-index: 999; /* Below spinner but above other content */
}

/* Spinning animation keyframes */
@keyframes spin {
    0% {
        transform: translate(-50%, -50%) rotate(0deg);
    }

    100% {
        transform: translate(-50%, -50%) rotate(360deg);
    }
}

