.chat-bot {
    font-family: Arial, sans-serif;
    background: linear-gradient(135deg, #0d071a,#090d20,#051014, #0c1325, #100614);
    color: white;
    display: flex;
    justify-content: center;
    align-items: center;
    height: 80%;
    margin: 0;
    overflow: hidden;
    position: relative;

}


.chat-container {
    width: 400px;
    background: rgba(20, 20, 30, 0.9);
    border-radius: 12px;
    padding: 20px;
    box-shadow: 0px 0px 15px rgba(0, 255, 255, 0.5);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(0, 255, 255, 0.3);
}

.input-container {
    display: flex;
    padding: 10px 0;
    border-top: 1px solid rgba(0, 255, 255, 0.2);
}

#input-field {
    flex-grow: 1;
    padding: 12px;
    border: none;
    border-radius: 5px;
    background: rgba(50, 50, 70, 0.8);
    color: white;
    font-size: 16px;
    transition: 0.3s;
}

#input-field:focus {
    outline: none;
    background: rgba(70, 70, 100, 0.9);
}

#send-button {
    margin-left: 5px;
    padding: 12px;
    border: none;
    background: linear-gradient(135deg, #00c6ff, #0072ff);
    color: white;
    border-radius: 5px;
    cursor: pointer;
    transition: 0.3s;
}

#send-button:hover {
    background: linear-gradient(135deg, #0072ff, #00c6ff);
    transform: scale(1.05);
}





.particlebot {
    position: absolute;
    background: cyan;
    border-radius: 50%;
    opacity: 0.6;
    box-shadow: 0 0 10px cyan;
}

@keyframes float {
    0% { transform: translateY(0); opacity: 0.7; }
    50% { transform: translateY(-20px); opacity: 1; }
    100% { transform: translateY(0); opacity: 0.7; }
}




.animated-heading {
    font-size: 2rem;
    font-weight: bold;
    text-align: center;
    background: linear-gradient(90deg, #00ffff, #ff00ff, #00ffff);
    -webkit-background-clip: text;
    color: transparent;
    animation: glow 1.5s infinite alternate, slide 3s infinite linear;
}

@keyframes glow {
    from {
        text-shadow: 0 0 5px #00ffff, 0 0 10px #ff00ff, 0 0 15px #00ffff;
    }
    to {
        text-shadow: 0 0 10px #ff00ff, 0 0 15px #00ffff, 0 0 20px #ff00ff;
    }
}

@keyframes slide {
    0% { transform: translateX(-5px); }
    50% { transform: translateX(5px); }
    100% { transform: translateX(-5px); }
}



#chat-box {
    height: 300px;
    overflow-y: auto;
    padding: 10px;
    border-bottom: 1px solid #333;
    display: flex;
    flex-direction: column;
    gap: 10px;
    scrollbar-width: thin;
    scrollbar-width: none; /* Firefox */
    -ms-overflow-style: none; /* Internet Explorer/Edge */
}

#chat-box::-webkit-scrollbar {
    display: none; /* Chrome, Safari */
}


/* User and Bot Message Styling */
.message {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px;
    border-radius: 10px;
    max-width: 80%;
}

.user {
    background-color: #007bff;
    align-self: flex-end;
    text-align: right;
    color: white;
}

.bot {
    background-color: #444;
    align-self: flex-start;
    text-align: left;
    color: white;
}

/* Chat Icons */
.user .icon, .bot .icon {
    width: 30px;
    height: 30px;
}

.user .icon {
    order: 2; /* Moves icon to the right for user messages */
}

.bot .icon {
    order: -1; /* Moves icon to the left for bot messages */
}


.message-container {
    display: flex;
    align-items: center;
    margin: 10px 0;
}

.bot {
    justify-content: flex-start; /* Align bot messages to the left */
}

.user {
    justify-content: flex-end; /* Align user messages to the right */
}

.icon {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    object-fit: cover;
    margin: 0 10px;
}

.message {
    padding: 10px 15px;
    border-radius: 15px;
    max-width: 60%;
    word-wrap: break-word;
}

.bot-message {
    background-color: #444;
    color: white;
    border-radius: 15px 15px 15px 0;
}

.user-message {
    background-color: #007bff;
    color: white;
    border-radius: 15px 15px 0 15px;
}

.bot .icon{
    width: 100px;
}

.chat-bot span{
    color: aliceblue;
}





.chat-bot {
    position: fixed;
    bottom: 30px;
    right: 30px;
    z-index: 1000;
    height: auto;
    width: auto;
    background: none;
    box-shadow: none;
    align-items: flex-end;
    justify-content: flex-end;
}

/* Floating circular button */
.chat-toggle-button {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: linear-gradient(135deg, #00c6ff, #0072ff);
    display: flex;
    justify-content: center;
    align-items: center;
    color: white;
    font-size: 28px;
    box-shadow: 0 0 15px rgba(0, 255, 255, 0.5);
    cursor: pointer;
    transition: transform 0.3s ease;
}

.chat-toggle-button:hover {
    transform: scale(1.1);
}

/* Show/hide chat box */
#chat-container {
    margin-top: 10px;
    transition: all 0.3s ease;
}

/* Initially hidden */
.hidden {
    display: none;
}
































.chat-bot {
    position: fixed;
    bottom: 20px;
    left: 20px;
    z-index: 9999;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 10px;
    padding: 25px; 
}
.tem-width{
    width: 10%;
    height: 20%;
}
/* Circle Chat Button */
.chat-toggle-button {
    z-index: 999;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: linear-gradient(135deg, #00c6ff, #0072ff);
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 28px;
    color: white;
    box-shadow: 0 0 20px rgba(0, 255, 255, 0.6);
    cursor: pointer;
    transition: transform 0.2s ease-in-out, box-shadow 0.2s;
}

.chat-toggle-button:hover {
    transform: scale(1.1);
    box-shadow: 0 0 25px rgba(0, 255, 255, 0.9);
}

/* Chat box placement */
#chat-container {
    margin: 0;
    position: relative;
    bottom: 0;
    left: 0;
    transition: all 0.3s ease;
}

/* Hide by default */
.hidden {
    display: none;
}











@media (max-width: 767px) {
    .tem-width {
        width: 100%;
        height: auto;
    }

    .chat-container {
        width: 90vw;
        max-height: 80vh;
        padding: 15px;
    }

    #chat-box {
        height: 50vh;
    }

    .input-container {
        flex-direction: column;
        gap: 10px;
    }

    #input-field {
        width: 100%;
    }

    #send-button {
        width: 100%;
    }

    .chat-bot {
        bottom: 10px;
        left: 10px;
        padding: 20px;
    }

    .chat-toggle-button {
        width: 50px;
        height: 50px;
        font-size: 24px;
    }

    .animated-heading {
        font-size: 1.5rem;
    }
}