.word-highlight {
    position: absolute;
    background-color: rgba(249, 115, 22, 0.3);
    transition: all 0.3s ease;
    z-index: 1;
    border-radius: 4px;
    pointer-events: none;
}

.word {
    position: relative;
    transition: background-color 0.2s ease-in-out;
    padding: 2px 4px;
    border-radius: 4px;
    cursor: pointer;
}

.word:hover {
    background-color: #E5E7EB;
}

.speaker-label {
    font-size: 1.5rem;
    color: #E5E7EB;
    opacity: 0.5;
    transition: opacity 0.3s ease;
    margin-bottom: 0.5rem;
}

.speaker-label-active {
    color: #232325;

}

.thin-scrollbar {
    scrollbar-width: thin;
    scrollbar-color: #F97316 #E5E7EB;
}

.thin-scrollbar::-webkit-scrollbar {
    width: 8px;
}

.thin-scrollbar::-webkit-scrollbar-track {
    background: #E5E7EB;
}

.thin-scrollbar::-webkit-scrollbar-thumb {
    background-color: #F97316;
    border-radius: 4px;
    border: 2px solid #E5E7EB;
}

/* Sidebar Styles */
.podcast-item {
    transition: all 0.2s ease-in-out;
}

.podcast-item:hover {
    transform: translateX(4px);
}

.podcast-item.active a {
    background-color: rgba(249, 115, 22, 0.1);
    border-left-color: #F97316;
}

.podcast-item a {
    border-left: 4px solid transparent;
    transition: all 0.2s ease-in-out;
}

/* Tooltip styles */
[data-tooltip] {
    position: relative;
}

[data-tooltip]:hover::after {
    content: attr(data-tooltip);
    position: absolute;
    bottom: 100%;
    left: 50%;
    transform: translateX(-50%);
    padding: 4px 8px;
    background-color: rgba(0, 0, 0, 0.8);
    color: white;
    font-size: 12px;
    border-radius: 4px;
    white-space: nowrap;
    pointer-events: none;
    margin-bottom: 4px;
    z-index: 50;
}

/* Font size controls */
.font-size-controls button {
    font-family: system-ui;
    font-weight: 500;
    min-width: 28px;
}

/* Transcript text */
.transcript-text {
    font-size: var(--transcript-font-size, 1rem);
    transition: font-size 0.2s ease-in-out;
}

/* Dark mode transition */
* {
    transition-property: background-color, border-color, color, fill, stroke;
    transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1);
    transition-duration: 200ms;
}

/* Scrollbar styles */
.thin-scrollbar {
    scrollbar-width: thin;
    scrollbar-color: rgba(156, 163, 175, 0.5) transparent;
}

.thin-scrollbar::-webkit-scrollbar {
    width: 6px;
}

.thin-scrollbar::-webkit-scrollbar-track {
    background: transparent;
}

.thin-scrollbar::-webkit-scrollbar-thumb {
    background-color: rgba(156, 163, 175, 0.5);
    border-radius: 3px;
}

.dark .thin-scrollbar::-webkit-scrollbar-thumb {
    background-color: rgba(75, 85, 99, 0.5);
}

/* Ensure WaveSurfer colors work in dark mode */
.dark #waveform wave {
    background-color: #1f2937 !important;
}

.dark #waveform wave > wave {
    background-color: #4f46e5 !important;
}

/* Dropdown menu z-index fix */
#dropdownMenu {
    z-index: 1000;
}

/* Update highlight color for better dark mode visibility */
.highlight {
    background-color: #4237f0 !important;
    color: white !important;
}

/* Add to your existing styles */
@media (max-width: 1024px) {
    #sidebar {
        position: fixed;
        top: 0;
        left: 0;
        height: 100vh;
        width: 320px;
        max-width: 80vw;
    }
    
    #sidebarToggle {
        transition: transform 0.3s ease-in-out;
    }
    
    #sidebarToggle.active {
        transform: rotate(90deg);
    }
}

/* Prevent content scroll when mobile menu is open */
body.overflow-hidden {
    overflow: hidden;
}
