.audio-highlights-sidebar {
    position: fixed;
    top: 0;
    right: -400px;
    width: 400px;
    height: 100vh;
    background: white;
    border-left: 2px solid #dee2e6;
    box-shadow: -2px 0 5px rgba(0,0,0,0.1);
    z-index: 1050;
    transition: right 0.3s ease;
    overflow-y: auto;
}

.audio-highlights-sidebar.open {
    right: 0;
}

.audio-highlights-sidebar .sidebar-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px;
    border-bottom: 1px solid #dee2e6;
    background-color: #f8f9fa;
}

.audio-highlights-sidebar .sidebar-header h5 {
    margin: 0;
    color: #495057;
}

.audio-highlights-sidebar .sidebar-actions {
    display: flex;
    align-items: center;
}

.sidebar-content {
    padding: 15px;
}

.highlight-item {
    margin-bottom: 15px;
}

.highlight-text {
    margin-bottom: 10px;
    padding: 10px;
    background: #f8f9fa;
    border-radius: 5px;
    border-left: 4px solid #007bff;
}

.highlight-audio {
    margin-bottom: 10px;
}

.highlight-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.recording-controls {
    text-align: center;
}

.recording-controls button {
    margin: 0 5px;
}

.selected-text-display {
    margin-bottom: 15px;
}

#selected-text-preview {
    max-height: 100px;
    overflow-y: auto;
    font-style: italic;
}

#recording-status {
    text-align: center;
    font-weight: bold;
}

#waveform-container {
    text-align: center;
}

/* Audio Highlight Tooltip */
.audio-highlight-tooltip {
    background: white;
    border: 1px solid #ddd;
    border-radius: 4px;
    padding: 8px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.15);
    font-size: 12px;
    white-space: nowrap;
    animation: fadeIn 0.2s ease-in;
}

.audio-highlight-tooltip button {
    border: none;
    padding: 4px 8px;
    font-size: 11px;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(-5px); }
    to { opacity: 1; transform: translateY(0); }
}

/* Audio Highlight Indicators */
.audio-highlight-indicator {
    display: inline-block;
    transition: opacity 0.2s ease;
}

.audio-highlight-indicator:hover {
    opacity: 1 !important;
    transform: scale(1.2);
}

/* Existing Audio Highlights in Text */
.ql-editor .ql-audio-highlight {
    background-color: #e3f2fd !important;
    color: #1976d2 !important;
    border-bottom: 2px dotted #1976d2;
    cursor: pointer;
    transition: background-color 0.2s ease;
    position: relative;
}

.ql-editor .ql-audio-highlight:hover {
    background-color: #bbdefb !important;
    border-bottom: 2px solid #1976d2;
}

/* Add a subtle audio indicator using CSS pseudo-element */
.ql-editor .ql-audio-highlight::after {
    content: "🎵";
    font-size: 10px;
    opacity: 0.6;
    margin-left: 2px;
    vertical-align: super;
    transition: opacity 0.2s ease;
}

.ql-editor .ql-audio-highlight:hover::after {
    opacity: 1;
}

/* Progressive Disclosure Toggle */
.audio-highlights-toggle {
    position: fixed;
    top: 50%;
    right: 0;
    transform: translateY(-50%);
    background: #1976d2;
    color: white;
    border: none;
    border-radius: 8px 0 0 8px;
    padding: 12px 8px;
    font-size: 14px;
    cursor: pointer;
    z-index: 999;
    transition: all 0.3s ease;
    box-shadow: -2px 0 8px rgba(0,0,0,0.2);
    writing-mode: vertical-rl;
    text-orientation: mixed;
}

.audio-highlights-toggle:hover {
    background: #1565c0;
    transform: translateY(-50%) translateX(-5px);
}

.audio-highlights-toggle.sidebar-open {
    right: 320px;
    background: #d32f2f;
}

.audio-highlights-toggle.sidebar-open:hover {
    background: #c62828;
}

/* Keyboard shortcut hints */
.keyboard-hint {
    font-size: 10px;
    opacity: 0.7;
    margin-top: 4px;
    font-style: italic;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .audio-highlights-sidebar {
        width: 100%;
        right: -100%;
    }
    
    .audio-highlights-toggle.sidebar-open {
        right: 0;
    }
    
    .audio-highlight-tooltip {
        font-size: 11px;
        padding: 6px;
    }
}

/* Custom Modal Styles */
.audio-recording-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1050;
    display: flex;
    align-items: center;
    justify-content: center;
}

.modal-backdrop {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    z-index: 1040;
}

.modal-dialog {
    position: relative;
    width: 90%;
    max-width: 500px;
    z-index: 1050;
}

.modal-content {
    background: white;
    border-radius: 8px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
    overflow: hidden;
}

.modal-header {
    padding: 15px;
    border-bottom: 1px solid #dee2e6;
    background: #f8f9fa;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.modal-header .modal-title {
    margin: 0;
    color: #495057;
    font-size: 18px;
    font-weight: 500;
}

.modal-header .close {
    background: none;
    border: none;
    font-size: 24px;
    cursor: pointer;
    color: #6c757d;
    padding: 0;
    width: 30px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.modal-header .close:hover {
    color: #000;
}

.modal-body {
    padding: 20px;
}

body.modal-open {
    overflow: hidden;
} 