/* Floating Button */
    .chatbot-btn {
        position: fixed;
        bottom: 25px;
        right: 25px;
        width: 65px;
        height: 65px;
        border-radius: 50%;
        background: #EED704;
        display: flex;
        justify-content: center;
        align-items: center;
        color: white;
        font-size: 28px;
        cursor: pointer;
        box-shadow: 0 8px 20px rgba(0,0,0,0.2);
        z-index: 9999;
        transition: transform 0.25s ease, box-shadow 0.25s ease;
        overflow: visible;
        
    }
    /* Glowing ring (pulsing) to match the Insta-like glow */
    .chatbot-btn::before {
        content: "";
        position: absolute;
        top: 4px;
        left: 4px;
        right: 4px;
        bottom: 4px;
        border-radius: 50%;
        background: radial-gradient(circle at 30% 30%, rgba(238,215,4,0.65), rgb(255, 241, 120) 35%, rgba(255,255,255,0) 60%);
        filter: blur(8px);
        z-index: -1;
        opacity: 0.9;
        animation: chatbot-glow 2.4s ease-in-out infinite;
        pointer-events: none;
    }

    .chatbot-btn:hover {
        transform: translateY(-4px) scale(1.03);
        box-shadow: 0 14px 30px rgba(0,0,0,0.28);
    }

    @keyframes chatbot-glow {
        0% { transform: scale(0.95); opacity: 0.6; }
        50% { transform: scale(1.12); opacity: 1; }
        100% { transform: scale(0.95); opacity: 0.6; }
    }
    .chatbot-btn img {
        width: 100%;
        height: 100%;
        object-fit: contain;
    }

    .chatbot-btn:hover {
        transform: scale(1.1);
    }

    /* Chatbot Window */
    .chat-window {
        position: fixed;
        bottom: 100px;
        right: 25px;
        width: 340px;
        height: 480px;
        background: white;
        border-radius: 18px;
        box-shadow: 0 8px 25px rgba(0,0,0,0.2);
        display: none;
        flex-direction: column;
        overflow: hidden;
        z-index: 9998;
    }

    .chat-header {
        background: #1c2027;
        color: white;
        padding: 14px;
        text-align: center;
        font-weight: bold;
        font-size: 18px;
        display: flex;
        justify-content: space-between;
        align-items: center;
    }

    .chat-close-btn {
        background: none;
        border: none;
        color: white;
        font-size: 24px;
        cursor: pointer;
        padding: 0 8px;
        line-height: 1;
        transition: transform 0.2s ease;
    }

    .chat-close-btn:hover {
        transform: scale(1.1);
    }

    .chat-header-title {
        flex: 1;
        text-align: center;
    }

    /* Mobile responsive - full screen */
    @media (max-width: 768px) {
        .chat-window {
            position: fixed;
            bottom: 0;
            right: 0;
            width: 100%;
            height: 100vh;
            max-height: 100vh;
            border-radius: 0;
            top: 0;
            animation: slideUp 0.4s ease-out;
        }

        .chat-body {
            height: calc(100vh - 120px);
        }
    }

    @keyframes slideUp {
        from {
            transform: translateY(100%);
            opacity: 0;
        }
        to {
            transform: translateY(0);
            opacity: 1;
        }
    }

    .chat-body {
        flex: 1;
        padding: 12px;
        overflow-y: auto;
        background: url(chatbg.png);
        background-size: cover;
        min-height: 300px;
    }

    .msg {
        max-width: 80%;
        padding: 10px;
        border-radius: 12px;
        margin-bottom: 12px;
        font-size: 15px;
        animation: fade .3s ease;
    }

    .user {
        background: #ffffff;
        color: black;
        align-self: flex-end;
        opacity: 0.8;
        border: 1px solid #d7dce2;
    }

    .bot {
        background: #ffffff;
        align-self: flex-start;
        border: 1px solid #d7dce2;
        
    }

    @keyframes fade {
        from { opacity: 0; transform: translateY(10px); }
        to { opacity: 1; transform: translateY(0); }
    }

    .chat-input {
        display: flex;
        border-top: 1px solid #ddd;
        background: white;
        gap: 0;
    }

    .chat-input input {
        flex: 1;
        padding: 12px;
        border: none;
        outline: none;
        font-size: 16px;
    }

    .chat-input input:focus {
        background: #f9f9f9;
    }

    .chat-input button {
        padding: 12px 16px;
        background: #EED704;
        border: none;
        color: black;
        cursor: pointer;
        font-size: 16px;
        transition: background 0.2s ease;
        min-width: 50px;
    }

    .chat-input button:hover {
        background: #f0ec06;
    }

    .typing {
        font-style: italic;
        opacity: 0.7;
    }

    /* Ask Question label next to chatbot button */
    .chatbot-label {
        position: fixed;
        bottom: 42px; /* vertically align with button */
        right: 102px; /* 25px (button right) + 65px (button width) + 12px gap */
        background: rgba(28,30,35,0.95);
        color: #fff;
        padding: 8px 12px;
        border-radius: 20px;
        font-size: 13px;
        font-weight: 600;
        box-shadow: 0 8px 18px rgba(0,0,0,0.25);
        opacity: 0;
        transform: translateX(8px);
        pointer-events: auto;
        z-index: 9999;
        display: inline-block;
        white-space: nowrap;
        transition: opacity 0.28s ease, transform 0.28s ease;
        animation: chatbot-label-show 0.6s ease forwards;
        animation-delay: 0.9s; /* show after some time */
        cursor: pointer;
    }

    @keyframes chatbot-label-show {
        from { opacity: 0; transform: translateX(8px); }
        to   { opacity: 1; transform: translateX(0); }
    }
