.custom-chat-widget {
    position: fixed;
    bottom: 20px;
    right: 20px;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background-color: var(--bs-info);
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
    z-index: 9999;
    transition: all 0.3s ease;
}

.custom-chat-widget:hover {
    transform: scale(1.1);
    background-color: var(--bs-primary);
}

.custom-chat-widget i {
    font-size: 24px;
}

.chat-window {
    position: fixed;
    bottom: 90px;
    right: 20px;
    width: 350px;
    height: 450px;
    background-color: var(--bs-dark);
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.4);
    z-index: 9998;
    display: none;
    flex-direction: column;
    overflow: hidden;
    border: 1px solid var(--bs-secondary);
}

.chat-window.active {
    display: flex;
}

.chat-header {
    padding: 15px;
    background-color: var(--bs-info);
    color: white;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.chat-header h5 {
    margin: 0;
    font-weight: 600;
}

.chat-header button {
    background: none;
    border: none;
    color: white;
    font-size: 1.2rem;
    cursor: pointer;
}

.chat-messages {
    flex: 1;
    padding: 15px;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.chat-message {
    max-width: 80%;
    padding: 10px 15px;
    border-radius: 15px;
    margin-bottom: 5px;
    word-wrap: break-word;
}

.chat-message.user {
    align-self: flex-end;
    background-color: var(--bs-primary);
    color: white;
    border-bottom-right-radius: 5px;
}

.chat-message.bot {
    align-self: flex-start;
    background-color: var(--bs-secondary);
    color: white;
    border-bottom-left-radius: 5px;
}

.chat-message-time {
    font-size: 0.7rem;
    opacity: 0.8;
    margin-top: 5px;
    text-align: right;
}

.chat-input {
    padding: 15px;
    border-top: 1px solid var(--bs-secondary);
    display: flex;
    gap: 10px;
}

.chat-input input {
    flex: 1;
    padding: 10px;
    border-radius: 20px;
    border: 1px solid var(--bs-secondary);
    background-color: var(--bs-dark);
    color: white;
}

.chat-input button {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background-color: var(--bs-info);
    color: white;
    border: none;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
}

.chat-input button:hover {
    background-color: var(--bs-primary);
}

/* Animation for messages */
@keyframes messageIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.chat-message {
    animation: messageIn 0.3s ease forwards;
}