/* BTP Catalog AI Extension Styles */

.btp-ai-fab {
    position: fixed;
    bottom: 30px;
    right: 30px;
    z-index: 9999;
    display: none;
    align-items: center;
    gap: 10px;
    padding: 12px 24px;
    background: linear-gradient(135deg, #6366f1 0%, #a855f7 100%);
    color: white;
    border: none;
    border-radius: 50px;
    font-weight: 700;
    font-size: 15px;
    cursor: pointer;
    box-shadow: 0 10px 25px rgba(99, 102, 241, 0.4);
    transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    font-family: 'Inter', sans-serif;
}

.btp-ai-fab:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 30px rgba(99, 102, 241, 0.6);
}

.btp-ai-fab:active {
    transform: scale(0.95);
}

.btp-ai-fab i, .btp-ai-fab svg {
    width: 20px;
    height: 20px;
}

.btp-ai-fab.is-loading {
    pointer-events: none;
    opacity: 0.8;
}

.btp-ai-fab.is-loading .btp-ai-spinner {
    display: inline-block;
    width: 18px;
    height: 18px;
    border: 3px solid rgba(255,255,255,0.3);
    border-radius: 50%;
    border-top-color: #fff;
    animation: btp-ai-spin 0.8s linear infinite;
    margin-right: 8px;
}

@keyframes btp-ai-spin {
    to { transform: rotate(360deg); }
}

/* Animations for form feedback */
@keyframes btp-ai-pulse {
    0% { transform: scale(1); }
    50% { transform: scale(1.02); background: rgba(99, 102, 241, 0.1); }
    100% { transform: scale(1); }
}

.btp-ai-highlight {
    animation: btp-ai-pulse 0.5s ease-in-out;
}

/* Toast System */
.btp-ai-toast-container {
    position: fixed;
    top: 30px;
    right: 30px;
    z-index: 10000;
    display: flex;
    flex-direction: column;
    gap: 12px;
    pointer-events: none;
}

.btp-ai-toast {
    pointer-events: auto;
    min-width: 300px;
    padding: 16px 20px;
    border-radius: 16px;
    background: rgba(30, 41, 59, 0.9);
    backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: white;
    display: flex;
    align-items: center;
    gap: 14px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
    font-family: 'Inter', sans-serif;
    transform: translateX(120%);
    transition: all 0.5s cubic-bezier(0.68, -0.55, 0.265, 1.55);
    opacity: 0;
}

.btp-ai-toast.is-visible {
    transform: translateX(0);
    opacity: 1;
}

.btp-ai-toast__icon {
    width: 36px;
    height: 36px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    flex-shrink: 0;
}

.btp-ai-toast--success .btp-ai-toast__icon {
    background: linear-gradient(135deg, #10b981 0%, #059669 100%);
}

.btp-ai-toast--error .btp-ai-toast__icon {
    background: linear-gradient(135deg, #ef4444 0%, #dc2626 100%);
}

.btp-ai-toast__content {
    flex: 1;
}

.btp-ai-toast__title {
    font-weight: 700;
    font-size: 14px;
    margin-bottom: 2px;
}

.btp-ai-toast__msg {
    font-size: 13px;
    opacity: 0.8;
}

.btp-ai-toast__close {
    background: none;
    border: none;
    color: white;
    opacity: 0.4;
    cursor: pointer;
    font-size: 20px;
    padding: 0;
    line-height: 1;
}

.btp-ai-toast__close:hover {
    opacity: 1;
}

/* Progress bar inside toast */
.btp-ai-toast__progress {
    position: absolute;
    bottom: 0;
    left: 0;
    height: 3px;
    width: 100%;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 0 0 16px 16px;
    overflow: hidden;
}

.btp-ai-toast__progress-bar {
    height: 100%;
    width: 0%;
    background: rgba(255, 255, 255, 0.5);
}
