/**
 * Tabler Sidebar Custom Styling
 * Kompletně izolované styly pouze pro sidebar s Tabler komponenty
 * NEPOUŽÍVÁ globální Tabler CSS - vše je scope pouze pro .sidebar-tabler-scope
 */

/* Wrapper pro izolaci Tabler stylů */
.sidebar-tabler-scope {
    /* RF SPIN brand colors */
    --tblr-primary: #bb2018;
    --tblr-primary-rgb: 187, 32, 24;
    --tblr-primary-hover: #a01c15;
    --tblr-border-color: #dee2e6;
    --tblr-border-color-light: #e9ecef;
    --tblr-body-color: #1e293b;
    --tblr-text-muted: #6c757d;
    --tblr-bg-secondary: #f8f9fa;
    --tblr-white: #ffffff;
}

/* Bootstrap Grid System - pouze pro náš scope */
.sidebar-tabler-scope .container,
.sidebar-tabler-scope .container-fluid {
    width: 100%;
    padding-right: 15px;
    padding-left: 15px;
    margin-right: auto;
    margin-left: auto;
}

.sidebar-tabler-scope .row {
    display: flex;
    flex-wrap: wrap;
    margin-right: -15px;
    margin-left: -15px;
}

/* Bootstrap Utilities */
.sidebar-tabler-scope .d-flex { display: flex !important; }
.sidebar-tabler-scope .justify-content-between { justify-content: space-between !important; }
.sidebar-tabler-scope .align-items-center { align-items: center !important; }
.sidebar-tabler-scope .mb-2 { margin-bottom: 0.5rem !important; }
.sidebar-tabler-scope .mb-3 { margin-bottom: 1rem !important; }
.sidebar-tabler-scope .ms-2 { margin-left: 0.5rem !important; }
.sidebar-tabler-scope .ms-3 { margin-left: 1rem !important; }
.sidebar-tabler-scope .mt-4 { margin-top: 1.5rem !important; }
.sidebar-tabler-scope .mx-2 { margin-left: 0.5rem !important; margin-right: 0.5rem !important; }
.sidebar-tabler-scope .float-end { float: right !important; }
.sidebar-tabler-scope .text-muted { color: var(--tblr-text-muted) !important; }

/* Bootstrap Accordion komponenty - pouze pro náš scope */
.sidebar-tabler-scope .accordion {
    margin-bottom: 1rem;
}

.sidebar-tabler-scope .accordion-item {
    background-color: var(--tblr-white);
    border: 1px solid var(--tblr-border-color);
    border-radius: 0.375rem;
    margin-bottom: 0.5rem;
}

.sidebar-tabler-scope .accordion-item:first-of-type {
    border-top-left-radius: 0.375rem;
    border-top-right-radius: 0.375rem;
}

.sidebar-tabler-scope .accordion-item:last-of-type {
    border-bottom-right-radius: 0.375rem;
    border-bottom-left-radius: 0.375rem;
}

.sidebar-tabler-scope .accordion-header {
    margin-bottom: 0;
}

.sidebar-tabler-scope .accordion-button {
    position: relative;
    display: flex;
    align-items: center;
    width: 100%;
    padding: 1rem 1.25rem;
    font-size: 1rem;
    color: var(--tblr-white);
    background-color: var(--tblr-primary);
    border: 1px solid var(--tblr-primary);
    border-radius: 0.375rem;
    overflow-anchor: none;
    transition: color 0.15s ease-in-out, background-color 0.15s ease-in-out, border-color 0.15s ease-in-out, box-shadow 0.15s ease-in-out, border-radius 0.15s ease;
    text-align: left;
    cursor: pointer;
}

.sidebar-tabler-scope .accordion-button:not(.collapsed) {
    color: var(--tblr-white);
    background-color: var(--tblr-primary-hover);
    border-color: var(--tblr-primary-hover);
    box-shadow: none;
}

.sidebar-tabler-scope .accordion-button::after {
    flex-shrink: 0;
    width: 1.25rem;
    height: 1.25rem;
    margin-left: auto;
    content: "";
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='%23ffffff'%3e%3cpath fill-rule='evenodd' d='M1.646 4.646a.5.5 0 0 1 .708 0L8 10.293l5.646-5.647a.5.5 0 0 1 .708.708l-6 6a.5.5 0 0 1-.708 0l-6-6a.5.5 0 0 1 0-.708z'/%3e%3c/svg%3e");
    background-repeat: no-repeat;
    background-size: 1.25rem;
    transition: transform 0.2s ease-in-out;
}

.sidebar-tabler-scope .accordion-button:not(.collapsed)::after {
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='%23ffffff'%3e%3cpath fill-rule='evenodd' d='M1.646 4.646a.5.5 0 0 1 .708 0L8 10.293l5.646-5.647a.5.5 0 0 1 .708.708l-6 6a.5.5 0 0 1-.708 0l-6-6a.5.5 0 0 1 0-.708z'/%3e%3c/svg%3e");
    transform: rotate(-180deg);
}

.sidebar-tabler-scope .accordion-collapse {
    border: 0;
}

.sidebar-tabler-scope .accordion-body {
    padding: 1rem 1.25rem;
    background-color: var(--tblr-white);
    border-top: 1px solid var(--tblr-border-color-light);
}

/* Bootstrap List Group - pouze pro náš scope */
.sidebar-tabler-scope .list-group {
    display: flex;
    flex-direction: column;
    padding-left: 0;
    margin-bottom: 0;
    border-radius: 0.375rem;
}

.sidebar-tabler-scope .list-group-item {
    position: relative;
    display: block;
    padding: 0.5rem 1rem;
    color: #212529;
    text-decoration: none;
    background-color: var(--tblr-white);
    border: 1px solid var(--tblr-border-color-light);
}

.sidebar-tabler-scope .list-group-item-action {
    width: 100%;
    color: #495057;
    text-align: inherit;
    cursor: pointer;
}

.sidebar-tabler-scope .list-group-item-action:hover,
.sidebar-tabler-scope .list-group-item-action:focus {
    z-index: 1;
    color: #495057;
    text-decoration: none;
    background-color: #f8f9fa;
}

/* Bootstrap Form komponenty - pouze pro náš scope */
.sidebar-tabler-scope .form-control {
    display: block;
    width: 100%;
    padding: 0.375rem 0.75rem;
    font-size: 1rem;
    font-weight: 400;
    line-height: 1.5;
    color: #212529;
    background-color: var(--tblr-white);
    background-image: none;
    border: 1px solid #ced4da;
    border-radius: 0.375rem;
    transition: border-color 0.15s ease-in-out, box-shadow 0.15s ease-in-out;
}

.sidebar-tabler-scope .form-select {
    display: block;
    width: 100%;
    padding: 0.375rem 2.25rem 0.375rem 0.75rem;
    font-size: 1rem;
    font-weight: 400;
    line-height: 1.5;
    color: #212529;
    background-color: var(--tblr-white);
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3e%3cpath fill='none' stroke='%23343a40' stroke-linecap='round' stroke-linejoin='round' stroke-width='2' d='M2 5l6 6 6-6'/%3e%3c/svg%3e");
    background-repeat: no-repeat;
    background-position: right 0.75rem center;
    background-size: 16px 12px;
    border: 1px solid #ced4da;
    border-radius: 0.375rem;
    transition: border-color 0.15s ease-in-out, box-shadow 0.15s ease-in-out;
    appearance: none;
    height: auto;
    min-height: 40px;
}

.sidebar-tabler-scope .form-check {
    display: block;
    min-height: 1.5rem;
    padding-left: 1.5em;
    margin-bottom: 0.125rem;
}

.sidebar-tabler-scope .form-check-input {
    width: 1em;
    height: 1em;
    margin-top: 0.25em;
    margin-left: -1.5em;
    vertical-align: top;
    background-color: var(--tblr-white);
    background-repeat: no-repeat;
    background-position: center;
    background-size: contain;
    border: 1px solid rgba(0, 0, 0, 0.25);
    appearance: none;
    cursor: pointer;
}

.sidebar-tabler-scope .form-check-input[type=checkbox] {
    border-radius: 0.25em;
}

.sidebar-tabler-scope .form-check-input:active {
    filter: brightness(90%);
}

.sidebar-tabler-scope .form-check-input:focus {
    border-color: rgba(187, 32, 24, 0.5);
    outline: 0;
    box-shadow: 0 0 0 0.25rem rgba(187, 32, 24, 0.25);
}

.sidebar-tabler-scope .form-check-input:checked {
    background-color: var(--tblr-primary);
    border-color: var(--tblr-primary);
}

.sidebar-tabler-scope .form-check-input:checked[type=checkbox] {
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20'%3e%3cpath fill='none' stroke='%23fff' stroke-linecap='round' stroke-linejoin='round' stroke-width='3' d='M6 10l3 3l6-6'/%3e%3c/svg%3e");
}

.sidebar-tabler-scope .form-check-label {
    color: #212529;
    cursor: pointer;
}

/* Bootstrap Range - pouze pro náš scope */
.sidebar-tabler-scope .form-range {
    width: 100%;
    height: 1.5rem;
    padding: 0;
    background-color: transparent;
    appearance: none;
}

.sidebar-tabler-scope .form-range:focus {
    outline: 0;
}

.sidebar-tabler-scope .form-range::-webkit-slider-track {
    width: 100%;
    height: 0.5rem;
    color: transparent;
    cursor: pointer;
    background-color: #dee2e6;
    border-color: transparent;
    border-radius: 1rem;
}

.sidebar-tabler-scope .form-range::-webkit-slider-thumb {
    width: 1rem;
    height: 1rem;
    margin-top: -0.25rem;
    background-color: var(--tblr-primary);
    border: 0;
    border-radius: 1rem;
    cursor: pointer;
    appearance: none;
}

/* Bootstrap Buttons - pouze pro náš scope */
.sidebar-tabler-scope .btn {
    display: inline-block;
    font-weight: 400;
    line-height: 1.5;
    color: #212529;
    text-align: center;
    text-decoration: none;
    vertical-align: middle;
    cursor: pointer;
    user-select: none;
    background-color: transparent;
    border: 1px solid transparent;
    padding: 0.375rem 0.75rem;
    font-size: 1rem;
    border-radius: 0.375rem;
    transition: color 0.15s ease-in-out, background-color 0.15s ease-in-out, border-color 0.15s ease-in-out, box-shadow 0.15s ease-in-out;
    margin: 0;
}

.sidebar-tabler-scope .btn-primary {
    color: var(--tblr-white);
    background-color: var(--tblr-primary);
    border-color: var(--tblr-primary);
}

.sidebar-tabler-scope .btn-primary:hover {
    color: var(--tblr-white);
    background-color: var(--tblr-primary-hover);
    border-color: var(--tblr-primary-hover);
}

.sidebar-tabler-scope .btn-outline-secondary {
    color: #6c757d;
    border-color: #6c757d;
}

.sidebar-tabler-scope .btn-outline-secondary:hover {
    color: var(--tblr-white);
    background-color: #6c757d;
    border-color: #6c757d;
}

/* Bootstrap Badges - pouze pro náš scope */
.sidebar-tabler-scope .badge {
    display: inline-block;
    padding: 0.35em 0.65em;
    font-size: 0.75em;
    font-weight: 700;
    line-height: 1;
    color: var(--tblr-white);
    text-align: center;
    white-space: nowrap;
    vertical-align: baseline;
    border-radius: 0.25rem;
    position: relative;
    top: 6px;	
}

.sidebar-tabler-scope .bg-secondary {
    background-color: #6c757d;
}

/* Základní styling pro sidebar */
.sidebar-tabler-scope .tabler-filters {
    padding: 1rem;
    background: #f0f0f0;
    border-radius: 0.375rem;
    border: 1px solid var(--tblr-border-color);
}

/* Hlavní nadpis */
.sidebar-tabler-scope .filter-title {
    font-size: 1.125rem;
    font-weight: 600;
    color: var(--tblr-body-color);
    margin-bottom: 1rem;
    padding-bottom: 0.5rem;
    border-bottom: 2px solid var(--tblr-primary);
}

/* Accordion styling */
.sidebar-tabler-scope .accordion-button {
    background-color: var(--tblr-primary);
    color: white;
    border: none;
    font-weight: 500;
}

.sidebar-tabler-scope .accordion-button:not(.collapsed) {
    background-color: var(--tblr-primary-hover);
    color: white;
    box-shadow: none;
}

.sidebar-tabler-scope .accordion-button:focus {
    box-shadow: 0 0 0 0.2rem rgba(187, 32, 24, 0.25);
}

.sidebar-tabler-scope .accordion-button::after {
    filter: brightness(0) invert(1); /* Bílé šipky */
}

/* Form controls */
.sidebar-tabler-scope .form-check-input:checked {
    background-color: var(--tblr-primary);
    border-color: var(--tblr-primary);
}

.sidebar-tabler-scope .form-check-input:focus {
    box-shadow: 0 0 0 0.2rem rgba(187, 32, 24, 0.25);
}

.sidebar-tabler-scope .form-select:focus {
    border-color: var(--tblr-primary);
    box-shadow: 0 0 0 0.2rem rgba(187, 32, 24, 0.25);
}

.sidebar-tabler-scope .form-control:focus {
    border-color: var(--tblr-primary);
    box-shadow: 0 0 0 0.2rem rgba(187, 32, 24, 0.25);
}

/* Buttons */
.sidebar-tabler-scope .btn-primary {
    background-color: var(--tblr-primary);
    border-color: var(--tblr-primary);
}

.sidebar-tabler-scope .btn-primary:hover {
    background-color: var(--tblr-primary-hover);
    border-color: var(--tblr-primary-hover);
}

.sidebar-tabler-scope .btn-outline-secondary:hover {
    color: var(--tblr-primary);
    background-color: transparent;
    border-color: var(--tblr-primary);
}

/* Badges pro počty */
.sidebar-tabler-scope .badge {
    font-size: 0.75rem;
}

/* Spacing */
.sidebar-tabler-scope .filter-section {
    margin-bottom: 1.5rem;
}

/* === Dropdown Menu Enhancements === */
.sidebar-tabler-scope .dropdown-menu {
    max-height: 600px;
    overflow-y: auto;
    overflow: visible; /* Allow both horizontal and vertical overflow for submenus */
    border: 1px solid #dee2e6;
    border-radius: 10px;
    box-shadow: 0 0.5rem 1rem rgba(0, 0, 0, 0.15);
    font-size: 0.875rem;
    display: none; /* Hidden by default */
    background-color: #fff; /* Solid white background */
    position: absolute;
    top: 100%;
    right: auto;
    z-index: 1000;
    min-width: max-content; /* Dynamic width based on content */
    width: auto;
    padding: 1em;
}

.sidebar-tabler-scope .dropdown-menu.show {
    display: block; /* Show when Bootstrap dropdown is active */
}

/* Remove list styling */
.sidebar-tabler-scope ul.dropdown-menu li {
    list-style: none;
    margin: 0; /* Remove default margin */
    padding: 0; /* Remove default padding */
}

.sidebar-tabler-scope ul.dropdown-menu li.dropend {
    position: relative;
}

.sidebar-tabler-scope .dropdown-item {
    padding: 0.4rem 1rem 0.8rem 0.8rem;
    font-size: 0.875rem;
    transition: all 0.15s ease-in-out;
    position: relative;
    white-space: nowrap; /* Prevent text wrapping */
    display: block; /* Ensure full block display */
    border: none; /* Remove any border that could cause overlap */
    margin: 0; /* No margin on the link itself */
    margin-right: 8px;
}

.sidebar-tabler-scope .dropdown-item:hover {
    background-color: var(--tblr-primary);
    color: white;
}

.sidebar-tabler-scope .dropdown-item:hover .badge {
    background-color: white !important;
    color: var(--tblr-primary) !important;
}

.sidebar-tabler-scope .dropdown-item.dropdown-toggle::after {
    float: right;
    margin-top: 0.85rem;
}

/* Dropdown divider spacing */
hr.dropdown-divider {
    margin: 7px 0 10px;
}

/* Let Bootstrap handle dropend positioning naturally */

/* Second-level dropdown submenu styling - prevent style bleeding from first level */
.sidebar-tabler-scope .dropdown-submenu {
    background-color: #fff;
    border: 1px solid #dee2e6;
    box-shadow: 0 0.125rem 0.25rem rgba(0, 0, 0, 0.075);
    position: absolute;
    left: calc(100% + 5px);
    top: -12px;
    z-index: 1001;
    min-width: 200px;
}

.sidebar-tabler-scope .dropdown-submenu .dropdown-item {
    font-size: 0.8125rem;
}

/* Badge styling in dropdown */
.sidebar-tabler-scope .dropdown-item .badge {
    font-size: 0.75rem;
}

/* === noUiSlider Tabler styling === */
.sidebar-tabler-scope .noUi-target {
    background: #e9ecef;
    border-radius: 4px;
    border: none;
    box-shadow: none;
    height: 6px;
    margin: 15px 0;
}

.sidebar-tabler-scope .noUi-connects {
    border-radius: 3px;
}

.sidebar-tabler-scope .noUi-connect {
    background: var(--tblr-primary, #206bc4);
}

.sidebar-tabler-scope .noUi-handle {
    background: #fff;
    border: 2px solid var(--tblr-primary, #206bc4);
    border-radius: 50%;
    box-shadow: 0 2px 6px rgba(32, 107, 196, 0.15);
    cursor: pointer;
    width: 20px;
    height: 20px;
}

.sidebar-tabler-scope .noUi-handle:before,
.sidebar-tabler-scope .noUi-handle:after {
    display: none;
}

.sidebar-tabler-scope .noUi-handle:hover {
    box-shadow: 0 4px 12px rgba(32, 107, 196, 0.25);
    transform: scale(1.1);
}

.sidebar-tabler-scope .noUi-handle:active {
    transform: scale(1.2);
    box-shadow: 0 4px 16px rgba(32, 107, 196, 0.35);
}

.sidebar-tabler-scope .noUi-state-tap .noUi-connect,
.sidebar-tabler-scope .noUi-state-tap .noUi-origin {
    transition: transform 0.3s;
}

.sidebar-tabler-scope .noUi-state-drag * {
    cursor: inherit !important;
}

/* === Filter Row Styling === */
.sidebar-tabler-scope .filter-row {
    transition: background-color 0.15s ease-in-out;
}

/* Dropdown container needs relative positioning */
.sidebar-tabler-scope .dropdown {
    position: relative;
}

.sidebar-tabler-scope .filter-row:hover {
    background-color: #e9ecef !important;
}

.sidebar-tabler-scope .filter-row svg {
    transition: transform 0.15s ease-in-out;
}

.sidebar-tabler-scope .dropdown.show .filter-row svg {
    transform: rotate(180deg);
}

/* === Selected Filter Tag === */
.sidebar-tabler-scope .selected-filter-tag {
    background-color: #f8f9fa !important;
    border-color: #dee2e6 !important;
    font-size: 0.875rem;
    gap: 0.5rem; /* Mezera mezi X a textem */
}

.sidebar-tabler-scope .selected-filter-tag .btn-close {
    padding: 0;
    width: 1rem;
    height: 1rem;
    font-size: 0.75rem;
    opacity: 0.8;
    background: transparent url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='%23bb2018'%3e%3cpath d='m.235 1.818 1.517-1.517L8 6.549l6.248-6.248 1.517 1.517L9.517 8l6.248 6.248-1.517 1.517L8 9.517 1.752 15.765.235 14.248 6.483 8 .235 1.752Z'/%3e%3c/svg%3e") center/0.75rem auto no-repeat;
}

.sidebar-tabler-scope .selected-filter-tag .btn-close:hover {
    opacity: 1;
    background-color: transparent;
}

/* Ensure filter tags don't interfere with dropdown */
.sidebar-tabler-scope .selected-filter-tag {
    z-index: 1;
    position: relative;
}

.sidebar-tabler-scope .filter-section:last-child {
    margin-bottom: 0;
}

.sidebar-tabler-scope .filter-section-title {
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--tblr-body-color);
    margin-bottom: 0.75rem;
    text-transform: uppercase;
}

/* Filter row title should not have margin when inside filter-row */
.sidebar-tabler-scope .filter-row .filter-section-title {
    margin-bottom: 0;
}
    letter-spacing: 0.025em;
}

/* Frequency range inputs styling */
.sidebar-tabler-scope .frequency-range-inputs .input-group {
    display: flex;
}

.sidebar-tabler-scope .frequency-range-inputs .input-group .form-control {
    flex: 1;
    margin: 0;
}

/* Remove number input arrows */
.sidebar-tabler-scope input[type="number"]::-webkit-outer-spin-button,
.sidebar-tabler-scope input[type="number"]::-webkit-inner-spin-button {
    -webkit-appearance: none;
    margin: 0;
}

.sidebar-tabler-scope input[type="number"] {
    -moz-appearance: textfield; /* Firefox */
}

/* Range inputs styling */
.sidebar-tabler-scope .range-inputs {
    display: flex;
    gap: 0.5rem;
    align-items: center;
}

.sidebar-tabler-scope .range-inputs .form-control {
    flex: 1;
}

.sidebar-tabler-scope .range-inputs .form-select {
    flex: 0 0 auto;
    width: auto;
    min-width: 70px;
}

/* Custom range slider styling */
.sidebar-tabler-scope .range-slider-container {
    padding: 1rem 0;
}

.sidebar-tabler-scope .range-slider-values {
    display: flex;
    justify-content: space-between;
    font-size: 0.875rem;
    color: #6c757d;
    margin-top: 0.5rem;
}

/* Action buttons container */
.sidebar-tabler-scope .filter-actions {
    display: flex;
    gap: 0.5rem;
    margin-top: 1.5rem;
    padding-top: 1rem;
    border-top: 1px solid var(--tblr-border-color);
}

.sidebar-tabler-scope .filter-actions .btn {
    flex: 1;
}

/* Responsive */
@media (max-width: 991.98px) {
    .sidebar-tabler-scope .tabler-filters {
        margin-bottom: 1rem;
    }
    
    .sidebar-tabler-scope .filter-actions {
        flex-direction: column;
    }
    
    .sidebar-tabler-scope .filter-actions .btn {
        width: 100%;
    }
}

/* Production styling */
.sidebar-tabler-scope {
    box-shadow: 0 0.125rem 0.25rem rgba(0, 0, 0, 0.075);
    margin: 0 0 1.5rem 0;
}

/* Enhanced accordion styling */
.sidebar-tabler-scope .accordion-item {
    border: 1px solid var(--tblr-border-color);
    border-radius: 0.375rem;
    margin-bottom: 0.5rem;
}

.sidebar-tabler-scope .accordion-item:last-child {
    margin-bottom: 0;
}

/* Badge hover effects */
.sidebar-tabler-scope .badge:hover {
    transform: scale(1.1);
    transition: transform 0.2s ease;
}

/* Focus states for better accessibility */
.sidebar-tabler-scope .form-check-input:focus,
.sidebar-tabler-scope .form-control:focus,
.sidebar-tabler-scope .form-select:focus {
    box-shadow: 0 0 0 0.2rem rgba(187, 32, 24, 0.25);
    border-color: var(--tblr-primary);
}

/* Reference Sidebar Styling - pro vizuální porovnání */
.reference-sidebar-wrapper {
    position: relative;
    margin-top: 2rem !important;
    padding: 1rem;
    background: #f8f9fa;
    border: 2px dashed #6c757d;
    border-radius: 0.5rem;
    /* opacity: 0.8; - odstraněno pro lepší čitelnost */
}

.reference-sidebar-wrapper::before {
    content: "REFERENCE";
    position: absolute;
    top: -10px;
    left: 15px;
    background: #6c757d;
    color: white;
    padding: 2px 8px;
    font-size: 10px;
    font-weight: bold;
    border-radius: 2px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.reference-sidebar-header {
    margin-bottom: 1rem;
    padding-bottom: 0.5rem;
    border-bottom: 1px solid #dee2e6;
}

.reference-sidebar-header h6 {
    margin: 0;
    color: #6c757d !important;
    font-size: 0.875rem;
    font-weight: 600;
}

.reference-sidebar-header small {
    font-size: 0.75rem;
    color: #868e96 !important;
    font-style: italic;
}

.reference-sidebar-content {
    position: relative;
}

/* Zmenšit reference sidebar pro úsporu místa */
.reference-sidebar-wrapper .side-filter {
    transform: scale(0.9);
    transform-origin: top left;
    margin-bottom: -5%;
}

/* Ponechat plnou opacity pro lepší čitelnost při porovnání */
.reference-sidebar-wrapper .side-filter * {
    /* opacity: 0.7; - odstraněno pro lepší čitelnost */
}

.reference-sidebar-wrapper .side-filter input,
.reference-sidebar-wrapper .side-filter select,
.reference-sidebar-wrapper .side-filter button,
.reference-sidebar-wrapper .side-filter a {
    pointer-events: none; /* Zakázat interakce */
    cursor: not-allowed;
}

/* Speciální styling pro reference elementy */
.reference-sidebar-wrapper .side-filter__title::after {
    content: " (Original)";
    font-size: 0.75em;
    color: #6c757d;
    font-style: italic;
}

/* Mobile responsive pro reference */
@media (max-width: 991.98px) {
    .reference-sidebar-wrapper {
        margin-top: 1rem !important;
        padding: 0.75rem;
    }
    
    .reference-sidebar-wrapper .side-filter {
        transform: scale(0.85);
    }
}
