/* Conversation Transcription Display Styles */

/* Streaming message styles */
.conversation-transcription-message.streaming {
    opacity: 0.8;
    position: relative;
}

.conversation-transcription-message.streaming::after {
    content: '...';
    animation: streaming-dots 1.5s infinite;
    margin-left: 4px;
    color: #4CAF50;
}

@keyframes streaming-dots {
    0%, 20% { opacity: 0; }
    50% { opacity: 1; }
    80%, 100% { opacity: 0; }
}

/* Color cues for user and agent messages */
.conversation-transcription-message.user-message {
    color: #2196F3; /* Blue for user input */
}

.conversation-transcription-message.bot-message {
    color: #ffffff; /* White for agent output */
}

.conversation-transcription {
    position: absolute;
    bottom: 100px; /* Moved up to avoid covering logo (logo is 67.5px + 20px margin = ~87.5px) */
    left: 50%;
    transform: translateX(-50%);
    width: 80%;
    max-width: 600px;
    background: linear-gradient(135deg, rgba(0, 0, 0, 0.6) 0%, rgba(0, 0, 0, 0.4) 100%);
    border-radius: 12px;
    padding: 16px 20px;
    z-index: 100;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
    /* Animations removed - keeping transcription visible */
}

.conversation-transcription-content {
    color: white;
    font-size: 16px;
    line-height: 1.4;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    margin: 0;
    max-height: 200px; /* Limit height to prevent taking too much screen space */
    overflow-y: auto; /* Allow scrolling when content exceeds height */
    padding-right: 8px; /* Space for scrollbar */
}

.conversation-transcription-message {
    margin-bottom: 8px;
    padding: 4px 0;
    border-radius: 4px;
    transition: all 0.2s ease;
}

.conversation-transcription-message:last-child {
    margin-bottom: 0;
}

.conversation-transcription-message.user-message {
    color: #87CEEB; /* Light blue for user messages */
    font-weight: 500;
}

.conversation-transcription-message.bot-message {
    color: white; /* White for bot messages */
    font-weight: 400;
}

.conversation-transcription-message.user-message::before {
    content: "";
    margin-right: 0;
    opacity: 0.7;
}

.conversation-transcription-message.bot-message::before {
    content: "";
    margin-right: 0;
    opacity: 0.7;
}

/* Animation for new messages */
.conversation-transcription-message.new-message {
    animation: slideInUp 0.3s ease-out;
}

@keyframes slideInUp {
    from {
        opacity: 0;
        transform: translateY(10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Auto-clear removed - keeping transcription visible */

/* Responsive Design */
@media (max-width: 767px) {
    .conversation-transcription {
        bottom: 70px; /* Moved up to avoid covering logo on mobile (logo is 45px + 15px margin = 60px) */
        width: 90%;
        padding: 12px 16px;
    }
    
    .conversation-transcription-content {
        font-size: 14px;
    }
    
    .conversation-transcription-message {
        margin-bottom: 6px;
    }
}

@media (min-width: 1920px) {
    .conversation-transcription {
        bottom: 30px;
        width: 70%;
        max-width: 800px;
        padding: 20px 24px;
    }
    
    .conversation-transcription-content {
        font-size: 18px;
    }
    
    .conversation-transcription-message {
        margin-bottom: 10px;
    }
}
