/* law-chatbot.css */

/* Updated ID */
#law-chatbot-container {
    max-width: 600px;
    margin: 20px auto;
    border: 1px solid #ddd;
    border-radius: 8px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
    display: flex;
    flex-direction: column;
}

#chat-messages {
    height: 400px;
    overflow-y: auto;
    padding: 10px;
    background-color: #f9f9f9;
    border-bottom: 1px solid #eee;
}

.message {
    padding: 8px 12px;
    border-radius: 15px;
    margin-bottom: 10px;
    max-width: 80%;
    word-wrap: break-word;
}

.message.user {
    background-color: #0073aa;
    color: white;
    margin-left: auto;
    border-top-right-radius: 5px;
}

.message.bot {
    background-color: #e9e9eb;
    color: #333;
    margin-right: auto;
    border-top-left-radius: 5px;
}

#chat-form {
    display: flex;
    padding: 10px;
    background-color: white;
}

/* Updated ID */
#law-chatbot-question {
    flex-grow: 1;
    padding: 10px;
    border: 1px solid #ccc;
    border-radius: 4px;
    margin-right: 5px;
    resize: none; 
    height: 40px;
}

#chat-form button {
    padding: 10px 15px;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    transition: background-color 0.2s;
    margin-left: 5px;
    flex-shrink: 0;
}

/* Updated ID */
#law-chatbot-send {
    background-color: #28a745;
    color: white;
}

/* Updated ID */
#law-chatbot-send:hover {
    background-color: #218838;
}

#voice-input-btn {
    background-color: #ffc107;
    color: #333;
    font-size: 1.2em;
    width: 40px;
    padding: 0;
}

#voice-input-btn.listening {
    background-color: red;
    animation: pulse 1s infinite alternate;
}

@keyframes pulse {
    from { box-shadow: 0 0 0 0 rgba(255, 0, 0, 0.4); }
    to { box-shadow: 0 0 0 10px rgba(255, 0, 0, 0); }
}

#voice-status {
    padding: 5px 10px;
    text-align: center;
    font-size: 0.8em;
    color: #555;
}