/* Timeline Stages and Markers Styling */

/* Ensure timeline has proper height for markers */
#videoTimeline {
    position: relative;
    min-height: 8px;
}

/* Data point markers styling */
#timelineMarkers .absolute {
    transition: all 0.2s ease;
    cursor: pointer;
}

#timelineMarkers .absolute:hover {
    width: 2px !important;
    background-color: #60A5FA !important;
    box-shadow: 0 0 8px rgba(96, 165, 250, 0.6);
}

/* Conversation stage segments */
.conversation-stage {
    position: relative;
    height: 100%;
}

/* Make the timeline more prominent on hover */
#videoTimeline:hover {
    height: 16px !important;
}

/* Quick jump buttons animation */
.quick-jump-button {
    transition: all 0.2s ease;
}

.quick-jump-button:hover {
    transform: translateX(4px);
}

/* Side-by-side grid responsive adjustment */
@media (max-width: 1280px) {
    .playback-controls .grid-cols-2 {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
}

/* Ensure stages legend is readable */
.conversation-stages-legend {
    backdrop-filter: blur(8px);
    background: rgba(31, 41, 55, 0.5);
    border-radius: 0.375rem;
    padding: 0.75rem;
}

/* Data points section styling */
.data-points-section {
    backdrop-filter: blur(8px);
    background: rgba(31, 41, 55, 0.5);
    border-radius: 0.375rem;
    padding: 0.75rem;
}

/* Timeline stage hover effects */
#videoTimeline .bg-green-600:hover,
#videoTimeline .bg-blue-600:hover,
#videoTimeline .bg-purple-600:hover,
#videoTimeline .bg-orange-600:hover,
#videoTimeline .bg-yellow-600:hover,
#videoTimeline .bg-gray-600:hover {
    opacity: 0.8 !important;
}

/* Enhanced timeline tooltip for stages */
#videoTimeline:hover::after {
    content: attr(data-stage);
    position: absolute;
    bottom: 100%;
    left: var(--hover-position, 0%);
    transform: translateX(-50%) translateY(-4px);
    background: rgba(0, 0, 0, 0.9);
    color: white;
    padding: 4px 8px;
    border-radius: 4px;
    font-size: 11px;
    white-space: nowrap;
    pointer-events: none;
    z-index: 30;
    opacity: 0;
    transition: opacity 0.2s;
}

#videoTimeline:hover[data-stage]::after {
    opacity: 1;
}