/* Playback Controls CSS */

/* Timeline Styles */
#videoTimeline {
    position: relative;
    background-color: #374151;
    height: 8px;
    border-radius: 9999px;
    overflow: visible; /* Changed from hidden to show seek handle */
    cursor: pointer;
    transition: height 0.2s ease;
}

#videoTimeline:hover {
    height: 12px;
}

/* Buffer progress */
.buffer-progress {
    position: absolute;
    top: 0;
    left: 0;
    height: 100%;
    background-color: rgba(156, 163, 175, 0.3);
    border-radius: 9999px;
    pointer-events: none;
}

/* Video progress bar */
#videoProgress {
    position: absolute;
    top: 0;
    left: 0;
    height: 100%;
    background-color: #3B82F6;
    border-radius: 9999px;
    pointer-events: none;
    opacity: 0.9;
    transition: width 0.1s ease-out;
}

/* Seek handle - ALWAYS VISIBLE */
#seekHandle {
    position: absolute;
    top: 50%;
    background-color: #ffffff;
    height: 16px;
    width: 16px;
    border-radius: 50%;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
    transform: translate(-50%, -50%);
    opacity: 1 !important; /* Always visible */
    pointer-events: none;
    z-index: 10;
    transition: transform 0.1s ease-out, box-shadow 0.1s ease-out;
}

#videoTimeline:hover #seekHandle {
    transform: translate(-50%, -50%) scale(1.2);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.4);
}

/* Timeline tooltip */
.timeline-tooltip {
    position: absolute;
    bottom: 20px;
    transform: translateX(-50%);
    background-color: rgba(31, 41, 55, 0.95);
    color: #ffffff;
    padding: 4px 8px;
    border-radius: 4px;
    font-size: 0.75rem;
    font-family: monospace;
    white-space: nowrap;
    pointer-events: none;
    display: none;
    z-index: 20;
}

.timeline-tooltip::after {
    content: '';
    position: absolute;
    top: 100%;
    left: 50%;
    transform: translateX(-50%);
    border: 4px solid transparent;
    border-top-color: rgba(31, 41, 55, 0.95);
}

/* Timeline markers */
#timelineMarkers > div {
    position: absolute;
    height: 100%;
    width: 2px;
    background-color: rgba(255, 255, 255, 0.5);
    pointer-events: none;
}

#timelineMarkers > div::after {
    content: attr(title);
    position: absolute;
    bottom: 100%;
    left: 50%;
    transform: translateX(-50%);
    background-color: rgba(31, 41, 55, 0.9);
    color: #ffffff;
    padding: 2px 6px;
    border-radius: 3px;
    font-size: 0.625rem;
    white-space: nowrap;
    opacity: 0;
    transition: opacity 0.2s ease;
    margin-bottom: 4px;
    pointer-events: none;
}

#videoTimeline:hover #timelineMarkers > div::after {
    opacity: 1;
}

/* Playback controls button styling */
.playback-controls button {
    transition: all 0.2s ease;
}

.playback-controls button:hover {
    transform: translateY(-1px);
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

.playback-controls button:active {
    transform: translateY(0);
    box-shadow: none;
}

/* Speed button specific styling */
#speedText {
    font-family: monospace;
    font-size: 0.875rem;
    min-width: 2rem;
    display: inline-block;
}

/* Stages legend */
#stagesLegend {
    backdrop-filter: blur(8px);
    transition: opacity 0.2s ease;
}

/* Data points section buttons */
.data-points-section button {
    position: relative;
    overflow: hidden;
}

.data-points-section button::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 0;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(59, 130, 246, 0.1), transparent);
    transition: width 0.3s ease;
}

.data-points-section button:hover::before {
    width: 100%;
}

/* Conversation stage colors in timeline */
.bg-green-600 { background-color: #059669; }
.bg-blue-600 { background-color: #2563EB; }
.bg-purple-600 { background-color: #7C3AED; }
.bg-orange-600 { background-color: #EA580C; }
.bg-yellow-600 { background-color: #D97706; }
.bg-gray-600 { background-color: #4B5563; }