/* Estilos base do chat */
    body { 
        font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif; 
        background: #e9ebee; 
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        min-height: 100vh;
        margin: 0;
    }
    #chat-box { 
        width: 90%;
        max-width: 500px; 
        margin: 20px auto; 
        background: #ffffff; 
        border: 1px solid #d4d4d4; 
        border-radius: 8px; 
        padding: 15px; 
        height: 70vh; 
        min-height: 350px;
        overflow-y: auto; 
        box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
        display: flex;
        flex-direction: column;
    }

    /* Estilo das Mensagens */
    .msg { 
        max-width: 80%;
        padding: 8px 12px;
        border-radius: 18px;
        margin: 8px 0;
        line-height: 1.4;
        word-wrap: break-word;
    }
    .user { 
        background-color: #007bff;
        color: white; 
        align-self: flex-end; 
        border-bottom-right-radius: 2px;
    }
    .bot { 
        background-color: #f1f0f0; 
        color: #333; 
        align-self: flex-start; 
        border-bottom-left-radius: 2px;
    }

    /* Estilo do Formulrio */
    #chat-form { 
        width: 90%;
        max-width: 500px;
        display: flex; 
        margin-top: 15px;
        padding: 10px 0;
    }
    #msg { 
        flex: 1; 
        padding: 10px 15px;
        border: 1px solid #ced4da;
        border-radius: 20px;
        margin-right: 8px;
        font-size: 1em;
    }
    button { 
        padding: 10px 20px;
        background-color: #28a745;
        color: white;
        border: none;
        border-radius: 20px;
        cursor: pointer;
        font-weight: bold;
        transition: background-color 0.3s;
    }
    button:hover {
        background-color: #218838;
    }
    
    /* --- Boto Flutuante (Voltar) --- */
    .floating-button {
        position: fixed;
        bottom: 20px;
        right: 20px;
        background-color: #333;
        color: white;
        padding: 12px 20px;
        border-radius: 50px;
        text-decoration: none;
        font-weight: bold;
        font-size: 0.9em;
        box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
        transition: background-color 0.3s ease;
        z-index: 1000;
    }
    .floating-button:hover {
        background-color: #555;
    }
    @media (max-width: 600px) {
        #chat-box, #chat-form {
            width: 95%;
        }
    }
