/* chatbot style */
#chatbot-container {
    width: 300px;
    border: 1px solid #ccc;
    padding: 10px;
    margin: 20px;
}

#chatbot-messages {
    height: 200px;
    overflow-y: auto;
    border: 1px solid #ddd;
    padding: 5px;
    margin-bottom: 10px;
}

#chatbot-input {
    width: 75%;
}

#chatbot-send {
    width: 20%;
}


.chat-head {
    width: 50px;
    height: 50px;
    background-image: url('/Images/JDi.jpg');  
    background-size: cover;  
    background-position: center;  
    background-color: var(--first-color-lighter);
    border-radius: 50%;
    position: fixed;
    bottom: 20px;
    right: 20px;
    cursor: pointer;
    z-index: 900;
    animation-delay: 3s;
}

.chat-head::after {
    content: '';
    position: absolute;
    top: -10px; /* Adjust these values to increase the hit box */
    left: -10px;
    right: -10px;
    bottom: -10px;
    z-index: 1000; /* Ensure it's below the actual chat head */
    pointer-events: auto; /* Makes this area clickable */
  }

.chat-window {
    width: 300px;
    height: 400px;
    background-color: var(--body-color);
    position: fixed;
    bottom: 80px;
    right: 20px;
    border: 1px solid #ccc;
    display: flex;
    flex-direction: column;
    z-index: 905;
    opacity: 0;
    transform: scale(0.95);
    transition: opacity 0.3s ease, transform 0.3s ease;
    pointer-events: none;
}

.chat-window.show {
    opacity: 1;
    transform: scale(1);
    pointer-events: auto;
}

.hidden {
    display: none;
}

.show {
    display: flex;
}

.chat-header {
    background-color: var(--first-color-lighter);
    color: #fff;
    padding: 10px;
    text-align: center;
    position: relative;
}

.chat-messages {
    flex: 1;
    padding: 10px;
    overflow-y: auto;
    border-top: 1px solid #ccc;
    color: var(--text-color);
}

#chat-input {
    background-color: var(--first-color-alt);
    color: white;
    font-family: var(--font-family);
    border: none;
    padding: 10px;
    width: 100%;
    box-sizing: border-box;
}

#chat-input::placeholder {
    color: white;
}



.chat-head:hover {
    animation: pulse 1s;
}

@keyframes pulse {
    0%, 100% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.1);
    }
}


/* Mobile responsive styles */
@media screen and (max-width: 768px) {
    #chatbot-container {
        width: 90%;
        margin: 10px auto;
    }

    .chat-head {
        width: 45px;
        height: 45px;
        bottom: 15px;
        right: 15px;
    }

    .chat-window {
        width: 70%;
        max-width: 350px;
        height: 300px;
        bottom: 70px;
    }

    #chatbot-input {
        width: 100%;
        padding: 8px;
    }

    #chatbot-send {
        width: 100%;
        margin-top: 10px;
    }

    #chatbot-send, #chatbot-input {
        padding: 10px;
    }
}

@media screen and (min-width: 1024px) {
    .chat-head {
        width: 50px;
        height: 50px;
        bottom: 20px;
        right: 20px;
    }

    .chat-window {
        width: 300px;
        max-width: 300px;
        height: 400px;
    }
}