/* Custom Styles */
body {
    padding-bottom: 50px;
}

#seekBarWrapper {
    position: relative;
    margin-left: 5px;
    margin-right: 5px;
    min-height: 20px;
    display: flex;
    align-items: center;
}

#seekBar {
    cursor: pointer;
    position: relative;
    /* z-index for the input element itself. Thumb is often separate. */
    z-index: 10;
    /* Make track background transparent (helps markers show through) */
    background: transparent;
    margin: 0;
    width: 100%;
    display: block;
}

#bookmarkMarkersContainer {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    pointer-events: none; /* Keep clicks going to seek bar */
    /* Position container slightly above default track plane */
    z-index: 11;
    /* Remove debug background/border */
}

.bookmark-marker {
    position: absolute;
    /* Original, less obtrusive style */
    width: 3px;
    height: 10px; /* Adjust height to desired visibility */
    background-color: #ffc107; /* Bootstrap warning color */
    border: 1px solid #e0a800;
    border-radius: 1px;

    /* Center marker horizontally */
    transform: translateX(-50%);
    /* Center marker vertically in container */
    top: 50%;
    margin-top: -5px; /* Half of the height */

    pointer-events: auto; /* Allow hover/clicks on marker */
    cursor: help; /* Indicate hover info */

    /* --- Z-INDEX CHANGE --- */
    /* Position markers above container/track, but below thumb */
    z-index: 12;
}

/* --- Optional: Explicitly style thumb Z-index --- */
/* This helps ensure the thumb slides OVER the markers */
/* Needs browser prefixes */

#seekBar::-webkit-slider-thumb {
    position: relative; /* Required for z-index on pseudo-elements */
    z-index: 15; /* Higher than markers */
    /* Reset appearance if needed, Bootstrap might handle this */
    /* appearance: none; */
}

#seekBar::-moz-range-thumb {
    position: relative;
    z-index: 15;
    /* Reset appearance if needed */
    /* appearance: none; */
}

#seekBar::-ms-thumb {
    position: relative;
    z-index: 15;
    /* Reset appearance if needed */
    /* appearance: none; */
}

/* --- Bookmark List Item Styling --- */
/* (Keep previous styles for list items) */
.bookmark-item {
    cursor: default;
    display: flex;
    justify-content: space-between;
    align-items: center;
}
.bookmark-content {
    cursor: pointer;
    flex-grow: 1;
}
.bookmark-content:hover {
    background-color: #f8f9fa;
}
.bookmark-name {
    font-weight: 500;
}
.bookmark-time {
    font-size: 0.9em;
    color: #6c757d;
    margin-left: 10px;
}
.delete-bookmark-btn {
    margin-left: 15px;
    flex-shrink: 0;
}

/* Ensure controls are usable on smaller screens */
#controls .d-flex {
    flex-wrap: wrap;
}
#controls .form-range {
    min-width: 150px;
}

/* Add some spacing for the import area if needed */
#importExportArea {
    margin-top: 2rem; /* Ensure enough space above */
}

/* Make sure textarea is reasonably sized on mobile */
#importData {
    max-height: 150px; /* Limit excessive height */
}
