#chat-fab {
    position: fixed;
    bottom: 40px;
    right: 40px;
    width: 60px;
    height: 60px;
    background-color: #28a745; /* Vert */
    color: white;
    border-radius: 50%;
    border: none;
    box-shadow: 0 4px 8px rgba(0,0,0,0.2);
    font-size: 28px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: transform 0.2s ease-in-out;
    z-index: 1050;
}

#chat-fab:hover {
    transform: scale(1.1);
}

#chat-modal {
    display: none;
    position: fixed;
    bottom: 100px;
    right: 25px;
    width: 350px;
    max-width: 90vw;
    height: 500px;
    max-height: 70vh;
    background-color: white;
    border-radius: 15px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.3);
    z-index: 1051;
    flex-direction: column;
    overflow: hidden;
}

.chat-header {
    padding: 15px;
    background-color: #28a745;
    color: white;
    font-weight: bold;
    border-bottom: 1px solid #ddd;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.chat-header .close-chat {
    background: none;
    border: none;
    color: white;
    font-size: 24px;
    cursor: pointer;
}

#chat-history {
    flex-grow: 1;
    padding: 15px;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.chat-message {
    padding: 8px 12px;
    border-radius: 18px;
    max-width: 80%;
    word-wrap: break-word;
}

.chat-message.user {
    background-color: #e9ecef;
    color: #333;
    align-self: flex-end;
}

.chat-message.assistant {
    background-color: #f1f1f1;
    color: #333;
    align-self: flex-start;
}

.chat-message.assistant a {
    color: #007bff;
    text-decoration: underline;
}

#chat-input-container {
    border-top: 1px solid #ddd;
    padding: 10px;
    display: flex;
    gap: 10px;
}

#chat-input-container input {
    flex-grow: 1;
    border: 1px solid #ccc;
    border-radius: 20px;
    padding: 10px 15px;
}

#chat-input-container button {
    border-radius: 50%;
    width: 40px;
    height: 40px;
    border: none;
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
}

#voice-btn {
    background-color: #007bff;
}

#voice-btn.listening {
    background-color: #dc3545;
}

#send-btn {
    background-color: #28a745;
}

#chat-input-container button:disabled {
    background-color: #aaa;
}

#chat-prompt-suggestions {
    padding: 0 15px 15px 15px;
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.prompt-suggestion-btn {
    background-color: #f0f0f0;
    border: 1px solid #ccc;
    border-radius: 15px;
    padding: 6px 12px;
    font-size: 0.9em;
    cursor: pointer;
    transition: background-color 0.2s;
}

.prompt-suggestion-btn:hover {
    background-color: #e0e0e0;
}
