﻿
/* General Styling */
#chatbot {
    display: none;
    position: fixed;
    bottom: 10px;
    right: 10px;
    width: 500px;
    border: 1px solid #ccc;
    border-radius: 20px;
    box-shadow: 0px 4px 10px rgba(0, 0, 0, 0.2);
    background-color: white;
    z-index: 1000;
    font-family: Arial, sans-serif;
    overflow: hidden;
}

/* Header */
#chat-header {
    padding: 10px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    color: white;
    font-weight: bold;
}

    #chat-header .title {
        font-weight: bold;
    }

    #chat-header .close-btn {
        color: white;
        width: 25px;
        height: 25px;
        text-align: center;
        border-radius: 50%;
        line-height: 25px;
        font-size: 16px;
        cursor: pointer;
    }

/* Body */
#chat-body {
    flex: 1;
    padding: 15px;
    height: 400px;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
}

.chat-bubble {
    display: inline-block;
    padding: 10px 15px;
    border-radius: 20px;
    margin: 5px 0;
    font-size: 14px;
    line-height: 1.4;
    max-width: 80%;
    word-wrap: break-word;
}

.user-message {
    align-self: flex-end;
    background-color: rgb(128, 128, 128, 0.7);
    color: white;
    padding: 10px;
    font-family: 'Century Gothic';
}      

.bot-message {
    align-self: flex-start;
    background-color: #e9ecef;
    color: #333;
    padding: 15px;
    font-family:'Century Gothic';
}

/* Footer */
#chat-footer {
    display: flex;
    align-items: center;
    padding: 15px;
    background-color: white;
    border-top: 1px solid #ccc;
    border-bottom-left-radius: 15px;
    border-bottom-right-radius: 15px;
}

    #chat-footer input {
        flex: 1;
        padding: 10px;
        border-radius: 5px;
        border: 1px solid #ddd;
        margin-right: 10px;
        outline: none;
        font-family: 'Century Gothic';
    }

    #chat-footer button {
        background-color: #0084FF;
        color: white;
        border: none;
        width: 40px;
        height: 40px;
        border-radius: 50%;
        display: inline-flex;
        justify-content: center;
        align-items: center;
        cursor: pointer;
        font-size: 16px;
    }

        #chat-footer button:hover {
            background-color: #005BB5;
        }

#messageInput {
    flex: 1;
    padding: 8px;
    border: 1px solid #ccc;
    border-radius: 5px;
}

#chat-messages {
    display: flex;
    flex-direction: column;
}

#open-chat {
    position: fixed;
    bottom: 20px;
    right: 20px;
    background-color: rgba(255,255,255, 0.6); /* Semi-transparent background */
    color: white;
    border: none;
    border-radius: 50%;
    width: 60px; /* Slightly increased for better visibility */
    height: 60px;
    cursor: pointer;
    z-index: 999;
    display: flex; /* Align icon in the center */
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2); /* Subtle shadow */
    transition: transform 0.3s ease, background-color 0.3s ease;
}
    #open-chat:hover {
        transform: scale(1.2); /* Slightly enlarge on hover */
        background-color: rgba(255,255,255, 0.9); ; /* Slightly darker hover effect */
    }

chat-icon {
  /* filter: invert(1) brightness(2); /* Invert colors and adjust brightness */
}

#close-chat {
    cursor: pointer;
}

/* Reset Button Styling */
#resetButton {
    background-color: transparent; /* Transparent background */
    color: #cccccc; /* Light gray icon color */
    border: none; /* Remove border */
    cursor: pointer; /* Pointer cursor */
    font-size: 20px; /* Icon size */
    transition: color 0.3s ease; /* Smooth hover effect */
    position: relative; /* For consistent alignment */
}

    #resetButton:hover {
        color: #ffffff;
    }

.glitter-effect {
    position: relative;
    width: 300px; /* Set the width of the element */
    height: 200px; /* Set the height of the element */
    background: #000; /* Set the background color */
    overflow: hidden;
    border-radius: 8px; /* Optional: rounded corners */
}

.sparkle {
    position: absolute;
    width: 10px;
    height: 10px;
    background: radial-gradient(circle, rgba(255,255,255,1) 0%, rgba(255,255,255,0) 80%);
    border-radius: 50%;
    opacity: 0;
    animation: glitter 1.5s infinite ease-in-out;
}

@keyframes glitter {
    0% {
        opacity: 0;
        transform: translate(0, 0) scale(0.5);
    }

    50% {
        opacity: 1;
        transform: translate(calc(300px * (random() - 0.5)), calc(200px * (random() - 0.5))) scale(1);
    }

    100% {
        opacity: 0;
        transform: translate(0, 0) scale(0.5);
    }
}

/* Add random sparkles */
.sparkle:nth-child(1) {
    animation-delay: 0s;
}

.sparkle:nth-child(2) {
    animation-delay: 0.5s;
}

.sparkle:nth-child(3) {
    animation-delay: 1s;
}