/* =====================================================
   Scrollbar
   ===================================================== */
::-webkit-scrollbar { width: 8px; }
::-webkit-scrollbar-track { background: #f1f1f1; }
::-webkit-scrollbar-thumb { background: #cbd5e1; border-radius: 4px; }
::-webkit-scrollbar-thumb:hover { background: #94a3b8; }

/* =====================================================
   Dialog backdrop
   ===================================================== */
dialog::backdrop {
    background: rgba(15, 23, 42, 0.6);
    backdrop-filter: blur(4px);
}

/* =====================================================
   Text shadow utility
   ===================================================== */
.text-shadow-sm {
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.1);
}

/* =====================================================
   Select — placeholder (prázdná volba) vypadá jako placeholder
   ===================================================== */
select:has(option[value=""]:checked) {
    color: #4b5563;
}

/* =====================================================
   Range slider — používá se v modal-hypo
   ===================================================== */
input[type="range"] {
    -webkit-appearance: none;
    width: 100%;
    background: transparent;
}

input[type="range"]::-webkit-slider-thumb {
    -webkit-appearance: none;
    height: 20px;
    width: 20px;
    border-radius: 50%;
    background: #562f83;
    cursor: pointer;
    margin-top: -8px;
    box-shadow: 0 0 0 4px rgba(86, 47, 131, 0.2);
}

input[type="range"]::-moz-range-thumb {
    height: 20px;
    width: 20px;
    border-radius: 50%;
    background: #562f83;
    cursor: pointer;
    border: none;
    box-shadow: 0 0 0 4px rgba(86, 47, 131, 0.2);
}

input[type="range"]::-webkit-slider-runnable-track {
    width: 100%;
    height: 4px;
    cursor: pointer;
    background: #e5e7eb;
    border-radius: 2px;
}

input[type="range"]:focus::-webkit-slider-thumb {
    box-shadow: 0 0 0 6px rgba(86, 47, 131, 0.3);
}

/* =====================================================
   Scrollbar hide utility — používá se v modalech
   ===================================================== */
.scrollbar-hide::-webkit-scrollbar { display: none; }
.scrollbar-hide {
    -ms-overflow-style: none;
    scrollbar-width: none;
}

/* Dialog — centrování na obrazovce ve všech prohlížečích */
dialog {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    margin: 0;
    max-height: 90vh;
    overflow: visible;
}