/* Chatbox Styling */
#ai-chat-box {
    position: fixed;
    bottom: 20px;
    right: 20px;
    width: 350px;
    height: 450px;
    background: #ffffff;
    border: 1px solid #dcdcdc;
    border-radius: 12px;
    display: flex;
    flex-direction: column;
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.2);
    overflow: hidden;
    font-family: 'Arial', sans-serif;
    z-index: 1000;
    transition: all 0.3s ease;
}

#ai-chat-box.minimized {
    display: none;
}

#ai-chat-box.minimized ~ #ai-floating-icon {
    display: block;
}

#ai-chat-header {
    background: #0078d4;
    color: #ffffff;
    padding: 10px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    border-bottom: 1px solid #005bb5;
}

#ai-chat-header img {
    width: 24px;
    height: 24px;
    margin-right: 10px;
}

#ai-chat-header span {
    flex-grow: 1;
    font-size: 16px;
    font-weight: bold;
    text-align: left;
}

#ai-chat-header button {
    background: transparent;
    border: none;
    color: #ffffff;
    font-size: 18px;
    font-weight: bold;
    cursor: pointer;
    padding: 0;
}

#ai-chat-body {
    flex-grow: 1;
    padding: 15px;
    overflow-y: auto;
    background-color: #f9f9f9;
    font-size: 14px;
    line-height: 1.6;
}

#ai-chat-input-container {
    display: flex;
    padding: 10px;
    background: #f1f1f1;
    border-top: 1px solid #dcdcdc;
}

#ai-chat-input {
    flex-grow: 1;
    padding: 10px;
    font-size: 14px;
    border: 1px solid #dcdcdc;
    border-radius: 8px;
    outline: none;
}

#ai-chat-send {
    margin-left: 10px;
    padding: 10px 20px;
    background-color: #0078d4;
    color: #ffffff;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    font-size: 14px;
}

#ai-chat-send:hover {
    background-color: #005bb5;
}

/* Floating Icon Wrapper */
#ai-floating-icon {
    position: fixed;
    bottom: 20px;
    right: 20px;
    width: 50px;
    height: 50px;
    background-color: #0078d4; /* Blue background */
    border-radius: 50%; /* Makes it circular */
    display: none; /* Hidden by default */
    justify-content: center;
    align-items: center;
    cursor: pointer;
    z-index: 1001;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2); /* Adds shadow for depth */
}

/* Icon Inside Floating Circle */
#ai-floating-icon img {
    width: 24px; /* Smaller image inside the circle */
    height: 24px;
}



#ai-floating-icon:hover {
    background-color: #005bb5; /* Darker blue on hover */
    transform: scale(1.1); /* Slightly enlarge the icon */
    transition: all 0.2s ease-in-out; /* Smooth animation */
}


