/* Silence Detector Styles */

/* Markers List */
.markers-list {
    max-height: 400px;
    overflow-y: auto;
    border: 1px solid rgba(0, 0, 0, 0.1);
    border-radius: 8px;
    background-color: rgba(0, 0, 0, 0.02);
}

[data-bs-theme="dark"] .markers-list {
    border-color: rgba(255, 255, 255, 0.1);
    background-color: rgba(255, 255, 255, 0.02);
}

.marker-item {
    padding: 12px 15px;
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: all 0.2s ease;
}

.marker-item:hover {
    background-color: rgba(5, 44, 101, 0.05);
}

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

[data-bs-theme="dark"] .marker-item {
    border-bottom-color: rgba(255, 255, 255, 0.05);
}

[data-bs-theme="dark"] .marker-item:hover {
    background-color: rgba(5, 44, 101, 0.15);
}

.marker-number {
    font-weight: 700;
    color: var(--bs-primary-text-emphasis);
    min-width: 40px;
}

.marker-time {
    font-family: 'Courier New', monospace;
    font-weight: 600;
    color: #495057;
}

[data-bs-theme="dark"] .marker-time {
    color: #adb5bd;
}

.marker-duration {
    font-size: 0.9rem;
    color: #6c757d;
}

/* Timeline Canvas */
#timelineCanvas {
    width: 100%;
    height: auto;
    display: block;
    border-radius: 8px;
    background-color: rgba(0, 0, 0, 0.02);
    border: 1px solid rgba(0, 0, 0, 0.1);
}

[data-bs-theme="dark"] #timelineCanvas {
    background-color: rgba(255, 255, 255, 0.02);
    border-color: rgba(255, 255, 255, 0.1);
}

/* Range Sliders */
#threshold,
#minDuration {
    height: 8px;
    border-radius: 4px;
    background: #e9ecef;
    outline: none;
    -webkit-appearance: none;
    appearance: none;
    border: 1px solid #ced4da;
}

#threshold::-webkit-slider-track,
#minDuration::-webkit-slider-track {
    height: 8px;
    border-radius: 4px;
    background: linear-gradient(to right, #e9ecef 0%, var(--bs-primary-text-emphasis) 100%);
    border: none;
}

#threshold::-moz-range-track,
#minDuration::-moz-range-track {
    height: 8px;
    border-radius: 4px;
    background: linear-gradient(to right, #e9ecef 0%, var(--bs-primary-text-emphasis) 100%);
    border: 1px solid #ced4da;
}

#threshold::-webkit-slider-thumb,
#minDuration::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background: var(--bs-primary-text-emphasis);
    cursor: pointer;
    border: 2px solid white;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.2);
    transition: all 0.2s ease;
}

#threshold::-moz-range-thumb,
#minDuration::-moz-range-thumb {
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background: var(--bs-primary-text-emphasis);
    cursor: pointer;
    border: 2px solid white;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.2);
    transition: all 0.2s ease;
}

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

    .marker-item {
        flex-direction: column;
        align-items: flex-start;
        gap: 8px;
    }
}
