/* ==========================================
   KIRAN AI CHATBOT - Standalone CSS
   Drop this into any project and link it.
   ========================================== */

/* Uses Inter font — make sure your page loads it:
   <link href="https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700;800&display=swap" rel="stylesheet"> 
  
   Copy the kiran-chatbot/ folder to your new project.

Add this to your HTML <head>:
html
<link rel="stylesheet" href="kiran-chatbot/chatbot.css">

Add this before your closing </body> tag:
html
<script src="kiran-chatbot/chatbot.js"></script>     */

#kiran-chatbot {
    position: fixed;
    bottom: 1.5rem;
    right: 1.5rem;
    z-index: 2000;
    font-family: 'Inter', sans-serif;
}

/* ---- Floating Bubble ---- */
.chatbot-bubble {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: linear-gradient(135deg, #1a1a2e, #16213e);
    border: 2px solid rgba(255, 255, 255, 0.15);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    transition: all 0.3s ease;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.4);
    overflow: hidden;
}

.chatbot-bubble:hover {
    transform: scale(1.08);
    border-color: #ff4500;
    box-shadow: 0 8px 30px rgba(255, 69, 0, 0.25);
}

.chatbot-bubble.active {
    transform: scale(0.95);
}

.chatbot-avatar-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 50%;
}

/* ---- Online Dot ---- */
.chatbot-online-dot {
    position: absolute;
    bottom: 2px;
    right: 2px;
    width: 14px;
    height: 14px;
    border-radius: 50%;
    background: #22c55e;
    border: 2.5px solid #1a1a2e;
    z-index: 5;
    animation: onlinePulse 2s ease-in-out infinite;
}

@keyframes onlinePulse {

    0%,
    100% {
        box-shadow: 0 0 0 0 rgba(34, 197, 94, 0.5);
    }

    50% {
        box-shadow: 0 0 0 5px rgba(34, 197, 94, 0);
    }
}

/* ---- Unread Badge ---- */
.chatbot-unread-badge {
    position: absolute;
    top: -5px;
    right: -5px;
    width: 24px;
    height: 24px;
    border-radius: 50%;
    background: #ff4500;
    color: #fff;
    font-size: 0.75rem;
    font-weight: 800;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10;
    box-shadow: 0 4px 8px rgba(0,0,0,0.4);
    border: 2px solid #0d0d1a;
    animation: unreadBounce 0.6s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

@keyframes unreadBounce {
    0% { transform: scale(0); }
    60% { transform: scale(1.3); }
    100% { transform: scale(1); }
}

/* ---- Chat Window ---- */
.chatbot-window {
    position: absolute;
    bottom: 75px;
    right: 0;
    width: 370px;
    height: 520px;
    background: #0d0d1a;
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 18px;
    display: none;
    flex-direction: column;
    overflow: hidden;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.6);
    animation: chatWindowOpen 0.35s ease;
}

.chatbot-window.open {
    display: flex;
}

@keyframes chatWindowOpen {
    from {
        opacity: 0;
        transform: translateY(15px) scale(0.95);
    }

    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

/* ---- Header ---- */
.chatbot-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0.9rem 1rem;
    background: linear-gradient(135deg, #151528, #1a1a30);
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.chatbot-header-info {
    display: flex;
    align-items: center;
    gap: 0.7rem;
}

.chatbot-header-avatar {
    width: 38px;
    height: 38px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid rgba(255, 69, 0, 0.3);
}

.chatbot-header-name {
    font-weight: 700;
    font-size: 0.95rem;
    color: #fff;
}

.chatbot-header-status {
    font-size: 0.75rem;
    color: #22c55e;
    display: flex;
    align-items: center;
    gap: 0.3rem;
}

.chatbot-status-dot {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: #22c55e;
    display: inline-block;
}

.chatbot-close {
    background: none;
    border: none;
    color: #666;
    font-size: 1.5rem;
    cursor: pointer;
    padding: 0;
    line-height: 1;
    transition: color 0.2s ease;
}

.chatbot-close:hover {
    color: #ff4500;
}

/* ---- Messages Area ---- */
.chatbot-messages {
    flex: 1;
    overflow-y: auto;
    padding: 1rem;
    display: flex;
    flex-direction: column;
    gap: 0.6rem;
}

.chatbot-messages::-webkit-scrollbar {
    width: 4px;
}

.chatbot-messages::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.15);
    border-radius: 2px;
}

/* ---- Message Bubbles ---- */
.chatbot-msg {
    max-width: 82%;
    padding: 0.7rem 1rem;
    border-radius: 14px;
    font-size: 0.88rem;
    line-height: 1.5;
    word-wrap: break-word;
    animation: msgFadeIn 0.3s ease;
}

@keyframes msgFadeIn {
    from {
        opacity: 0;
        transform: translateY(8px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.chatbot-msg a {
    color: #ff6b35;
    text-decoration: underline;
}

.chatbot-msg-bot {
    background: rgba(255, 255, 255, 0.08);
    color: #e0e0e0;
    align-self: flex-start;
    border-bottom-left-radius: 4px;
}

.chatbot-msg-user {
    background: linear-gradient(135deg, #ff4500, #ff6b35);
    color: #fff;
    align-self: flex-end;
    border-bottom-right-radius: 4px;
}

/* ---- Typing Indicator ---- */
.chatbot-typing {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 1rem;
    color: #888;
    font-size: 0.8rem;
}

.typing-dots {
    display: flex;
    gap: 3px;
}

.typing-dots span {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: #888;
    animation: typingBounce 1.4s infinite;
}

.typing-dots span:nth-child(2) {
    animation-delay: 0.2s;
}

.typing-dots span:nth-child(3) {
    animation-delay: 0.4s;
}

@keyframes typingBounce {

    0%,
    60%,
    100% {
        transform: translateY(0);
    }

    30% {
        transform: translateY(-5px);
    }
}

/* ---- Input Area ---- */
.chatbot-input-area {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.7rem 0.8rem;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    background: rgba(255, 255, 255, 0.02);
}

.chatbot-input-area input {
    flex: 1;
    padding: 0.6rem 0.9rem;
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.05);
    color: #fff;
    font-family: 'Inter', sans-serif;
    font-size: 0.88rem;
    outline: none;
    transition: border-color 0.2s ease;
}

.chatbot-input-area input:focus {
    border-color: #ff4500;
}

.chatbot-input-area input::placeholder {
    color: #555;
}

.chatbot-input-area button {
    width: 38px;
    height: 38px;
    border-radius: 50%;
    border: none;
    background: linear-gradient(135deg, #ff4500, #ff6b35);
    color: #fff;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.85rem;
    transition: all 0.2s ease;
    flex-shrink: 0;
}

.chatbot-input-area button:hover {
    transform: scale(1.08);
    box-shadow: 0 4px 12px rgba(255, 69, 0, 0.4);
}

/* ---- Mobile Responsive ---- */
@media (max-width: 480px) {
    .chatbot-window {
        width: calc(100vw - 1.5rem);
        height: calc(100vh - 100px);
        bottom: 70px;
        right: -0.75rem;
        border-radius: 18px 18px 0 0;
    }

    .chatbot-bubble {
        width: 52px;
        height: 52px;
    }
}
/* --- Professional Suggestions Styling --- */
.chatbot-suggestions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.8rem;
    padding: 0.8rem 1rem;
    justify-content: flex-end;
    background: transparent;
    margin-bottom: 5px;
}

.chatbot-suggestion-btn {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 69, 0, 0.3);
    border-radius: 20px;
    padding: 0.6rem 1.2rem;
    color: #fff;
    font-size: 0.82rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    backdrop-filter: blur(10px);
}

.chatbot-suggestion-btn:hover {
    background: linear-gradient(135deg, #ff4500, #ff6b35);
    border-color: transparent;
    transform: scale(1.05) translateY(-2px);
    box-shadow: 0 8px 20px rgba(255, 69, 0, 0.3);
}
