/* Styles for the RealTimeChatMessages component */

/*:root {
    --primary-color: #53AF31;
    --background-color: #ffffff;
    --background-button-color: #53AF31;
    --border-color: #e0e0e0;
    --text-color: #333333;
    --link-color: #53AF31;
    --error-color: #ff0000;

    --primary-darkmode-color: #53AF31;
    --background-darkmode-color: #ffffff;
    --background-darkmode-button-color: #53AF31;
    --border-darkmode-color: #e0e0e0;
    --text-darkmode-color: #333333;
    --link-darkmode-color: #53AF31;
    --error-darkmode-color: #ff0000;
}


.chat-messages-container {
    display: flex;
    flex-direction: column;
    gap: 2px;
    padding: 6px 10px;
    max-height: calc(100vh - 400px);*/ /* Reduced to accommodate speech component */
    /*overflow-y: auto;
    scroll-behavior: smooth;
}

.empty-chat {
    display: flex;
    justify-content: center;
    align-items: center;
    height: 200px;
}

.empty-chat-message {
    text-align: center;
    color: #888;
}

.empty-chat-title {
    font-size: 1.2em;
    font-weight: 500;
    margin-bottom: 8px;
}

.empty-chat-subtitle {
    font-size: 0.9em;
}

#scroll-target {
    height: 1px;
}

.speech-header {
    margin-bottom: 15px;
}

.speech-header h4 {
    font-size: 1.1rem;
    margin-bottom: 8px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.speech-instructions {
    font-size: 0.85rem;
    color: #666;
    margin-bottom: 10px;
}

[data-theme='dark'] .speech-instructions {
    color: #aaa;
}

.speech-status {
    font-size: 0.9rem;
    color: #666;
    margin-top: 10px;
    height: 20px;
    display: flex;
    align-items: center;
    gap: 5px;
}

.speech-status.active {
    color: #28a745;
}

[data-theme='dark'] .speech-status {
    color: #aaa;
}

[data-theme='dark'] .speech-status.active {
    color: #5cb85c;
}

.speech-to-text-container {
    background-color: #f9f9f9;
    border-radius: 8px;
    border: 1px solid #eaeaea;
    padding: 15px 15px 15px 15px;
    margin-top: 10px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.05);
}*/

/* Apply a different style when dark theme is active */
/*[data-theme='dark'] .speech-to-text-container {
    background-color: #2a2a2a;
    border-color: #444;
    box-shadow: 0 2px 5px rgba(0,0,0,0.2);
}

.transcription-controls {
    display: flex;
    gap: 5px;
    justify-content: flex-end;
    margin-top: 2px;
}

.transcription-controls button {
    display: flex;
    align-items: center;
    gap: 5px;
    padding: 6px 12px;
    border-radius: 4px;
    font-weight: 500;
    transition: all 0.2s ease;
}

.transcription-controls button i {
    font-size: 14px;
}

.transcription-controls button:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}*/

/* Help text for keyboard shortcuts */
/*.speech-to-text-container .prompt-help-text {
    font-size: 0.7em;
    color: #666;
    float: right;
    margin-bottom: 4px;
    display: block;
}

[data-theme='dark'] .speech-to-text-container .prompt-help-text {
    color: #aaa;
}*/

/* Processing indicator styles */
/*.processing-indicator {
    display: flex;
    align-items: center;
    gap: 8px;
    color: #666;
    font-weight: 500;
    padding: 6px 12px;
    background: #f0f0f0;
    border-radius: 4px;
    border: 1px solid #ddd;
}

[data-theme='dark'] .processing-indicator {
    background: #333;
    color: #ccc;
    border-color: #444;
}

.processing-indicator i {
    color: #53AF31;
}

[data-theme='dark'] .processing-indicator i {
    color: #6BC346;
}*/

/* Textarea styling now comes from the unified styling in radzen-override.css */

/* Microphone button styling adjustments */
/*:host ::deep .microphone-button {
    background-color: #f0f0f0;
    border-color: #ccc;
}

[data-theme='dark'] :host ::deep .microphone-button {
    background-color: #444;
    border-color: #555;
}

:host ::deep .microphone-button.active {
    background-color: #d9534f;
    border-color: #d43f3a;
}*/

/* Responsive adjustments */
/*@media (max-width: 768px) {
    .speech-to-text-container {
        padding: 10px;
    }
    
    .transcription-controls {
        flex-direction: column;
        align-items: stretch;
    }
    
    .transcription-controls button {
        width: 100%;
    }
}*/


/* [data-theme='dark']  ToDo*/
/*.transcription-controls .content-block-left {
    order: 0;
}

.content-block-controls {
    display: flex;
    gap: 5px;
    flex: 1;*/ /* Takes remaining space */
    /*justify-content: flex-start;*/ /* Aligns buttons left within this container */
/*}

.content-block {
    color: white;
    background-color: #53AF31;
}

..speech-to-text-container:focus {
    outline: none;
}

.stored-content {
    background-color: #f8f9fa;
    border: 1px solid #dee2e6;
    border-radius: 4px;
    padding: 10px;
    margin-bottom: 10px;
}

.stored-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 5px 0;
    border-bottom: 1px solid #eee;
}

.stored-item:last-child {
    border-bottom: none;
}

.stored-item-info {
    flex-grow: 1;
    font-size: 0.9em;
}

.content-block-wrapper:hover .content-block-delete {
    display: flex;
}

.content-block-delete:hover {
    background-color: #c82333;
}

.content-block-wrapper:hover .content-block-delete {
    opacity: 1;
    visibility: visible;
}

.content-block-delete:hover {
    background-color: #c82333;
}

.content-block-delete i {
    line-height: 1;
}

.content-block-wrapper {
    position: relative;
    display: inline-block;
}

.content-block-wrapper:hover .content-block-delete,
.content-block-wrapper .content-block-delete {
    position: absolute;
    top: -8px;
    left: -8px;
    width: 16px;
    height: 22px;
    border-radius: 50%;
    background-color: #333;
    color: #dee2e6;
    font-size: 10px;
    opacity: 0;
    visibility: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 1000;
    transition: opacity 0.2s ease, visibility 0.2s ease;
    border: 1px solid #444;
    box-sizing: border-box;
    text-indent: -1px;
}

.content-block-wrapper:hover .content-block-delete {
    opacity: 1;
    visibility: visible;
}

.content-block-delete:hover {
    background-color: rgba(0, 0, 0, 0.9);
}

.btn.content-block-left:hover {
    color: white;
}

textarea#transcription.file-drag-over,
textarea.form-control.file-drag-over {
    outline: 3px dashed #0066cc;
    outline-offset: -3px;
    background-color: rgba(0, 102, 204, 0.15);
    transition: all 0.3s ease;
    box-shadow: 0 0 10px rgba(0, 102, 204, 0.3);
}

[data-theme='dark'] textarea#transcription.file-drag-over,
[data-theme='dark'] textarea.form-control.file-drag-over {
    outline-color: #0d6efd;
    background-color: rgba(13, 110, 253, 0.2);
    box-shadow: 0 0 10px rgba(13, 110, 253, 0.4);
}*/