/**
 * assistant-vocal.css - Styles pour l'assistant vocal
 */

/* Container principal */
.assistant-vocal-container {
    position: fixed;
    bottom: 20px;
    right: 20px;
    width: 300px;
    height: 400px;
    background-color: #fff;
    border-radius: 10px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.15);
    display: flex;
    flex-direction: column;
    overflow: hidden;
    z-index: 10000;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Arial, sans-serif;
    transition: all 0.3s ease;
}

/* Thème sombre */
.assistant-vocal-container[data-theme="dark"] {
    background-color: #2c3e50;
    color: #ecf0f1;
}

/* Positions */
.assistant-vocal-container[data-position="bottom-left"] {
    right: auto;
    left: 20px;
}

.assistant-vocal-container[data-position="top-right"] {
    bottom: auto;
    top: 20px;
}

.assistant-vocal-container[data-position="top-left"] {
    bottom: auto;
    right: auto;
    top: 20px;
    left: 20px;
}

/* En-tête */
.assistant-vocal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 15px;
    background-color: #3498db;
    color: white;
    border-top-left-radius: 10px;
    border-top-right-radius: 10px;
}

.assistant-vocal-container[data-theme="dark"] .assistant-vocal-header {
    background-color: #34495e;
}

.assistant-name {
    font-weight: bold;
    font-size: 16px;
}

.assistant-controls button {
    background: none;
    border: none;
    color: white;
    cursor: pointer;
    font-size: 18px;
    line-height: 1;
    padding: 0 5px;
}

/* Corps - messages */
.assistant-vocal-body {
    flex: 1;
    overflow-y: auto;
    padding: 15px;
    background-color: #f8f9fa;
}

.assistant-vocal-container[data-theme="dark"] .assistant-vocal-body {
    background-color: #2c3e50;
}

.assistant-messages {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.message {
    padding: 10px;
    border-radius: 15px;
    max-width: 80%;
    animation: fadeIn 0.3s ease;
}

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

.assistant-message {
    background-color: #e1f5fe;
    color: #0277bd;
    border-top-left-radius: 5px;
    align-self: flex-start;
}

.assistant-vocal-container[data-theme="dark"] .assistant-message {
    background-color: #34495e;
    color: #ecf0f1;
}

.user-message {
    background-color: #e8f5e9;
    color: #2e7d32;
    border-top-right-radius: 5px;
    align-self: flex-end;
}

.assistant-vocal-container[data-theme="dark"] .user-message {
    background-color: #1e3a8a;
    color: #ecf0f1;
}

.message-sender {
    font-size: 12px;
    margin-bottom: 5px;
    opacity: 0.8;
}

.message-content {
    font-size: 14px;
    line-height: 1.4;
    word-wrap: break-word;
}

/* Pied de page - contrôles */
.assistant-vocal-footer {
    display: flex;
    align-items: center;
    padding: 10px 15px;
    background-color: #f1f2f6;
    border-top: 1px solid #e6e9ef;
}

.assistant-vocal-container[data-theme="dark"] .assistant-vocal-footer {
    background-color: #34495e;
    border-top: 1px solid #4a6785;
}

.assistant-mic-button {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background-color: #3498db;
    border: none;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
}

.assistant-mic-button svg {
    fill: white;
    width: 20px;
    height: 20px;
}

.assistant-mic-button.listening {
    background-color: #e74c3c;
    animation: pulse 1.5s infinite;
}

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

.assistant-mic-button:hover {
    background-color: #2980b9;
}

.assistant-mic-button:disabled {
    background-color: #bdc3c7;
    cursor: not-allowed;
}

.assistant-status {
    margin-left: 15px;
    font-size: 14px;
    color: #7f8c8d;
}

.assistant-vocal-container[data-theme="dark"] .assistant-status {
    color: #bdc3c7;
}

/* Responsive */
@media (max-width: 480px) {
    .assistant-vocal-container {
        width: calc(100% - 40px) !important;
        height: 350px !important;
    }
}