html, body {
    font-family: 'Helvetica Neue', Helvetica, Arial, sans-serif;
    overflow: auto;
}

a, .btn-link {
    color: #006bb7;
}

.no-border-cell {
    border: none !important;
}

.text-right {
    text-align: right;
}

.glitter-button {
    position: relative;
    overflow: hidden;
}

.glitter-button::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: linear-gradient(120deg, rgba(255,255,255,0.1) 0%, rgba(255,255,255,0.6) 50%, rgba(255,255,255,0.1) 100%);
    transform: rotate(25deg);
    animation: shimmer 2s infinite;
    pointer-events: none;
}

@keyframes shimmer {
    0% {
        transform: translateX(-100%) rotate(25deg);
    }
    100% {
        transform: translateX(100%) rotate(25deg);
    }
}

.glow-badge {
    position: relative;
    display: inline-block;
    padding: 0.4em 0.7em;
    border-radius: 0.5em;
    color: #fff;
    background-color: #f34848;
    box-shadow: 0 0 8px rgb(220, 21, 21);
    animation: glow 1.5s infinite ease-in-out alternate;
}

@keyframes glow {
    from {
        box-shadow: 0 0 5px rgb(243, 72, 72), 0 0 10px rgba(0, 123, 255, 0.4);
    }
    to {
        box-shadow: 0 0 15px rgba(241, 95, 95, 0.89), 0 0 25px rgba(0, 123, 255, 0.6);
    }
}

.custom-progress-icon {
    background-image: url('favicon.png');
    background-size: contain;
    background-repeat: no-repeat;
    width: 20px;
    height: 20px;
    display: inline-block;
}

.loader-small {
    width: 24px;
    height: 24px;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-top: 4px solid #458fd8;
    border-right: 4px solid transparent;
    box-sizing: content-box;
    animation: rotation 1s linear infinite;
}
.loader-small::after {
    content: '';
    box-sizing: content-box;
    position: absolute;
    left: 0;
    top: 0;
    width: 24px;
    height: 24px;
    border-radius: 50%;
    border-left: 4px solid rgba(17, 248, 187, 0.75);
    border-bottom: 4px solid transparent;
    animation: rotation 0.5s linear infinite reverse;
}

.loader {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    display: inline-block;
    border-top: 4px solid #458fd8;
    border-right: 4px solid transparent;
    box-sizing: border-box;
    animation: rotation 1s linear infinite;
}
.loader::after {
    content: '';
    box-sizing: border-box;
    position: absolute;
    left: 0;
    top: 0;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    border-left: 4px solid rgba(17, 248, 187, 0.75);
    border-bottom: 4px solid transparent;
    animation: rotation 0.5s linear infinite reverse;
}
@keyframes rotation {
    0% {
        transform: rotate(0deg);
    }
    100% {
        transform: rotate(360deg);
    }
}

.custom-spinner {
    width: 3rem;
    height: 3rem;
    border-radius: 50%;
    background: linear-gradient(to right, rgba(10, 150, 140, 0.6), rgba(5, 120, 100, 0.6));
    animation: spin 1s linear infinite;
    box-shadow: 0 0 6px rgba(0, 0, 0, 0.1);
}

/* Override the spinner color */
.dxbl-loading-panel-indicator > div {
    border-top-color: #1be0dc !important;
    color: #0a5c0a !important;
}

.dxbl-loading-panel .dxbl-loading-panel-indicator > div {
    border-top-color: #28a745 !important;
    color: #0a5c0a !important;
}

.custom-spinner > div {
    display: none !important;
}

/* Disable the default spinner ring structure */
.custom-spinner::before,
.custom-spinner::after {
    display: none !important;
    content: none !important;
    border: none;
}

/* Simple rotation animation */
@keyframes spin {
    0%   { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

.dxbl-btn.dxbl-btn-outline-primary {
    color: #fff !important;
    background: linear-gradient(to right, rgba(10, 150, 140, 0.6), rgba(5, 120, 100, 0.6));
    border-color: #1be0dc !important;
    transition: background 0.3s ease, border-color 0.3s ease, box-shadow 0.3s ease;
}

/* Hover state */
.dxbl-btn.dxbl-btn-outline-primary:hover {
    color: #fff !important;
    background: linear-gradient(to right, rgba(10, 150, 140, 0.8), rgba(5, 120, 100, 0.8)) !important;
    border-color: #17c8c4 !important;
}

/* Active (click/press) state */
.dxbl-btn.dxbl-btn-outline-primary:active,
.dxbl-btn.dxbl-btn-outline-primary:focus {
    color: #fff !important;
    background: linear-gradient(to right, rgba(5, 120, 100, 1), rgba(10, 150, 140, 1)) !important;
    border-color: #14b0ad !important;
    box-shadow: 0 0 0 0.2rem rgba(27, 224, 220, 0.25);
}

/* Optional: disabled state */
.dxbl-btn.dxbl-btn-outline-primary:disabled {
    opacity: 0.65;
    cursor: not-allowed;
    background: linear-gradient(to right, rgba(10, 150, 140, 0.3), rgba(5, 120, 100, 0.3)) !important;
}

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

h1:focus {
    outline: none;
}

.valid.modified:not([type=checkbox]) {
    outline: 1px solid rgba(30, 218, 214, 0.82);
}

.invalid {
    outline: 1px solid #e50000;
}

.validation-message {
    color: #e50000;
}

.menu-card-container {
    background-color: white;
    border: 1px solid #ddd;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.dx-menu-vertical {
    background-color: white !important;
}

.btn-green {
    background-color: #28a745;
    color: white;
    border: none;
}

.btn-green:hover,
.btn-green:focus {
    background-color: #218838;
    color: white;
}

/* Light blue button styling */
.btn-blue {
    background-color: #11F8BBC0;
    color: white;
    border: none;
}

.btn-blue:hover,
.btn-blue:focus {
    background-color: rgba(17, 248, 187, 0.75);
    color: white;
}

.dxbs-grid-empty-data{
    visibility:hidden;
}

.blazor-error-boundary {
    background: url(data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iNTYiIGhlaWdodD0iNDkiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyIgeG1sbnM6eGxpbms9Imh0dHA6Ly93d3cudzMub3JnLzE5OTkveGxpbmsiIG92ZXJmbG93PSJoaWRkZW4iPjxkZWZzPjxjbGlwUGF0aCBpZD0iY2xpcDAiPjxyZWN0IHg9IjIzNSIgeT0iNTEiIHdpZHRoPSI1NiIgaGVpZ2h0PSI0OSIvPjwvY2xpcFBhdGg+PC9kZWZzPjxnIGNsaXAtcGF0aD0idXJsKCNjbGlwMCkiIHRyY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jI4MzcgMjYxLjA0OSA5My41Mjk1IDI2My41NzYgOTMuNTI5NSAyNjYuMTE2IDkzLjUyOTUgMjY3LjM4NyA5Mi4yODM3IDI2Ny4zODcgODkuNzkyMSAyNjcuMzg3IDg3LjMwMDUgMjY2LjExNiA4Ni4wNTQ3IDI2My41NzYgODYuMDU0N1oiIGZpbGw9IiNGRkU1MDAiIGZpbGwtcnVsZT0iZXZlbm9kZCIvPjwvZz48L3N2Zz4=) no-repeat 1rem/1.8rem, rgba(241, 95, 95, 0.78);
    padding: 1rem 1rem 1rem 3.7rem;
    color: white;
}

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

.darker-border-checkbox.form-check-input {
    border-color: #929292;
}

.page {
    position: relative;
    display: flex;
    flex-direction: column;
}

.sidebar{
    background-color: rgba(154,203,239,0.33) !important;
}

.grid-container {
    display: flex;
    justify-content: center; /* Horizontally center */
    align-items: center;     /* Vertically center */
    height: 100vh;           /* Take full viewport height */
    overflow-y: auto;
}

.grid-responsive {
    max-height: 70vh; /* 70% of the viewport height */
    overflow-y: hidden;
}

.col-10 {
    overflow: hidden; /* Prevents content from overflowing */
    display: flex;
    flex-direction: column;
}

/* Optional: Add some styling for the grid */
.dx-datagrid {
    width: 80%; /* You can adjust the width as needed */
    overflow: hidden;
}

.grid-container, .col-10 {
    height: 100%;
}

table {
    max-width: 100%;
    overflow-x: auto;
}

.navbar-nav {
    clear: left;
}

.fa {
    transition: opacity 0.3s ease-in-out, transform 0.3s ease-in-out;
}

.fade-in {
    opacity: 0;
    animation: fadeIn 0.5s forwards;
}

@keyframes fadeIn {
    from { opacity: 0; transform: scale(0.9); }
    to { opacity: 1; transform: scale(1); }
}

/* DevExpress and Bootstrap Themes */
.alt-item > td:not(.dxbl-grid-empty-cell),
.alt-item > td:not(.dxbl-grid-indent-cell) {
    background-color: color-mix(in srgb, var(--bs-gray-300), transparent 50%);
}

.btn-primary-gradient {
    color: #fff;
    background: linear-gradient(to right, rgba(10, 150, 140, 0.6), rgba(5, 120, 100, 0.6));
    border-color: #1be0dc;
    transition: background 0.3s ease, border-color 0.3s ease, box-shadow 0.3s ease;
    padding: 10px 20px;
    font-size: 16px;
    border-radius: 8px;
    cursor: pointer;
    box-shadow: 0 4px 8px rgb(29, 152, 148);
}

/* Hover state */
.btn-primary-gradient:hover {
    transform: translateY(-1px);
    box-shadow: 0 6px 12px rgb(33, 159, 157);
}

/* Active/clicked state */
.btn-primary-gradient:active {
    transform: scale(0.99);
    box-shadow: 0 1px 2px rgba(17, 248, 187, 0.5);
}

.dxgrid-gradient-header {
    background: linear-gradient(to right, rgba(10, 150, 140, 0.6), rgba(5, 120, 100, 0.6));
    color: white;
    font-weight: bold;
    border-bottom: 2px solid #ccc;
}

.dxbl-pager > .dxbl-btn.dxbl-btn-outline-secondary.dxbl-pager-active-page-btn {
    background: linear-gradient(to right, #0ABAB5, #058C8A) !important;
    color: white !important;
    font-weight: bold;
    border: 1px solid #06A6A1 !important;
    border-radius: 4px !important;
    box-shadow: 0 0 6px rgba(0, 0, 0, 0.2) !important;
    transition: background-color 0.3s ease, box-shadow 0.3s ease !important;
}