/* Estilos do botão de chat */
#chat-button {
    position: fixed;
    bottom: 20px;
    right: 20px;
    background-color: #007bff;
    color: white;
    border-radius: 50%;
    padding: 15px;
    font-size: 20px;
    cursor: pointer;
    box-shadow: 0px 4px 6px rgba(0, 0, 0, 0.2);
    transition: background-color 0.3s ease;
}

#chat-button:hover {
    background-color: #0056b3;
}

/* Estilos do chat box */
#chat-box {
    width: 320px;
    height: 450px;
    border: 1px solid #ccc;
    display: flex;
    flex-direction: column;
    position: fixed;
    bottom: 80px;
    right: 20px;
    background-color: #f9f9f9;
    box-shadow: 0px 8px 16px rgba(0, 0, 0, 0.3);
    border-radius: 10px;
    overflow: hidden;
    font-family: Arial, sans-serif;
    display: none;
}

/* Cabeçalho do chat */
#chat-header {
    background-color: #007bff;
    color: white;
    text-align: center;
    padding: 15px;
    font-size: 16px;
    font-weight: bold;
    border-bottom: 1px solid #0056b3;
}

/* Área de mensagens */
#messages {
    flex: 1;
    overflow-y: auto;
    padding: 10px;
    background-color: #fff;
}

/* Área de input e botão */
#input-area {
    display: flex;
    border-top: 1px solid #ccc;
    padding: 10px;
    background-color: #f1f1f1;
}

#message-input {
    flex: 1;
    padding: 10px;
    border: 1px solid #ccc;
    border-radius: 20px;
    font-size: 14px;
    outline: none;
    transition: border-color 0.3s ease;
}

#message-input:focus {
    border-color: #007bff;
}

#send-button {
    background-color: #007bff;
    color: white;
    border: none;
    padding: 10px 15px;
    margin-left: 10px;
    border-radius: 50%;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

#send-button:hover {
    background-color: #0056b3;
}

/* Estilo para as mensagens */
.message {
    margin-bottom: 10px;
    padding: 8px;
    border-radius: 10px;
    max-width: 80%;
    word-wrap: break-word;
}

.message.sent {
    background-color: #007bff;
    color: white;
    align-self: flex-end;
}

.message.received {
    background-color: #e5e5ea;
    color: black;
    align-self: flex-start;
}
