/**
 * Voice UI Styles
 * Styling for voice dialogue interface in simulations
 */

/* Voice Messages Container */
.voice-messages {
    max-height: 400px;
    overflow-y: auto;
    border: 1px solid #e9ecef;
    border-radius: 0.25rem;
    padding: 1rem;
    background-color: #f8f9fa;
    margin-bottom: 1rem;
}

/* Message Styling */
.message {
    margin-bottom: 1rem;
    padding: 0.75rem;
    border-radius: 0.5rem;
    max-width: 85%;
}

.user-message {
    background-color: #e3f2fd;
    margin-left: auto;
    border-top-right-radius: 0;
}

.assistant-message {
    background-color: #fff;
    border: 1px solid #e9ecef;
    margin-right: auto;
    border-top-left-radius: 0;
}

/* Message Header */
.message-header {
    display: flex;
    justify-content: space-between;
    margin-bottom: 0.5rem;
    font-size: 0.85rem;
}

.message-role {
    font-weight: bold;
}

.message-time {
    color: #6c757d;
}

/* Message Content */
.message-content p {
    margin-bottom: 0.5rem;
    word-break: break-word;
}

/* Audio Player */
.audio-player {
    width: 100%;
}

.audio-player audio {
    width: 100%;
    height: 40px;
}

/* Recording Animation */
.recording-animation {
    display: flex;
    justify-content: center;
    align-items: center;
    height: 30px;
}

.recording-animation span {
    display: inline-block;
    width: 8px;
    height: 8px;
    margin: 0 3px;
    background-color: #dc3545;
    border-radius: 50%;
    animation: recording-pulse 1.5s infinite ease-in-out;
}

.recording-animation span:nth-child(2) {
    animation-delay: 0.2s;
}

.recording-animation span:nth-child(3) {
    animation-delay: 0.4s;
}

@keyframes recording-pulse {
    0% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.5);
    }
    100% {
        transform: scale(1);
    }
}

/* Voice Status */
#voice-status {
    margin-left: 1rem;
    color: #495057;
}

/* Conversation List */
#voice-conversation-list .list-group-item {
    transition: background-color 0.2s;
}

#voice-conversation-list .list-group-item:hover {
    background-color: #f0f7ff;
}

#voice-conversation-list .list-group-item.active {
    background-color: #e3f2fd;
    color: #0d6efd;
    border-color: #b6dafb;
}

/* Confidence Score */
.confidence-score {
    display: block;
    text-align: right;
    margin-top: 0.5rem;
}

/* Risk Indicator */
.risk-indicator {
    background-color: rgba(255, 235, 235, 0.5);
    padding: 0.5rem;
    border-radius: 0.25rem;
    margin-top: 0.5rem;
}