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

.invalid {
    outline: 1px solid red;
}

.validation-message {
    color: red;
}

#blazor-error-ui {
    color-scheme: light only;
    background: lightyellow;
    bottom: 0;
    box-shadow: 0 -1px 2px rgba(0, 0, 0, 0.2);
    box-sizing: border-box;
    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: absolute;
    display: block;
    width: 8rem;
    height: 8rem;
    inset: 20vh 0 auto 0;
    margin: 0 auto 0 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;
}

.form-floating>.form-control-plaintext::placeholder,
.form-floating>.form-control::placeholder {
    color: var(--bs-secondary-color);
    text-align: end;
}

.form-floating>.form-control-plaintext:focus::placeholder,
.form-floating>.form-control:focus::placeholder {
    text-align: start;
}

.rz-material3 .demos-nav,
.rz-material3-dark .demos-nav {
    padding: 0.5rem;
}

.rz-dropdown,
.rz-textbox,
.rz-numeric,
.rz-autocomplete,
.rz-textarea {
    width: 100%;
}

.hero-section {
    background-image: linear-gradient(rgba(0, 0, 0, 0.5), rgba(0, 0, 0, 0.5)), url(/images/bg-image.webp);
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    color: #ffffff;
    padding: 0 20px;
}

.hero-title {
    font-size: 3rem;
    font-weight: 700;
    margin-bottom: 20px;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
}

.hero-subtitle {
    font-size: 1.25rem;
    max-width: 600px;
    line-height: 1.6;
    margin-bottom: 30px;
}

/* Smooth Transition Animations for Modal Dialog */
@keyframes slideInDown {
    from {
        opacity: 0;
        transform: translateY(-40px) translateZ(0);
    }

    to {
        opacity: 1;
        transform: translateY(0) translateZ(0);
    }
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

@keyframes slideOutUp {
    from {
        opacity: 1;
        transform: translateY(0) translateZ(0);
    }

    to {
        opacity: 0;
        transform: translateY(-40px) translateZ(0);
    }
}

@keyframes fadeOut {
    from {
        opacity: 1;
    }

    to {
        opacity: 0;
    }
}

/* Apply animations to Radzen Dialog container */
.rz-dialog {
    animation: slideInDown 0.45s cubic-bezier(0.34, 1.56, 0.64, 1) both;
    backface-visibility: hidden;
    perspective: 1000px;
    will-change: transform, opacity;
    transform: translateZ(0);
}

.rz-dialog-content {
    padding-top: 0.5rem !important;
}

.rz-dialog-overlay {
    animation: fadeIn 0.45s cubic-bezier(0.34, 1.56, 0.64, 1) both;
    backface-visibility: hidden;
    will-change: opacity;
}

/* Exit animations */
.rz-dialog.rz-state-hidden {
    animation: slideOutUp 0.35s cubic-bezier(0.215, 0.61, 0.355, 1) forwards;
}

.rz-dialog-overlay.rz-state-hidden {
    animation: fadeOut 0.35s cubic-bezier(0.215, 0.61, 0.355, 1) forwards;
}

/* Alert and Confirm Dialog Styling */
.rz-alert-wrapper,
.rz-confirm-wrapper {
    min-width: 350px;
}

/* Alert Dialog */
.rz-alert-wrapper {
    background: linear-gradient(135deg, #ffffff 0%, #f8f9fa 100%);
    border-radius: 12px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.15), 0 0 0 1px rgba(0, 0, 0, 0.05);
    border: 1px solid rgba(0, 0, 0, 0.08);
}

.rz-alert-wrapper .rz-alert-content {
    padding: 24px;
    font-size: 0.95rem;
    color: #333333;
    line-height: 1.6;
    font-weight: 500;
}

.rz-alert-wrapper .rz-alert-message-icon {
    margin-right: 16px;
    font-size: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.rz-alert-wrapper .rz-alert-message {
    display: flex;
    align-items: center;
    gap: 12px;
}

/* Alert Success Style */
.rz-alert-wrapper .rz-alert-message.rz-alert-info {
    color: #0d6efd;
}

.rz-alert-wrapper .rz-alert-message.rz-alert-info .rz-alert-message-icon {
    color: #0d6efd;
}

/* Alert Confirm Style */
.rz-alert-wrapper .rz-alert-message.rz-alert-confirm {
    color: #198754;
}

.rz-alert-wrapper .rz-alert-message.rz-alert-confirm .rz-alert-message-icon {
    color: #198754;
}

/* Alert Warning Style */
.rz-alert-wrapper .rz-alert-message.rz-alert-warning {
    color: #ffc107;
}

.rz-alert-wrapper .rz-alert-message.rz-alert-warning .rz-alert-message-icon {
    color: #ffc107;
}

/* Alert Error Style */
.rz-alert-wrapper .rz-alert-message.rz-alert-error {
    color: #dc3545;
}

.rz-alert-wrapper .rz-alert-message.rz-alert-error .rz-alert-message-icon {
    color: #dc3545;
}

.rz-alert-wrapper .rz-button {
    min-width: 90px;
    border-radius: 6px;
    font-weight: 600;
    padding: 8px 24px;
    border: none;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    cursor: pointer;
}

.rz-alert-wrapper .rz-button.rz-button-md {
    padding: 10px 28px;
    font-size: 0.95rem;
}

.rz-alert-wrapper .rz-button.rz-primary {
    background: linear-gradient(135deg, #0d6efd 0%, #0a58ca 100%);
    color: white;
}

.rz-alert-wrapper .rz-button.rz-primary:hover {
    background: linear-gradient(135deg, #0a58ca 0%, #084298 100%);
    box-shadow: 0 4px 12px rgba(13, 110, 253, 0.3);
}

.rz-alert-wrapper .rz-button.rz-primary:active {
    transform: translateY(1px);
}

/* Confirm Dialog */
.rz-confirm-wrapper {
    background: linear-gradient(135deg, #ffffff 0%, #f8f9fa 100%);
    border-radius: 12px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.15), 0 0 0 1px rgba(0, 0, 0, 0.05);
    border: 1px solid rgba(0, 0, 0, 0.08);
}

.rz-confirm-wrapper .rz-confirm-content {
    padding: 24px;
    font-size: 0.95rem;
    color: #333333;
    line-height: 1.6;
    font-weight: 500;
}

.rz-confirm-wrapper .rz-confirm-message-icon {
    margin-right: 16px;
    font-size: 28px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #0d6efd;
}

.rz-confirm-wrapper .rz-confirm-message {
    display: flex;
    align-items: center;
    gap: 12px;
}

.rz-confirm-wrapper .rz-button {
    min-width: 100px;
    border-radius: 6px;
    font-weight: 600;
    padding: 10px 24px;
    border: none;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    cursor: pointer;
    font-size: 0.9rem;
}

.rz-confirm-wrapper .rz-button.rz-button-md {
    padding: 10px 28px;
}

.rz-confirm-wrapper .rz-button.rz-primary {
    background: linear-gradient(135deg, #198754 0%, #146c43 100%);
    color: white;
    margin-left: 8px;
}

.rz-confirm-wrapper .rz-button.rz-primary:hover {
    background: linear-gradient(135deg, #146c43 0%, #0f5132 100%);
    box-shadow: 0 4px 12px rgba(25, 135, 84, 0.3);
}

.rz-confirm-wrapper .rz-button.rz-primary:active {
    transform: translateY(1px);
}

.rz-confirm-wrapper .rz-button.rz-button-secondary {
    background: linear-gradient(135deg, #e9ecef 0%, #dee2e6 100%);
    color: #333333;
    border: 1px solid #dee2e6;
}

.rz-confirm-wrapper .rz-button.rz-button-secondary:hover {
    background: linear-gradient(135deg, #dee2e6 0%, #ced4da 100%);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.rz-confirm-wrapper .rz-button.rz-button-secondary:active {
    transform: translateY(1px);
}

/* Dialog Title Styling */
.rz-dialog .rz-dialog-titlebar {
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    border-bottom: 1px solid #dee2e6;
    border-radius: 12px 12px 0 0;
    padding: 16px 24px;
}

.rz-dialog .rz-dialog-titlebar .rz-dialog-title {
    font-weight: 700;
    color: #0d6efd;
    font-size: 1.1rem;
}

/* Button Container */
.rz-alert-wrapper .rz-dialog-buttons,
.rz-confirm-wrapper .rz-dialog-buttons {
    padding: 20px 24px;
    border-top: 1px solid #e9ecef;
    background-color: #f8f9fa;
    border-radius: 0 0 12px 12px;
    display: flex;
    justify-content: flex-end;
    gap: 12px;
}

/* Responsive Design */
@media (max-width: 480px) {

    .rz-alert-wrapper,
    .rz-confirm-wrapper {
        min-width: 300px;
    }

    .rz-alert-wrapper .rz-alert-content,
    .rz-confirm-wrapper .rz-confirm-content {
        padding: 20px;
    }

    .rz-alert-wrapper .rz-button,
    .rz-confirm-wrapper .rz-button {
        min-width: 80px;
        padding: 8px 16px;
        font-size: 0.85rem;
    }

    .rz-confirm-wrapper .rz-dialog-buttons {
        flex-wrap: wrap;
        gap: 8px;
    }

    .rz-confirm-wrapper .rz-button.rz-primary {
        margin-left: 0;
        flex: 1;
        min-width: auto;
    }

    .rz-confirm-wrapper .rz-button.rz-button-secondary {
        flex: 1;
        min-width: auto;
    }
}

/* Smooth Transition Animations for Modal Dialog */
@keyframes slideInDown {
    from {
        opacity: 0;
        transform: translateY(-40px) translateZ(0);
    }

    to {
        opacity: 1;
        transform: translateY(0) translateZ(0);
    }
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

@keyframes slideOutUp {
    from {
        opacity: 1;
        transform: translateY(0) translateZ(0);
    }

    to {
        opacity: 0;
        transform: translateY(-40px) translateZ(0);
    }
}

@keyframes fadeOut {
    from {
        opacity: 1;
    }

    to {
        opacity: 0;
    }
}

/* Apply animations to Radzen Dialog container */
.rz-dialog {
    animation: slideInDown 0.45s cubic-bezier(0.34, 1.56, 0.64, 1) both;
    backface-visibility: hidden;
    perspective: 1000px;
    will-change: transform, opacity;
    transform: translateZ(0);
}

.rz-dialog-content {
    padding-top: 0.5rem !important;
}

.rz-dialog-overlay {
    animation: fadeIn 0.45s cubic-bezier(0.34, 1.56, 0.64, 1) both;
    backface-visibility: hidden;
    will-change: opacity;
}

/* Exit animations */
.rz-dialog.rz-state-hidden {
    animation: slideOutUp 0.35s cubic-bezier(0.215, 0.61, 0.355, 1) forwards;
}

.rz-dialog-overlay.rz-state-hidden {
    animation: fadeOut 0.35s cubic-bezier(0.215, 0.61, 0.355, 1) forwards;
}

/* Alert and Confirm Dialog Styling */
.rz-alert-wrapper,
.rz-confirm-wrapper {
    min-width: 350px;
}

/* Alert Dialog */
.rz-alert-wrapper {
    background: linear-gradient(135deg, #ffffff 0%, #f8f9fa 100%);
    border-radius: 12px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.15), 0 0 0 1px rgba(0, 0, 0, 0.05);
    border: 1px solid rgba(0, 0, 0, 0.08);
}

.rz-alert-wrapper .rz-alert-content {
    padding: 24px;
    font-size: 0.95rem;
    color: #333333;
    line-height: 1.6;
    font-weight: 500;
}

.rz-alert-wrapper .rz-alert-message-icon {
    margin-right: 16px;
    font-size: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.rz-alert-wrapper .rz-alert-message {
    display: flex;
    align-items: center;
    gap: 12px;
}

/* Alert Success Style */
.rz-alert-wrapper .rz-alert-message.rz-alert-info {
    color: #0d6efd;
}

.rz-alert-wrapper .rz-alert-message.rz-alert-info .rz-alert-message-icon {
    color: #0d6efd;
}

/* Alert Confirm Style */
.rz-alert-wrapper .rz-alert-message.rz-alert-confirm {
    color: #198754;
}

.rz-alert-wrapper .rz-alert-message.rz-alert-confirm .rz-alert-message-icon {
    color: #198754;
}

/* Alert Warning Style */
.rz-alert-wrapper .rz-alert-message.rz-alert-warning {
    color: #ffc107;
}

.rz-alert-wrapper .rz-alert-message.rz-alert-warning .rz-alert-message-icon {
    color: #ffc107;
}

/* Alert Error Style */
.rz-alert-wrapper .rz-alert-message.rz-alert-error {
    color: #dc3545;
}

.rz-alert-wrapper .rz-alert-message.rz-alert-error .rz-alert-message-icon {
    color: #dc3545;
}

.rz-alert-wrapper .rz-button {
    min-width: 90px;
    border-radius: 6px;
    font-weight: 600;
    padding: 8px 24px;
    border: none;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    cursor: pointer;
}

.rz-alert-wrapper .rz-button.rz-button-md {
    padding: 10px 28px;
    font-size: 0.95rem;
}

.rz-alert-wrapper .rz-button.rz-primary {
    background: linear-gradient(135deg, #0d6efd 0%, #0a58ca 100%);
    color: white;
}

.rz-alert-wrapper .rz-button.rz-primary:hover {
    background: linear-gradient(135deg, #0a58ca 0%, #084298 100%);
    box-shadow: 0 4px 12px rgba(13, 110, 253, 0.3);
}

.rz-alert-wrapper .rz-button.rz-primary:active {
    transform: translateY(1px);
}

/* Confirm Dialog */
.rz-confirm-wrapper {
    background: linear-gradient(135deg, #ffffff 0%, #f8f9fa 100%);
    border-radius: 12px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.15), 0 0 0 1px rgba(0, 0, 0, 0.05);
    border: 1px solid rgba(0, 0, 0, 0.08);
}

.rz-confirm-wrapper .rz-confirm-content {
    padding: 24px;
    font-size: 0.95rem;
    color: #333333;
    line-height: 1.6;
    font-weight: 500;
}

.rz-confirm-wrapper .rz-confirm-message-icon {
    margin-right: 16px;
    font-size: 28px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #0d6efd;
}

.rz-confirm-wrapper .rz-confirm-message {
    display: flex;
    align-items: center;
    gap: 12px;
}

.rz-confirm-wrapper .rz-button {
    min-width: 100px;
    border-radius: 6px;
    font-weight: 600;
    padding: 10px 24px;
    border: none;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    cursor: pointer;
    font-size: 0.9rem;
}

.rz-confirm-wrapper .rz-button.rz-button-md {
    padding: 10px 28px;
}

.rz-confirm-wrapper .rz-button.rz-primary {
    background: linear-gradient(135deg, #198754 0%, #146c43 100%);
    color: white;
    margin-left: 8px;
}

.rz-confirm-wrapper .rz-button.rz-primary:hover {
    background: linear-gradient(135deg, #146c43 0%, #0f5132 100%);
    box-shadow: 0 4px 12px rgba(25, 135, 84, 0.3);
}

.rz-confirm-wrapper .rz-button.rz-primary:active {
    transform: translateY(1px);
}

.rz-confirm-wrapper .rz-button.rz-button-secondary {
    background: linear-gradient(135deg, #e9ecef 0%, #dee2e6 100%);
    color: #333333;
    border: 1px solid #dee2e6;
}

.rz-confirm-wrapper .rz-button.rz-button-secondary:hover {
    background: linear-gradient(135deg, #dee2e6 0%, #ced4da 100%);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.rz-confirm-wrapper .rz-button.rz-button-secondary:active {
    transform: translateY(1px);
}

/* Dialog Title Styling */
.rz-dialog .rz-dialog-titlebar {
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    border-bottom: 1px solid #dee2e6;
    border-radius: 12px 12px 0 0;
    padding: 16px 24px;
}

.rz-dialog .rz-dialog-titlebar .rz-dialog-title {
    font-weight: 700;
    color: #0d6efd;
    font-size: 1.1rem;
}

/* Button Container */
.rz-alert-wrapper .rz-dialog-buttons,
.rz-confirm-wrapper .rz-dialog-buttons {
    padding: 20px 24px;
    border-top: 1px solid #e9ecef;
    background-color: #f8f9fa;
    border-radius: 0 0 12px 12px;
    display: flex;
    justify-content: flex-end;
    gap: 12px;
}

/* Responsive Design */
@media (max-width: 480px) {

    .rz-alert-wrapper,
    .rz-confirm-wrapper {
        min-width: 300px;
    }

    .rz-alert-wrapper .rz-alert-content,
    .rz-confirm-wrapper .rz-confirm-content {
        padding: 20px;
    }

    .rz-alert-wrapper .rz-button,
    .rz-confirm-wrapper .rz-button {
        min-width: 80px;
        padding: 8px 16px;
        font-size: 0.85rem;
    }

    .rz-confirm-wrapper .rz-dialog-buttons {
        flex-wrap: wrap;
        gap: 8px;
    }

    .rz-confirm-wrapper .rz-button.rz-primary {
        margin-left: 0;
        flex: 1;
        min-width: auto;
    }

    .rz-confirm-wrapper .rz-button.rz-button-secondary {
        flex: 1;
        min-width: auto;
    }
}

.table-dashboard .rz-grid-table thead tr th {
    background-color: var(--rz-success-darker) !important;
}

.table-dashboard .rz-column-title {
    padding-inline: unset !important;
    font-weight: 600 !important;
    justify-content: center !important;
}

.table-dashboard .rz-column-title-content {
    white-space: normal !important;
    overflow: unset !important;
    text-overflow: unset !important;
    text-align: center;
    color: white !important;
    padding-right: 10px;
    padding-left: 10px;
}