
/* ===== CHATBOT (login page) – reuse main layout styles ===== */
.chatbot-wrapper {
    position: fixed;
    bottom: 100px;
    right: 30px;
    z-index: 3000;
}

.chatbot-trigger {
    width: 65px;
    height: 65px;
    border-radius: 50%;
    background: radial-gradient(circle at 30% 20%, #ffffff 0%, #e0edff 45%, #c3dafe 100%);
    border: 3px solid rgba(59, 130, 246, 0.55);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 0 0 0 rgba(59, 130, 246, 0.2), 0 12px 30px rgba(15, 23, 42, 0.3);
    transition: all 0.3s ease;
    animation: chatbotPulse 2s ease-in-out infinite;
    position: relative;
}

    .chatbot-trigger i {
        font-size: 24px;
        color: #2563eb;
    }

@keyframes chatbotPulse {
    0%, 100% {
        box-shadow: 0 10px 30px rgba(59, 130, 246, 0.4), 0 0 0 0 rgba(59, 130, 246, 0.3);
    }

    50% {
        box-shadow: 0 10px 30px rgba(59, 130, 246, 0.4), 0 0 0 15px rgba(59, 130, 246, 0);
    }
}

.chatbot-trigger:hover {
    transform: scale(1.1);
    animation: none;
}

.notification-dot {
    position: absolute;
    top: 5px;
    right: 5px;
    width: 16px;
    height: 16px;
    background: #ef4444;
    border-radius: 50%;
    border: 3px solid white;
    animation: dotPulse 1s ease-in-out infinite;
}

@keyframes dotPulse {
    0%, 100% {
        transform: scale(1);
    }

    50% {
        transform: scale(1.2);
    }
}

.chatbot-tooltip {
    position: absolute;
    right: 80px;
    top: 50%;
    transform: translateY(-50%);
    background: white;
    padding: 12px 20px;
    border-radius: 12px;
    font-size: 14px;
    font-weight: 600;
    color: #1e293b;
    white-space: nowrap;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    box-shadow: 0 8px 24px rgba(15, 23, 42, 0.25);
    border: 1px solid rgba(148, 163, 184, 0.4);
    z-index: 1400;
}

    .chatbot-tooltip::after {
        content: '';
        position: absolute;
        right: -8px;
        top: 50%;
        transform: translateY(-50%);
        border: 8px solid transparent;
        border-left-color: white;
    }

.chatbot-trigger:hover .chatbot-tooltip {
    opacity: 1;
    visibility: visible;
    transform: translateY(-50%) translateX(-10px);
}

.chat-window {
    position: fixed;
    bottom: 190px;
    right: 30px;
    width: 380px;
    max-width: 90vw;
    max-height: 600px;
    background: linear-gradient(145deg, #e0f2ff 0%, #f4f9ff 40%, #e0f0ff 100%);
    border-radius: 28px;
    border: 1px solid rgba(148, 163, 184, 0.4);
    box-shadow: 0 20px 45px rgba(15, 23, 42, 0.35);
    display: none;
    flex-direction: column;
    padding: 18px 18px 16px;
    z-index: 3001;
    animation: chatSlideIn 0.4s ease-out;
    backdrop-filter: blur(18px);
}

    .chat-window.active1 {
        display: flex;
    }

@keyframes chatSlideIn {
    from {
        opacity: 0;
        transform: translateY(20px) scale(0.95);
    }

    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

.prachi-chat-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 12px;
}

.prachi-tag {
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    padding: 6px 14px;
    border-radius: 999px;
    background: rgba(59, 130, 246, 0.12);
    color: #1e40af;
}

.chat-close {
    width: 30px;
    height: 30px;
    background: rgba(255, 255, 255, 0.7);
    border: none;
    border-radius: 50%;
    color: #1e293b;
    font-size: 16px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
}

    .chat-close:hover {
        background: white;
        transform: rotate(90deg) scale(1.05);
    }

.prachi-main {
    display: flex;
    align-items: center;
    gap: 14px;
    margin-bottom: 14px;
}

.prachi-avatar {
    width: 70px;
    height: 70px;
    border-radius: 20px;
    background: radial-gradient(circle at 20% 0%, #ffffff 0%, #93c5fd 45%, #3b82f6 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 10px 25px rgba(37, 99, 235, 0.35);
    color: white;
    font-size: 26px;
    overflow: hidden;
    position: relative;
}

    .prachi-avatar img {
        width: 100%;
        height: 100%;
        object-fit: cover;
    }

.prachi-text {
    flex: 1;
}

.prachi-text-title {
    font-size: 16px;
    font-weight: 700;
    color: #0f172a;
    margin-bottom: 4px;
}

.prachi-text-subtitle {
    font-size: 13px;
    color: #334155;
}

.chat-messages {
    max-height: 220px;
    overflow-y: auto;
    margin-bottom: 12px;
    padding-right: 8px;
    scrollbar-width: none;
    -ms-overflow-style: none;
}

    .chat-messages::-webkit-scrollbar {
        display: none;
    }

.chat-message {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    margin-bottom: 12px;
    animation: messageSlideIn 0.3s ease-out;
}

@keyframes messageSlideIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.chat-bubble {
    background: rgba(255, 255, 255, 0.95);
    border-radius: 16px;
    padding: 10px 14px;
    font-size: 13px;
    color: #0f172a;
    box-shadow: 0 4px 12px rgba(15, 23, 42, 0.08);
    max-width: 100%;
    width: 100%;
    line-height: 1.4;
    border: 1px solid rgba(148, 163, 184, 0.2);
}

.typing-indicator {
    display: flex;
    align-items: center;
    gap: 4px;
    padding: 10px 14px;
    background: rgba(255, 255, 255, 0.95);
    border-radius: 18px;
    width: fit-content;
    box-shadow: 0 4px 12px rgba(15, 23, 42, 0.08);
}

.typing-dot {
    width: 6px;
    height: 6px;
    background: #3b82f6;
    border-radius: 50%;
    animation: typingDot 1.4s ease-in-out infinite;
}

    .typing-dot:nth-child(1) {
        animation-delay: 0s;
    }

    .typing-dot:nth-child(2) {
        animation-delay: 0.2s;
    }

    .typing-dot:nth-child(3) {
        animation-delay: 0.4s;
    }

@keyframes typingDot {
    0%, 60%, 100% {
        transform: translateY(0);
        opacity: 0.7;
    }

    30% {
        transform: translateY(-8px);
        opacity: 1;
    }
}

.prachi-quick-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 12px;
}

.project-bastus-btn {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 12px 18px;
    background: rgba(255, 255, 255, 0.95);
    border: 2px solid #3b82f6;
    border-radius: 16px;
    color: #3b82f6;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 12px rgba(59, 130, 246, 0.15);
    margin-bottom: 12px;
}

    .project-bastus-btn:hover {
        background: #3b82f6;
        color: white;
        transform: translateY(-2px);
        box-shadow: 0 8px 20px rgba(59, 130, 246, 0.3);
    }

    .project-bastus-btn .play-icon {
        width: 24px;
        height: 24px;
        display: flex;
        align-items: center;
        justify-content: center;
        background: #3b82f6;
        border-radius: 50%;
        color: white;
        font-size: 10px;
        transition: all 0.3s ease;
    }

    .project-bastus-btn:hover .play-icon {
        background: white;
        color: #3b82f6;
    }

.prachi-chip {
    border: none;
    border-radius: 999px;
    padding: 6px 14px;
    font-size: 12px;
    font-weight: 600;
    background: rgba(255, 255, 255, 0.9);
    color: #0f172a;
    box-shadow: 0 4px 10px rgba(15, 23, 42, 0.08);
    cursor: pointer;
    transition: all 0.2s ease;
}

    .prachi-chip:hover {
        background: white;
        transform: translateY(-1px);
        box-shadow: 0 8px 18px rgba(15, 23, 42, 0.1);
    }

.chat-footer-info {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 11px;
    color: #0f172a;
    margin-top: 4px;
}

    .chat-footer-info .license {
        font-weight: 700;
        color: #dc2626;
        font-size: 13px;
    }

.chat-input-area {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-top: 2px;
    padding: 0;
    background: transparent;
    border-top: none;
}

.chat-input {
    flex: 1;
    height: 44px;
    background: rgba(255, 255, 255, 0.95);
    border: 1px solid rgba(148, 163, 184, 0.6);
    border-radius: 999px;
    padding: 0 16px;
    font-size: 13px;
    color: #0f172a;
    outline: none;
    transition: all 0.2s ease;
}

    .chat-input::placeholder {
        color: #94a3b8;
    }

    .chat-input:focus {
        border-color: #3b82f6;
        box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.25);
    }

.chat-send {
    min-width: 78px;
    height: 44px;
    border-radius: 999px;
    background: linear-gradient(135deg, #60a5fa, #2563eb);
    border: none;
    color: #ffffff;
    font-size: 13px;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    cursor: pointer;
    box-shadow: 0 10px 20px rgba(37, 99, 235, 0.4);
    transition: all 0.2s ease;
    padding: 0 16px;
}

    .chat-send i {
        font-size: 14px;
    }
