:root {
    --rz-link-color: #2b6dc3; /* To improve Accessibility compliance*/
}


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

:root {
    font-size: var(--rz-root-font-size);
}

body {
    font-family: var(--rz-text-font-family);
    color: var(--rz-text-color);
    font-size: var(--rz-body-font-size);
    line-height: var(--rz-body-line-height);
    background-color: var(--rz-body-background-color);
}

.rz-body {
    --rz-body-padding: 0;
}

a {
    color: var(--rz-link-color);
}

    a:hover,
    a:focus {
        color: var(--rz-link-hover-color);
    }

.blazor-error-boundary {
    background: url(data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iNTYiIGhlaWdodD0iNDkiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyIgeG1sbnM6eGxpbms9Imh0dHA6Ly93d3cudzMub3JnLzE5OTkveGxpbmsiIG92ZXJmbG93PSJoaWRkZW4iPjxkZWZzPjxjbGlwUGF0aCBpZD0iY2xpcDAiPjxyZWN0IHg9IjIzNSIgeT0iNTEiIHdpZHRoPSI1NiIgaGVpZ2h0PSI0OSIvPjwvY2xpcFBhdGg+PC9kZWZzPjxnIGNsaXAtcGF0aD0idXJsKCNjbGlwMCkiIHRyYW5zZm9ybT0idHJhbnNsYXRlKC0yMzUgLTUxKSI+PHBhdGggZD0iTTI2My41MDYgNTFDMjY0LjcxNyA1MSAyNjUuODEzIDUxLjQ4MzcgMjY2LjYwNiA1Mi4yNjU4TDI2Ny4wNTIgNTIuNzk4NyAyNjcuNTM5IDUzLjYyODMgMjkwLjE4NSA5Mi4xODMxIDI5MC41NDUgOTIuNzk1IDI5MC42NTYgOTIuOTk2QzI5MC44NzcgOTMuNTEzIDI5MSA5N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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");
    }





.grid-stack {
    /*width: 100%;*/ /* Full width of parent container */
    min-height: 400px; /* Minimum height for visibility */
}

.grid-stack-item-content {
    width: 100%; /* Ensure content fills widget */
    /*height: 100%;*/ /* Fill widget height */
    /*padding: 10px;*/ /* Remove padding for full content fit */
    overflow: hidden; /* Prevent overflow */
}

/*.rz-carousel {
    width: 100%;*/ /* Full width of widget */
    /*height: 100%;*/ /* Full height of widget */
/*}

    .rz-carousel img {
        width: 100%;*/ /* Images scale with carousel */
        /*height: auto;*/ /* Maintain aspect ratio */
        /*object-fit: cover;*/ /* Cover the area, cropping if needed */
    /*}*/


.rz-data-row {
    padding: 0;
}

.rz-grid-table td, .rz-grid-table th {
    padding: 0;
    padding-top: 5px;
    padding-bottom: 5px;
    padding-inline: 16px;
}

.rz-grid-table thead th .rz-column-title {
    font-weight: bold !important;
}

.rz-datatable-data th, .rz-grid-table th {
    font-weight: bold !important;
}

.rz-datatable-data td, .rz-grid-table td {
    padding: 0;
    padding-top: 5px;
    padding-bottom: 5px;
    padding-inline: 16px;
}
/* Adds a visually hidden label that screen readers can pick up. */
.sr-only {
    position: absolute !important;
    width: 1px !important;
    height: 1px !important;
    padding: 0 !important;
    margin: -1px !important;
    overflow: hidden !important;
    clip: rect(0, 0, 0, 0) !important;
    white-space: nowrap !important;
    border: 0 !important;
}

/*chat style*/

.chat-container {
    max-width: 600px;
    margin: 20px auto;
}

.chat-messages {
    height: 400px;
    overflow-y: scroll;
    border: 1px solid #ccc;
    padding: 10px;
}

.chat-message {
    margin-bottom: 10px;
}

.form-control {
    width: 100%;
    padding: 8px;
    margin-top: 10px;
}

.btn-primary {
    padding: 8px 16px;
}

.highlight {
    background-color: #ffff00;
    /*padding: 0 2px;*/
    border-radius: 3px;
    /*font-weight: 600;*/
}

.rz-view.rz-month-view .rz-event-content {
    border-radius: 20px !important;
}

/* Filter Container Styles */
.filter-container {
    background: var(--rz-sidebar-background-color);
    border-radius: 12px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
    margin-bottom: 10px;
}

.filters-header {
    padding: 5px 10px;
    border-radius: 12px 12px 0 0;
    border-bottom: 1px solid #e9ecef;
}

    .filters-header .filter-title {
        font-weight: 600;
        font-size: 16px;
        color: var(--rz-text-color);
        margin: 0;
    }

.filters-status {
    padding: 12px 20px;
    background: var(--rz-sidebar-background-color);
    min-height: 80px;
    max-height: 120px;
    overflow-y: auto;
}

.filter-tag {
    display: inline-flex;
    align-items: center;
    background: linear-gradient(135deg, #e3f2fd 0%, #bbdefb 100%);
    color: var(--rz-text-color);
    padding: 4px 8px;
    margin: 2px 4px 2px 0;
    border-radius: 16px;
    font-size: 12px;
    font-weight: 500;
    border: 1px solid #90caf9;
    transition: all 0.2s ease;
}

    .filter-tag:hover {
        background: linear-gradient(135deg, #bbdefb 0%, #90caf9 100%);
        transform: translateY(-1px);
        box-shadow: 0 2px 8px rgba(13, 71, 161, 0.2);
    }

    .filter-tag .btn-close {
        background-size: 10px;
        width: 14px;
        height: 14px;
        opacity: 0.6;
        transition: opacity 0.2s ease;
    }

        .filter-tag .btn-close:hover {
            opacity: 1;
        }

.no-filter-text {
    color: var(--rz-text-color);
    font-size: 14px;
}

/* Accordion Styles */
.custom-accordion {
    outline: none;
    background: var(--rz-sidebar-background-color);
    border-radius: 12px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
    overflow: hidden;
}

.accordion-item {
    border-bottom: 1px solid #f1f3f4;
}

    .accordion-item:last-child {
        border-bottom: none;
    }

.accordion-header {
    width: 100%;
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 16px 20px;
    background: var(--rz-sidebar-background-color);
    border: none;
    cursor: pointer;
    text-align: left;
    font-size: 14px;
    font-weight: 500;
    color: var(--rz-text-color);
    transition: all 0.3s ease;
    position: relative;
}

    .accordion-header:hover {
        background: var(--rz-base-200, rgba(61, 159, 204, 0.16));
        color: var(--rz-text-color) !important;
        transform: translateX(2px);
    }

        .accordion-header:hover i.rzi {
            color: var(--rz-text-color) !important;
        }

    .accordion-header:focus {
        outline: 2px solid #1976d2;
        outline-offset: -2px;
        background: var(--rz-base-200, rgba(61, 159, 204, 0.24));
        color: var(--rz-text-color) !important;
    }

        .accordion-header:focus i.rzi {
            color: var(--rz-text-color) !important;
        }

    .accordion-header.focused {
        background: var(--rz-base-200, rgba(61, 159, 204, 0.24));
        color: var(--rz-text-color) !important;
        box-shadow: inset 0 0 0 2px #1976d2;
    }

        .accordion-header.focused i.rzi {
            color: var(--rz-text-color) !important;
        }

    .accordion-header.expanded {
        background: linear-gradient(135deg, #1976d2 0%, #1565c0 100%);
        color: #fff !important;
    }

        .accordion-header.expanded i.rzi {
            color: #fff !important;
        }

    .accordion-header i.rzi:first-child {
        font-size: 18px;
        width: 24px;
        text-align: center;
    }

    .accordion-header .toggle-icon {
        margin-left: auto;
        transition: transform 0.3s ease;
    }

    .accordion-header.expanded .toggle-icon {
        transform: rotate(180deg);
    }

.accordion-content {
    padding: 10px;
    background: var(--rz-sidebar-background-color);
    border-top: 1px solid #e9ecef;
    animation: slideDown 0.3s ease;
}

/* Filter Items Styles */
.filter-search-box {
    width: 100%;
    padding: 10px 12px;
    border: 2px solid #e9ecef;
    border-radius: 8px;
    font-size: 14px;
    transition: border-color 0.3s ease;
    background: var(--rz-sidebar-background-color);
}

    .filter-search-box:focus {
        border-color: #1976d2;
        outline: none;
        box-shadow: 0 0 0 3px rgba(25, 118, 210, 0.1);
    }

.filter-items-container {
    max-height: 280px;
    overflow-y: auto;
    border: 1px solid #e9ecef;
    border-radius: 8px;
    padding: 8px;
    background: var(--rz-sidebar-background-color);
}

.filter-item {
    display: flex;
    align-items: center;
    padding: 8px 12px;
    margin: 2px 0;
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.2s ease;
    position: relative;
}

    .filter-item:hover {
        background: var(--rz-base-200, rgba(61, 159, 204, 0.16));
        transform: translateX(2px);
    }

    .filter-item:focus {
        outline: 2px solid #1976d2;
        outline-offset: 2px;
        background: var(--rz-base-200, rgba(61, 159, 204, 0.24));
    }

    .filter-item:hover .filter-item-label,
    .filter-item:focus .filter-item-label {
        color: var(--rz-text-color) !important;
    }

.filter-item-label {
    color: var(--rz-text-color);
    font-size: 13px;
    margin-left: 8px;
    flex: 1;
    transition: color 0.2s ease;
}

.filter-item input[type="checkbox"] {
    accent-color: #1976d2;
    transform: scale(1.1);
}

/* Year Range Slider Styles */
.year-range-container {
    background: var(--rz-sidebar-background-color);
    padding: 6px;
    border-radius: 8px;
    border: 1px solid #e9ecef;
}

.year-display {
    background: linear-gradient(135deg, #e3f2fd 0%, #bbdefb 100%);
    color: var(--rz-text-color);
    padding: 8px 12px;
    border-radius: 6px;
    font-weight: 600;
    text-align: center;
    margin-top: 12px;
}

/* Rating Items Styles */
.rating-item {
    display: flex;
    align-items: center;
    padding: 8px 4px;
    margin: 2px 0;
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.2s ease;
    gap: 2px;
}

    .rating-item:hover {
        background: var(--rz-base-200, rgba(61, 159, 204, 0.16));
        transform: translateX(2px);
    }

    .rating-item:focus {
        outline: 2px solid #1976d2;
        outline-offset: 2px;
        background: var(--rz-base-200, rgba(61, 159, 204, 0.24));
    }

/* More Button Styles */
.more-button-container {
    text-align: center;
    padding: 12px 0 0 0;
    border-top: 1px solid #e9ecef;
    margin-top: 8px;
}

.show-more-btn {
    background: linear-gradient(135deg, #1976d2 0%, #1565c0 100%);
    color: var(--rz-text-color);
    border: none;
    padding: 6px 16px;
    border-radius: 16px;
    font-size: 12px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
}

    .show-more-btn:hover {
        background: linear-gradient(135deg, #1565c0 0%, #0d47a1 100%);
        transform: translateY(-1px);
        box-shadow: 0 4px 12px rgba(25, 118, 210, 0.3);
    }

/* Clear Button Styles */
.clear-filters-btn {
    background: linear-gradient(135deg, #dc3545 0%, #c82333 100%);
    color: var(--rz-text-color);
    border: none;
    padding: 8px 16px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

    .clear-filters-btn:hover {
        background: linear-gradient(135deg, #c82333 0%, #a71e2a 100%);
        transform: translateY(-1px);
        box-shadow: 0 4px 12px rgba(220, 53, 69, 0.3);
    }

/* Animations */
@keyframes slideDown {
    from {
        opacity: 0;
        max-height: 0;
        transform: translateY(-10px);
    }

    to {
        opacity: 1;
        max-height: 800px;
        transform: translateY(0);
    }
}

/* Responsive Design */
@media (max-width: 768px) {
    .accordion-header {
        padding: 12px 16px;
        font-size: 13px;
    }

    .accordion-content {
        padding: 16px;
    }

    .filter-item {
        padding: 6px 8px;
    }

    .filter-item-label {
        font-size: 12px;
    }
}

/* Enhanced Focus Styles for Interactive Elements */

.rating-item input[type="checkbox"]:focus {
    outline: 3px solid #ff9800 !important;
    outline-offset: 2px !important;
    box-shadow: 0 0 0 3px rgba(255, 152, 0, 0.3) !important;
}

.rating-item:has(input[type="checkbox"]:focus) {
    background: rgba(255, 152, 0, 0.1) !important;
    border-radius: 4px !important;
}

/* Make checkbox clickable area bigger */
.filter-item input[type="checkbox"],
.rating-item input[type="checkbox"] {
    width: 18px !important;
    height: 18px !important;
    cursor: pointer !important;
    margin-right: 8px !important;
}

/* Make filter items clickable */
.filter-item,
.rating-item {
    cursor: pointer !important;
    padding: 8px !important;
    border-radius: 4px !important;
    transition: background-color 0.2s ease !important;
}

    .filter-item:hover,
    .rating-item:hover {
        background: var(--rz-base-200, rgba(61, 159, 204, 0.16)) !important;
    }

.custom-scroll::-webkit-scrollbar {
    width: 5px !important;
}

.custom-scroll::-webkit-scrollbar-thumb {
    background: #37A0D2 !important;
    border-radius: 10px !important;
}

.custom-scroll::-webkit-scrollbar-track {
    background: #D5DADF !important;
    border-radius: 10px !important;
}