/* ==========================================================================
   Taj Computer Solutions — Zero-API AI Assistant Stylesheet (taj-bot.css)
   ========================================================================== */

/* Floating Launcher Trigger */
.taj-bot-launcher {
    position: fixed;
    bottom: 24px;
    right: 24px;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: #ffffff;
    box-shadow: 0 10px 25px rgba(2, 132, 199, 0.3), 0 4px 10px rgba(15, 23, 42, 0.15);
    border: 2px solid var(--color-blue-glow, #e0f2fe);
    cursor: pointer;
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: transform 0.25s cubic-bezier(0.34, 1.56, 0.64, 1), box-shadow 0.25s ease;
}

.taj-bot-launcher:hover {
    transform: scale(1.08) translateY(-2px);
    box-shadow: 0 14px 30px rgba(2, 132, 199, 0.4), 0 6px 14px rgba(15, 23, 42, 0.2);
}

.taj-bot-launcher img {
    width: 36px;
    height: 36px;
    object-fit: contain;
    border-radius: 6px;
}

.taj-bot-badge {
    position: absolute;
    top: -3px;
    right: -3px;
    width: 14px;
    height: 14px;
    background: #10b981;
    border: 2.5px solid #ffffff;
    border-radius: 50%;
}

/* Chat Window Box */
.taj-bot-window {
    position: fixed;
    bottom: 96px;
    right: 24px;
    width: 380px;
    max-width: calc(100vw - 32px);
    height: 540px;
    max-height: calc(100vh - 120px);
    background: #ffffff;
    border-radius: 20px;
    box-shadow: 0 20px 40px rgba(15, 23, 42, 0.2), 0 0 0 1px rgba(226, 232, 240, 0.8);
    display: flex;
    flex-direction: column;
    overflow: hidden;
    z-index: 10000;
    opacity: 0;
    visibility: hidden;
    transform: translateY(20px) scale(0.95);
    transition: opacity 0.3s ease, transform 0.3s cubic-bezier(0.16, 1, 0.3, 1), visibility 0.3s ease;
}

.taj-bot-window.active {
    opacity: 1;
    visibility: visible;
    transform: translateY(0) scale(1);
}

/* Header */
.taj-bot-header {
    background: linear-gradient(135deg, #032b5f 0%, #0284c7 100%);
    color: #ffffff;
    padding: 1.1rem 1.25rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    box-shadow: 0 4px 12px rgba(2, 132, 199, 0.15);
}

.taj-bot-header-info {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.taj-bot-avatar {
    width: 40px;
    height: 40px;
    border-radius: 10px;
    background: #ffffff;
    padding: 4px;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.15);
}

.taj-bot-avatar img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.taj-bot-title {
    font-size: 0.95rem;
    font-weight: 700;
    margin: 0;
    line-height: 1.2;
    color: #ffffff;
}

.taj-bot-status {
    font-size: 0.75rem;
    color: #e0f2fe;
    display: flex;
    align-items: center;
    gap: 0.35rem;
    margin-top: 2px;
}

.taj-bot-status-dot {
    width: 7px;
    height: 7px;
    background: #34d399;
    border-radius: 50%;
    display: inline-block;
}

.taj-bot-close {
    background: rgba(255, 255, 255, 0.15);
    border: none;
    color: #ffffff;
    width: 30px;
    height: 30px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.1rem;
    transition: background 0.2s ease;
}

.taj-bot-close:hover {
    background: rgba(255, 255, 255, 0.3);
}

/* Chat Messages Container */
.taj-bot-body {
    flex: 1;
    padding: 1.25rem;
    overflow-y: auto;
    background: #f8fafc;
    display: flex;
    flex-direction: column;
    gap: 1rem;
    scroll-behavior: smooth;
}

/* Message Bubble */
.taj-bot-msg {
    display: flex;
    flex-direction: column;
    max-width: 85%;
    animation: tajBotMsgFade 0.25s ease-out forwards;
}

@keyframes tajBotMsgFade {
    from { opacity: 0; transform: translateY(6px); }
    to { opacity: 1; transform: translateY(0); }
}

.taj-bot-msg.bot {
    align-self: flex-start;
}

.taj-bot-msg.user {
    align-self: flex-end;
}

.taj-bot-bubble {
    padding: 0.85rem 1rem;
    border-radius: 16px;
    font-size: 0.88rem;
    line-height: 1.45;
}

.taj-bot-msg.bot .taj-bot-bubble {
    background: #ffffff;
    color: #1e293b;
    border: 1px solid #e2e8f0;
    border-top-left-radius: 4px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.03);
}

.taj-bot-msg.user .taj-bot-bubble {
    background: #0284c7;
    color: #ffffff;
    border-top-right-radius: 4px;
    box-shadow: 0 2px 8px rgba(2, 132, 199, 0.25);
}

/* AI Typing Indicator Notice */
.taj-bot-typing {
    align-self: flex-start;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    background: #ffffff;
    border: 1px solid #e2e8f0;
    padding: 0.6rem 0.85rem;
    border-radius: 16px;
    border-top-left-radius: 4px;
    font-size: 0.78rem;
    color: #64748b;
    font-weight: 500;
}

.taj-bot-dots {
    display: flex;
    align-items: center;
    gap: 3px;
}

.taj-bot-dots span {
    width: 5px;
    height: 5px;
    background: #0284c7;
    border-radius: 50%;
    animation: tajBotBounce 1.4s infinite ease-in-out both;
}

.taj-bot-dots span:nth-child(1) { animation-delay: 0s; }
.taj-bot-dots span:nth-child(2) { animation-delay: 0.2s; }
.taj-bot-dots span:nth-child(3) { animation-delay: 0.4s; }

@keyframes tajBotBounce {
    0%, 80%, 100% { transform: scale(0); }
    40% { transform: scale(1); }
}

/* Suggested Question Chips Container */
.taj-bot-chips {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-top: 0.35rem;
}

.taj-bot-chip {
    background: #ffffff;
    border: 1px solid #cbd5e1;
    color: #032b5f;
    font-size: 0.78rem;
    font-weight: 600;
    padding: 0.45rem 0.75rem;
    border-radius: 20px;
    cursor: pointer;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    gap: 0.35rem;
}

.taj-bot-chip:hover {
    background: #e0f2fe;
    border-color: #0284c7;
    color: #0284c7;
    transform: translateY(-1px);
}

/* Action Buttons inside Bot Responses */
.taj-bot-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    background: #032b5f;
    color: #ffffff !important;
    font-size: 0.8rem;
    font-weight: 600;
    padding: 0.5rem 0.85rem;
    border-radius: 8px;
    text-decoration: none;
    margin-top: 0.65rem;
    border: none;
    cursor: pointer;
    transition: background 0.2s ease;
}

.taj-bot-btn:hover {
    background: #0284c7;
}

/* Input Footer */
.taj-bot-footer {
    padding: 0.75rem 1rem;
    background: #ffffff;
    border-top: 1px solid #e2e8f0;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.taj-bot-input {
    flex: 1;
    border: 1px solid #cbd5e1;
    border-radius: 20px;
    padding: 0.65rem 1rem;
    font-size: 0.88rem;
    font-family: inherit;
    outline: none;
    transition: border-color 0.2s ease;
}

.taj-bot-input:focus {
    border-color: #0284c7;
}

.taj-bot-send {
    background: #0284c7;
    color: #ffffff;
    border: none;
    width: 38px;
    height: 38px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.95rem;
    transition: background 0.2s ease, transform 0.2s ease;
    flex-shrink: 0;
}

.taj-bot-send:hover {
    background: #032b5f;
    transform: scale(1.05);
}

/* Responsive adjust for mobile */
@media (max-width: 480px) {
    .taj-bot-window {
        right: 16px;
        bottom: 80px;
        width: calc(100vw - 32px);
        height: 480px;
    }
    .taj-bot-launcher {
        right: 16px;
        bottom: 16px;
        width: 54px;
        height: 54px;
    }
}

