/* Chatbot icon */
.chatbot-icon {
    position: fixed;
    bottom: 20px;
    right: 20px;
    background-color:  #1E3A61; /* Orange color */
    color: #fff;
    border-radius: 50%;
    width: 60px;
    height: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 1000;
    animation: zoom 2s infinite;
}

@keyframes zoom {
    0%, 100% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.2);
    }
}

/* Welcome message */
.chatbot-welcome-message {
    position: fixed;
    bottom: 90px;
    right: 90px;
    background-color:  #1E3A61; /* Same orange color as the chatbot icon */
    color: #fff;
    border-radius: 8px;
    padding: 10px;
    font-size: 14px;
    display: none; /* Initially hidden */
    z-index: 1001; /* Higher than the chatbot icon */
    box-shadow: 0px 2px 10px rgba(0, 0, 0, 0.1);
    animation: fadeIn 1s ease-in-out;
}

/* Fade-in animation for the welcome message */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Chat window */
.chat-window {
    display: none;
    position: fixed;
    bottom: 80px;
    right: 20px;
    width: 320px;
    max-height: 500px;
    background-color: #333333; /* Dark background */
    border: 1px solid #ccc;
    border-radius: 15px;
    box-shadow: 0px 0px 15px rgba(0, 0, 0, 0.2);
    z-index: 1000;
    overflow: hidden;
    background-size: cover;
    background-position: center;
}

.chat-window-header {
    background-color:  #1E3A61; /* Orange color */
    color: #fff;
    padding: 15px;
    text-align: center;
    font-weight: bold;
    border-bottom: 1px solid #ccc;
    border-radius: 15px 15px 0 0;
    font-size: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.chat-window-body {
    padding: 10px;
    overflow-y: auto;
    height: 350px;
    background-color: rgba(255, 255, 255, 0.8); /* Slightly transparent background */
}

.chat-window-footer {
    display: flex;
    border-top: 1px solid #ccc;
    padding: 10px;
    background-color: #f0f0f0;
    border-radius: 0 0 15px 15px;
}

.chat-window-footer input {
    width: 100%;
    padding: 10px;
    border: 1px solid #ccc;
    border-radius: 20px;
    margin-right: 5px;
    font-size: 14px;
}

.chat-window-footer button {
    background-color:  #1E3A61; /* Orange color */
    color: #fff;
    border: none;
    padding: 10px 15px;
    border-radius: 20px;
    cursor: pointer;
    font-size: 14px;
}

.message-container {
    display: flex;
    align-items: flex-start;
    margin-bottom: 15px;
}

.message-container.user {
    justify-content: flex-end;
}

.message-container.bot {
    justify-content: flex-start;
}

.profile-image {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    margin-right: 10px;
}

.message {
    padding: 10px 15px;
    max-width: 70%;
    border-radius: 20px;
    font-size: 14px;
    line-height: 1.4;
}

.message.user {
    background-color: #DCF8C6;
    color: #000;
    margin-right: 10px;
}

.message.bot {
    background-color: #ECECEC;
    color: #000;
    margin-left: 10px;
}