/* NovaMart AI Bot Widget Stylesheet */

.novamart-bot-bubble {
    position: fixed;
    bottom: 24px;
    right: 24px;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: linear-gradient(135deg, #2563eb, #7c3aed);
    color: #ffffff;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 8px 24px rgba(37, 99, 235, 0.35);
    cursor: pointer;
    z-index: 9999;
    transition: transform 0.25s cubic-bezier(0.34, 1.56, 0.64, 1), box-shadow 0.25s ease;
    border: 2px solid rgba(255, 255, 255, 0.2);
}

.novamart-bot-bubble:hover {
    transform: scale(1.08) translateY(-2px);
    box-shadow: 0 12px 28px rgba(37, 99, 235, 0.45);
}

.novamart-bot-bubble svg {
    width: 28px;
    height: 28px;
    fill: currentColor;
    transition: transform 0.2s ease;
}

.novamart-bot-bubble .novamart-bot-badge {
    position: absolute;
    top: 2px;
    right: 2px;
    width: 12px;
    height: 12px;
    background-color: #10b981;
    border-radius: 50%;
    border: 2px solid #ffffff;
}

.novamart-bot-panel {
    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 18px 45px rgba(15, 23, 42, 0.18), 0 0 0 1px rgba(15, 23, 42, 0.06);
    display: flex;
    flex-direction: column;
    overflow: hidden;
    z-index: 9999;
    opacity: 0;
    pointer-events: none;
    transform: translateY(16px) scale(0.96);
    transform-origin: bottom right;
    transition: opacity 0.25s ease, transform 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}

.novamart-bot-panel.open {
    opacity: 1;
    pointer-events: auto;
    transform: translateY(0) scale(1);
}

.novamart-bot-header {
    background: linear-gradient(135deg, #1e293b, #0f172a);
    color: #ffffff;
    padding: 16px 20px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.novamart-bot-brand {
    display: flex;
    align-items: center;
    gap: 12px;
}

.novamart-bot-avatar {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: linear-gradient(135deg, #3b82f6, #8b5cf6);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 16px;
    color: #fff;
    box-shadow: 0 2px 8px rgba(59, 130, 246, 0.4);
}

.novamart-bot-meta h4 {
    margin: 0;
    font-size: 15px;
    font-weight: 600;
    color: #f8fafc;
}

.novamart-bot-meta span {
    font-size: 12px;
    color: #94a3b8;
    display: flex;
    align-items: center;
    gap: 5px;
}

.novamart-bot-meta span::before {
    content: "";
    width: 6px;
    height: 6px;
    background-color: #10b981;
    border-radius: 50%;
    display: inline-block;
}

.novamart-bot-close {
    background: transparent;
    border: none;
    color: #cbd5e1;
    cursor: pointer;
    padding: 4px;
    border-radius: 6px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.15s ease, color 0.15s ease;
}

.novamart-bot-close:hover {
    background: rgba(255, 255, 255, 0.1);
    color: #fff;
}

.novamart-bot-body {
    flex: 1;
    padding: 16px;
    overflow-y: auto;
    background: #f8fafc;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.novamart-msg {
    display: flex;
    max-width: 85%;
    font-size: 14px;
    line-height: 1.45;
    word-break: break-word;
}

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

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

.novamart-msg-bubble {
    padding: 10px 14px;
    border-radius: 14px;
}

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

.novamart-msg-user .novamart-msg-bubble {
    background: #2563eb;
    color: #ffffff;
    border-top-right-radius: 3px;
}

.novamart-bot-chips {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin-top: 4px;
}

.novamart-chip-btn {
    background: #eef2ff;
    color: #3730a3;
    border: 1px solid #c7d2fe;
    border-radius: 16px;
    padding: 6px 12px;
    font-size: 12px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.15s ease;
}

.novamart-chip-btn:hover {
    background: #e0e7ff;
    border-color: #a5b4fc;
    transform: translateY(-1px);
}

.novamart-bot-typing {
    display: inline-flex;
    gap: 4px;
    align-items: center;
    padding: 8px 12px;
    background: #ffffff;
    border-radius: 12px;
    border: 1px solid #e2e8f0;
    width: fit-content;
}

.novamart-bot-typing span {
    width: 6px;
    height: 6px;
    background: #94a3b8;
    border-radius: 50%;
    animation: novamartBounce 1.4s infinite ease-in-out both;
}

.novamart-bot-typing span:nth-child(1) { animation-delay: -0.32s; }
.novamart-bot-typing span:nth-child(2) { animation-delay: -0.16s; }

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

.novamart-bot-footer {
    padding: 12px 16px;
    background: #ffffff;
    border-top: 1px solid #e2e8f0;
}

.novamart-bot-input-row {
    display: flex;
    align-items: center;
    gap: 8px;
    background: #f1f5f9;
    border-radius: 24px;
    padding: 4px 6px 4px 14px;
    border: 1px solid #cbd5e1;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.novamart-bot-input-row:focus-within {
    border-color: #3b82f6;
    background: #ffffff;
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.15);
}

.novamart-bot-input {
    flex: 1;
    border: none;
    background: transparent;
    outline: none;
    font-size: 14px;
    color: #1e293b;
}

.novamart-bot-send {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: #2563eb;
    color: #ffffff;
    border: none;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: background 0.15s ease, transform 0.15s ease;
}

.novamart-bot-send:hover {
    background: #1d4ed8;
    transform: scale(1.05);
}

.novamart-bot-send:disabled {
    background: #cbd5e1;
    cursor: not-allowed;
    transform: none;
}
