html, body {
    background-color: var(--mud-palette-background) !important;
    color: var(--mud-palette-secondary) !important;
    font-family: var(--mud-typography-default-family);
    font-size: var(--mud-typography-default-size);
    font-weight: var(--mud-typography-default-weight);
    line-height: var(--mud-typography-default-lineheight);
    letter-spacing: var(--mud-typography-default-letterspacing);
    text-transform: var(--mud-typography-default-text-transform);
}

:root {
    --palette-success-tile-background: #ECF5FD; 
    --palette-failure-tile-background: #FEF2F2;
    --palette-unhovered-text: #708090;
}

.mud-button-root.silver-hover:hover .mud-button-label {
    color: var(--mud-palette-text-primary);
    transition: color 0.3s ease-in-out;
}


 

.silver-hover {
    color: var(--palette-unhovered-text) !important;
}

.mud-button-root.no-hover-bg:hover {
    background-color: transparent !important;
}

.mud-tooltip-root {
    align-content: center;
}



.app {
    border: 5px solid black;
}

.offset-child-content-container {
    margin-left: 250px !important; /* Adjust this value to match the sidebar width */
    width: calc(100% - 250px) !important; /* Adjust this value to match the sidebar width */
    box-sizing: border-box !important; /* Ensure padding is included in the element's total width */
    transition: width 0.3s ease;
}

    .offset-child-content-container.collapsed {
        margin-left: 60px !important; /* Adjust this value to match the sidebar width */
        width: calc(100% - 60px) !important; /* Adjust this value to match the sidebar width */
        box-sizing: border-box !important; /* Ensure padding is included in the element's total width */
        transition: width 0.3s ease;
    }

.mud-main-content {
    padding-top: 0px !important; 
 }

.mud-input-control.mud-input-required > .mud-input-control-input-container > .mud-input-label::after {
    content: "" !important;
}

/*.mud-paper {
 
    border: 1px solid var(--mud-palette-black);
    border-radius: 8px;
}

.sticky-header {
 
    border-bottom: 1px solid var(--mud-palette-black);
}*/
/* Custom styles for MudSelect */
.mud-select-item:hover {
    background-color: var(--mud-palette-primary) !important; /* Change hover color */
}

.mud-progress-circular {
    color: var(--mud-palette-primary) !important;
}

.centered-loader {
    width: 500px;
    height: 500px;
    position: relative;
     top: 50%;
    left: 50%;
    z-index: 1000; /* Make sure it's on top of other content */
}


.mud-popover .mud-select-item {
    color: #0000ff !important; /* Change content text color */
}

.mud-input-label {
    color: inherit; /* Change label color */
}


.mud-table {
    background-color: var(--mud-palette-background) !important;
    color: var(--mud-palette-secondary) !important;
}

.mud-table-root .mud-table-head .mud-table-cell {
    color: var(--mud-palette-secondary) !important;
}

.mud-table-root .mud-table-body .mud-table-cell {
    color: var(--mud-palette-secondary) !important;
}

.mud-paper {
    color: var(--mud-palette-secondary) !important;
    background-color: var(--mud-palette-background) !important;
}
/*
.mud-icon-button {
     color: var(--mud-palette-secondary) !important;
 }
*/


.body {
    color: var(--mud-palette-secondary) !important;
}


/*.mud-icon-default {
    color: var(--mud-palette-secondary) !important;
}*/

.mud-dialog {
    background-color: var(--mud-palette-background) !important;
    color: var(--mud-palette-secondary) !important;
}

.mud-chip-filled {
    background-color: var(--mud-palette-primary) !important;
    color: var(--mud-palette-secondary) !important;
}

.mud-input {
     background: none;
}

.mud-input-label-outlined {
     color: var(--mud-palette-secondary) !important;
}

.d-flex {
    display: flex;
}

.justify-center {
    justify-content: center;
}

.custom-success-bg {
    background-color: var(--mud-palette-success) !important;
    color: white !important;
}

.custom-warning-bg {
    background-color: var(--mud-palette-warning) !important;
    color: white !important;
}

.custom-error-bg {
    background-color: var(--mud-palette-error) !important;
    color: white !important;
}

.custom-secondary-bg {
    background-color: var(--mud-palette-secondary) !important;
    color: var(--mud-palette-primary) !important;
}

.spinner-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.progress-bar-container {
    width: 100%;
    background-color: #e0e0e0;
    border-radius: 4px;
    margin-top: 10px;
    height: 20px;
    overflow: hidden;
}

.progress-bar {
    height: 100%;
    background-color: #1b6ec2;
    border-radius: 4px;
    transition: width 0.3s ease-in-out;
}

.form-fields {
    display: flex;
    flex-direction: row;
    justify-content: center; /* Ensure the items are centered */
}

.bottom-grid-padding {
    padding-bottom: 30px;
}

a, .btn-link {
    color: #0071c1;
}

.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;
}

.valid.modified:not([type=checkbox]) {
    outline: 1px solid #26b050;
}

.invalid {
    outline: 1px solid red;
}

.validation-message {
    color: red;
}

#blazor-error-ui {
    background: lightyellow;
    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;
    }

.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;
}
