﻿
/* Chat button */
/* Chat button - upgraded style */
#adhikChatBtn {
    position: fixed;
    right: 24px;
    bottom: 150px;
    width: 100px;
    height: 100px;
    border-radius: 50%;
    background: linear-gradient(270deg, #6a11cb, #2575fc, #6a11cb);
    background-size: 600% 600%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    box-shadow: 0 8px 20px rgba(0,0,0,0.25), 0 0 15px rgba(106,17,203,0.5);
    z-index: 9999;
    transition: transform 0.3s ease-in-out, box-shadow 0.3s ease-in-out;
    animation: gradientMove 8s ease infinite;
}

    /* Hover effects */
    #adhikChatBtn:hover {
        transform: scale(1.15) rotate(-5deg);
        box-shadow: 0 12px 28px rgba(0,0,0,0.35), 0 0 25px rgba(106,17,203,0.7), 0 0 25px rgba(37,117,252,0.7);
    }

    /* Button image */
    #adhikChatBtn img {
        width: 60%;
        height: 60%;
        object-fit: contain;
        transition: transform 0.3s ease;
    }

    #adhikChatBtn:hover img {
        transform: scale(1.1) rotate(10deg);
    }

/* Gradient animation */
@keyframes gradientMove {
    0% {
        background-position: 0% 50%;
    }

    50% {
        background-position: 100% 50%;
    }

    100% {
        background-position: 0% 50%;
    }
}

/* Optional pulse glow effect */
#adhikChatBtn::after {
    content: '';
    position: absolute;
    width: 120%;
    height: 120%;
    border-radius: 50%;
    top: -10%;
    left: -10%;
    box-shadow: 0 0 20px rgba(106,17,203,0.6), 0 0 30px rgba(37,117,252,0.6);
    opacity: 0;
    transition: opacity 0.3s;
    animation: pulseGlow 2.5s infinite;
    z-index: -1;
}

@keyframes pulseGlow {
    0%, 100% {
        opacity: 0.3;
        transform: scale(1);
    }

    50% {
        opacity: 0.6;
        transform: scale(1.1);
    }
}

/* Chat window */
#adhikChatWindow {
    position: fixed;
    right: 24px;
    bottom: 96px;
    width: 330px;
    max-width: calc(100% - 48px);
    height: 440px;
    background: #ffffff;
    border-radius: 16px;
    box-shadow: 0 16px 48px rgba(0,0,0,0.25);
    display: none;
    flex-direction: column;
    overflow: hidden;
    z-index: 9999;
    font-family: 'Inter', system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial;
}

/* Header */
#adhikChatHeader {
    padding: 14px 16px;
    background: linear-gradient(90deg, #6a11cb, #2575fc);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: space-between;
    font-weight: 600;
    font-size: 16px;
}

/* Messages container */
#adhikChatMessages {
    padding: 14px;
    flex: 1;
    overflow-y: auto;
    background: #f5f6fa;
    display: flex;
    flex-direction: column;
}

/* Chat bubbles */
.adhikMsg {
    margin: 8px 0;
    max-width: 78%;
    padding: 12px 16px;
    border-radius: 16px;
    line-height: 1.4;
    font-size: 14px;
    word-wrap: break-word;
    box-shadow: 0 2px 6px rgba(0,0,0,0.08);
    transition: transform 0.2s;
}

    .adhikMsg.bot {
        background: #ffffff;
        color: #0b1a2b;
        align-self: flex-start;
        border-top-left-radius: 0;
    }

    .adhikMsg.user {
        background: linear-gradient(90deg,#6a11cb,#2575fc);
        color: white;
        align-self: flex-end;
        border-top-right-radius: 0;
    }

/* Input area */
#adhikChatInputWrap {
    padding: 12px;
    display: flex;
    gap: 10px;
    align-items: center;
    background: #fefefe;
    border-top: 1px solid #e6e9ef;
}

#adhikChatInput {
    flex: 1;
    padding: 12px 16px;
    border-radius: 24px;
    border: 1px solid #dfe3ee;
    outline: none;
    font-size: 14px;
    background: #f8f9fc;
}

.adhikBtn {
    padding: 10px 16px;
    border-radius: 24px;
    border: none;
    background: #6a11cb;
    color: #fff;
    cursor: pointer;
    font-weight: 500;
    font-size: 14px;
    transition: background 0.2s;
}

    .adhikBtn:hover {
        background: #2575fc;
    }

/* Quick action buttons */
.adhikQuick {
    display: flex;
    gap: 8px;
    margin-top: 10px;
    flex-wrap: wrap;
}

    .adhikQuick button {
        padding: 8px 12px;
        border-radius: 20px;
        border: 1px solid #dfe3ee;
        background: #ffffff;
        cursor: pointer;
        font-size: 13px;
        color: #4e54c8;
        transition: all 0.2s;
    }

        .adhikQuick button:hover {
            background: #6a11cb;
            color: #fff;
            border-color: transparent;
        }

/* Typing indicator */
.adhikTyping {
    font-size: 12px;
    color: #687084;
    opacity: 0.9;
    margin: 6px 0;
    font-style: italic;
}

/* Links */
a.adhikLink {
    color: #6a11cb;
    text-decoration: underline;
    cursor: pointer;
    transition: color 0.2s;
}

    a.adhikLink:hover {
        color: #2575fc;
    }

