* { box-sizing: border-box; margin: 0; padding: 0; }
body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background: #e8f5e9;
    display: flex;
    justify-content: center;
    align-items: center;
    height: 100vh;
}
.chat-container {
    width: 400px;
    max-width: 95%;
    background: white;
    border-radius: 15px;
    box-shadow: 0 5px 25px rgba(0,0,0,0.15);
    display: flex;
    flex-direction: column;
    overflow: hidden;
}
.chat-header {
    background: #1B4332;
    color: white;
    padding: 15px;
    text-align: center;
    font-weight: bold;
    font-size: 18px;
}
.chat-box {
    height: 450px;
    overflow-y: auto;
    padding: 15px;
    display: flex;
    flex-direction: column;
    gap: 10px;
    background: #f9f9f9;
}
.mensagem {
    padding: 10px 15px;
    border-radius: 20px;
    max-width: 80%;
    word-wrap: break-word;
    white-space: pre-wrap;
    line-height: 1.4;
}
.usuario {
    background: #dcf8c6;
    align-self: flex-end;
    border-bottom-right-radius: 5px;
}
.agente {
    background: #ffffff;
    align-self: flex-start;
    border: 1px solid #ddd;
    border-bottom-left-radius: 5px;
}
.chat-input {
    display: flex;
    padding: 10px;
    background: white;
    border-top: 1px solid #eee;
}
.chat-input input {
    flex: 1;
    padding: 12px 15px;
    border: 1px solid #ccc;
    border-radius: 30px;
    outline: none;
    font-size: 15px;
}
.chat-input button {
    background: #1B4332;
    color: white;
    border: none;
    padding: 12px 20px;
    margin-left: 10px;
    border-radius: 30px;
    cursor: pointer;
    font-weight: bold;
    transition: background 0.3s;
}
.chat-input button:hover {
    background: #2d6a4f;
}
#microfone-btn {
    font-size: 20px;
    padding: 10px 15px;
    margin-right: 5px;
}