/* Estilos Globais */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: Arial, sans-serif;
    background: linear-gradient(to right, #3aaecf, #78ad45); /* Fundo gradiente com azul e verde */
    display: flex;
    justify-content: center;
    align-items: center;
    height: 100vh;
    color: #333;
}

.chat-container {
    width: 90%;
    max-width: 450px;
    background-color: rgba(255, 255, 255, 0.9); /* Fundo branco translúcido */
    border: 3px solid #f9da22; /* Borda amarela vibrante */
    border-radius: 10px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
    padding: 20px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    height: 90%;
    max-height: 650px;
}

.chat-box {
    margin-bottom: 20px;
    height: 75%;
    overflow-y: auto;
    border-bottom: 3px solid #e6a145; /* Laranja suave */
    padding-bottom: 10px;
}

.chat-message {
    padding: 12px;
    margin: 8px 0;
    border-radius: 8px;
    max-width: 85%;
    word-wrap: break-word;
    font-size: 16px;
    line-height: 1.4;
}

.bot-message {
    background-color: #ce7d9b; /* Rosa claro */
    color: white;
    align-self: flex-start;
}

.user-message {
    background-color: #78ad45; /* Verde escuro */
    color: white;
    align-self: flex-end;
}

.success-message {
    background-color: #b5cb75; /* Verde claro */
    border: 1px solid #78ad45; /* Verde escuro */
    color: #333;
    font-weight: bold;
    padding: 10px;
    border-radius: 8px;
    margin: 5px 0;
    max-width: 80%;
    word-wrap: break-word;
}

.chat-button {
    padding: 12px;
    background-color: #f9da22; /* Amarelo vibrante */
    color: #333;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    font-size: 16px;
    margin-top: 10px;
}

.chat-button:hover {
    background-color: #e6a145; /* Laranja suave */
}

.action-buttons {
    display: flex;
    justify-content: space-between;
}

.input-container input {
    flex: 1;
    padding: 12px;
    font-size: 18px;
    border: 1px solid #ccc;
    border-radius: 8px;
    margin-right: 10px;
}

.input-container button {
    padding: 12px;
    background-color: #0095ff;
    color: white;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    font-size: 16px;
}

.input-container button:hover {
    background-color: #007acc;
}

@media screen and (max-width: 768px) {
    .chat-container {
        height: 90%;
        width: 95%;
    }

    .chat-box {
        height: 70%;
    }

    .chat-message,
    .success-message,
    .chat-button {
        font-size: 14px; /* Fonte ajustada para dispositivos menores */
    }

    .chat-button {
        padding: 10px;
    }
}
