


/* Add to your existing CSS or create conversation.css */


.ui-interruption {
    outline: 3px solid #ffc107;
    animation: interrupt-flash 0.5s ease-in-out;
}


/* Hide visual mode controls when conversation is active */
body.conversation-mode-active #pauseResumeBtn {
    display: none !important;
}

body.conversation-mode-active .document-navigation {
    display: none !important;
}

body.conversation-mode-active .playback-controls {
    display: none !important;
}

/* Hide all control buttons except conversation toggle, upload, and language */
body.conversation-mode-active .control-buttons > button:not(#conversationToggle):not(#uploadBtn):not(#languageBtn) {
    display: none !important;
}

/* Style the conversation toggle button */
.conversation-toggle {
    background-color: #007bff;
    color: white;
    border: 2px solid #0056b3;
    padding: 10px 20px;
    border-radius: 5px;
    font-size: 16px;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    transition: all 0.3s ease;
}

.conversation-toggle:hover {
    background-color: #0056b3;
    box-shadow: 0 2px 8px rgba(0, 123, 255, 0.3);
}

/* Active state - red button for stopping */
.conversation-toggle.conversation-active {
    background-color: #dc3545;
    border-color: #c82333;
}

.conversation-toggle.conversation-active:hover {
    background-color: #c82333;
    box-shadow: 0 2px 8px rgba(220, 53, 69, 0.3);
}

/* Conversation status indicator */
#conversation-status {
    margin-top: 10px;
    font-size: 14px;
    color: #6c757d;
    font-style: italic;
    min-height: 20px;
}

/* Animate status when active */
#conversation-status:not(:empty) {
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.7; }
}

/* Hide specific buttons that shouldn't show in conversation mode */
body.conversation-mode-active #sectionSummaryBtn,
body.conversation-mode-active #sectionFullTextBtn,
body.conversation-mode-active #prevSectionBtn,
body.conversation-mode-active #nextSectionBtn,
body.conversation-mode-active #documentSummaryBtn,
body.conversation-mode-active #listSectionsBtn,
body.conversation-mode-active #voiceCommandBtn,
body.conversation-mode-active #testTTSBtn {
    display: none !important;
}

/* Ensure conversation toggle stays visible */
body.conversation-mode-active #conversationToggle {
    display: inline-flex !important;
}

/* Optional: Add visual feedback for mode transition */
body.conversation-mode-active {
    transition: all 0.3s ease;
}

/* Optional: Style for screen reader announcements */
#conversation-status-sr {
    position: absolute;
    left: -10000px;
    width: 1px;
    height: 1px;
    overflow: hidden;
}