#chat-icon {
    position: fixed;
    bottom: 20px;
    right: 20px;
    width: 60px;
    height: 60px;
    background-color: var(--crimson-color);
    border-radius: 23px;
    display: flex;
    justify-content: center;
    align-items: center;
    box-shadow: 0 0 8px 0 var(--crimson-shadow);
    cursor: pointer;
    z-index: 1000;
    transition: all 0.3s ease;
    opacity: 1;
}

#chat-icon:hover {
    background-color: var(--secondary-color);
    box-shadow: 0 0 24px 0 var(--crimson-shadow);
}

#chat-icon:hover .fas {
    color: var(--crimson-color);
}

#chat-icon .fas {
    color: var(--secondary-color);
    font-size: 24px;
    transition: transform 0.3s ease-in-out;
}

.chat-icon-close {
    display: none; 
}

#chat-window {
    position: fixed;
    bottom: 90px;
    right: 20px;
    width: 350px;
    height: 500px;
    background-color: var(--lighter-bg);
    border-radius: 23px;
    display: none;
    flex-direction: column;
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.3);
    z-index: 999;
    opacity: 0;
    transform: translateY(20px);
    animation: fadeIn 0.2s ease-in-out forwards;
}

#chat-window.active {
    display: flex;
    opacity: 1;
    transform: translateY(0);
}

@keyframes fadeIn {
    0% {
        opacity: 0;
        transform: translateY(20px);
    }

    100% {
    opacity: 1;
    transform: translateY(0);
    }
}

@keyframes fadeOut {
    0% {
    opacity: 1;
    transform: translateY(0);
    }
    100% {
    opacity: 0;
    transform: translateY(20px);
    }
}


#chat-header {
    background-color: var(--crimson-color);
    color: var(--header-color);
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 10px 15px;
    border-top-left-radius: 23px;
    border-top-right-radius: 23px;
    font-size: 1.2rem;
}

#chat-box {
    flex: 1;
    padding: 10px;
    overflow-y: auto;
    color: var(--text);
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.message {
    padding: 10px;
    border-radius: 8px;
    max-width: 80%;
    word-wrap: break-word;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

.user-message {
    background-color: var(--crimson-color);
    box-shadow: 0 0 16px 0 var(--crimson-shadow);
    color: var(--secondary-color);
    margin-left: auto;
}

.bot-message {
    background-color: var(--secondary-color);
    box-shadow: 0 0 12px -4px var(--secondary-color);
    color: var(--main-color);
    margin-right: auto;
}
.typing-indicator {
    display: flex;
    justify-content: flex-start;
    align-items: center;
    gap: 5px;
}

.typing-indicator span {
    width: 8px;
    height: 8px;
    background-color: var(--text);
    border-radius: 50%;
    animation: bounce 1.2s infinite ease-in-out;
}

.typing-indicator span:nth-child(2) {
    animation-delay: 0.2s;
}

.typing-indicator span:nth-child(3) {
    animation-delay: 0.4s;
}

@keyframes bounce {
    0%, 80%, 100% {
    transform: scale(0);
    }
    40% {
    transform: scale(1);
    }
}

#input-container {
    display: flex;
    padding: 10px;
    background-color: var(--lighter-bg);
    border-bottom-left-radius: 23px;
    border-bottom-right-radius: 23px;
}

#user-input {
    flex: 1;
    padding: 10px;
    border: none;
    outline: none;
    background-color: var(--main-color);
    color: var(--secondary-color);
    font-size: 14px;
    border-radius: 15px;
    margin-right: 10px;
}

#user-input::placeholder {
    color: var(--text);
}

#send-btn {
    background-color: var(--crimson-color);
    border: none;
    outline: none;
    cursor: pointer;
    border-radius: 16px;
    width: 40px;
    height: 40px;
    display: flex;
    justify-content: center;
    align-items: center;
    box-shadow: 0 0 8px 0 var(--crimson-shadow);
    transition: all 0.2s ease-in-out;
}
#send-btn:hover {
    background-color: var(--secondary-color);
    box-shadow: 0 0 24px 0 var(--crimson-shadow);
}

#send-btn:hover i {
    color: var(--crimson-color);

}

#send-btn i {
    color: var(--secondary-color);
    font-size: 18px;
}

