

.chat-btn {
    position: fixed;
    bottom: 20px;
    right: 20px;
    font-size: 24px;
    border-radius: 50%;
    padding: 2px;
    background-color: #007bff;
    color: white;
    border: none;
    transition: background-color 0.3s ease;
    z-index:999999999999;
}


.chat-btn:hover {
    background-color: #0056b3;
}

.chat-container {
    position: fixed;
    bottom: 90px;
    right: 20px;
    width: 370px;
    max-width: 100%;
    background-color: #fff;
    border-radius: 10px;
    box-shadow: 0px 0px 15px rgba(0, 0, 0, 0.2);
    display: none;
    flex-direction: column;
    animation: slide-up 0.5s ease-in-out;
    z-index:99999999999999999999;
}

.chat-header {
    background-image: linear-gradient(130deg, rgb(19 6 245) 0%, rgb(9, 9, 121) 35%, rgb(0, 212, 255) 100%);
    color: white;
    padding: 10px;
    border-top-left-radius: 10px;
    border-top-right-radius: 10px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.chat-header h5 {
    margin: 0;
}

.chat-body {
    padding: 10px;
    max-height: 400px;
    height: 400px;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
    scrollbar-width: thin;
}


/* For WebKit browsers (Chrome, Edge, Safari) */
    .chat-body::-webkit-scrollbar {
        width: 6px; /* Narrow scrollbar width */
    }

    .chat-body::-webkit-scrollbar-track {
        background: #f1f1f1; /* Track background */
    }

    .chat-body::-webkit-scrollbar-thumb {
        background-color: #888; /* Scrollbar thumb color */
        border-radius: 10px; /* Rounded corners for the thumb */
    }

        .chat-body::-webkit-scrollbar-thumb:hover {
            background: #555; /* Darker color on hover */
        }

.message {
    margin: 5px 0;
    padding: 8px;
    border-radius: 5px;
    background-color: #f1f1f1;
}

.bot-message {
    background-color: #e2e2e2;
    align-self: flex-start;
    width: auto;
    max-width: 90%;
    border-radius:10px 10px 10px 0px;
}

.user-message {
    background-color:#007bffd6;
    color: white;
    align-self: flex-end;
    width: auto;
    max-width: 90%;
    border-radius:10px 10px 0px 10px;
}

.chat-footer {
    padding: 10px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    background-image: linear-gradient(130deg, rgb(0, 212, 255) 0%, rgb(9, 9, 121) 60%, rgb(19 6 245) 100%);
    border-bottom-left-radius: 10px;
    border-bottom-right-radius: 10px;
}

.chat-footer input {
    width: 80%;
}

@keyframes slide-up {
    from {
        bottom: -400px;
    }
    to {
        bottom: 100px;
    }
}

/* Responsive Design */
@media (max-width: 768px) {
    .chat-container {
        width: 370px;
        max-width: 90%;
    }

    .chat-btn {
        font-size: 20px;
        padding: 5px;
        bottom: 20px;
        right: 80%;
    }
    .chat-body {
        max-height: 450px;
        height: 100%;
    }
    }
/* Close Button Style */
.close-btn {
    font-size: 20px;
    color: #fff;
    background-color: transparent;
    border: none;
    cursor: pointer;
    padding: 10px;
    border-radius: 50%; /* Round button */
    transition: background-color 0.3s ease;
}

    .close-btn:hover {
        color: #ff4d4d; /* Light red background on hover */
    }

    .close-btn:focus {
        outline: none; /* Remove outline on focus */
    }

    /* Optional: For custom icon */
    .close-btn i {
        font-size: 20px; /* Adjust size if using FontAwesome */
        background-color: transparent;
    }

#user-name::placeholder, #user-mobile::placeholder, #user-input::placeholder {
    color: #aaa; /* Light grey color for the placeholder */
    opacity: 1; /* Ensures the placeholder is fully visible */
}

#user-name, #user-mobile {
    height: 40px;
    border: 1px solid #d2d2d2;
    color: #555;
    background-color: var(--white-color);
    padding-left: 10px;
    border-radius: 7px;
    font-size: 14px;
    width: 100%;
}

#user-input {
    height: 40px;
    border: 1px solid #d2d2d2;
    padding-left: 10px;
    color: #555;
    background-color: var(--white-color);
    border-radius: 7px;
    font-size: 14px;
    margin-right: 2%;
    width: 90%;
}

