/**
 * PREMIUM TOAST NOTIFICATION SYSTEM
 * Global toast styles for seller panel
 * Usage: Include this CSS file in your page header
 */

/* Toast Wrapper */
.xotic-toast-wrapper {
    max-width: 420px;
    width: 100%;
}

/* Premium Toast Base */
.premium-toast {
    border-radius: 12px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.12),
        0 4px 12px rgba(0, 0, 0, 0.08);
    overflow: hidden;
    backdrop-filter: blur(10px);
    will-change: transform, opacity;
    /* Initial state - off screen */
    transform: translateX(60px) scale(0.97);
    opacity: 0;
}

/* Show state */
.premium-toast.show {
    animation: slideInFromRight 0.4s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

/* Animations */
@keyframes slideInFromRight {
    0% {
        transform: translateX(60px) scale(0.97);
        opacity: 0;
    }

    100% {
        transform: translateX(0) scale(1);
        opacity: 1;
    }
}

/* Hide animation - plays BEFORE removal */
.premium-toast.hide {
    animation: slideOutToLeft 0.35s cubic-bezier(0.4, 0, 1, 1) forwards !important;
}

@keyframes slideOutToLeft {
    0% {
        transform: translateX(0) scale(1);
        opacity: 1;
    }

    100% {
        transform: translateX(-60px) scale(0.97);
        opacity: 0;
    }
}

/* Bootstrap toast show/hide override */
.premium-toast.showing {
    animation: slideInFromRight 0.4s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

.premium-toast.hiding {
    animation: slideOutToLeft 0.35s cubic-bezier(0.4, 0, 1, 1) forwards !important;
}

/* Success Toast */
.premium-toast.toast-success {
    background: linear-gradient(135deg, #10b981 0%, #059669 100%);
}

/* Error Toast */
.premium-toast.toast-error {
    background: linear-gradient(135deg, #ef4444 0%, #dc2626 100%);
}

/* Warning Toast */
.premium-toast.toast-warning {
    background: linear-gradient(135deg, #f59e0b 0%, #d97706 100%);
}

/* Info Toast */
.premium-toast.toast-info {
    background: linear-gradient(135deg, #3b82f6 0%, #2563eb 100%);
}

/* Icon Circle */
.toast-icon-circle {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.25);
    backdrop-filter: blur(10px);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    color: white;
    flex-shrink: 0;
}

/* Title Text */
.toast-title-text {
    font-size: 16px;
    font-weight: 600;
    color: white;
    line-height: 1.4;
    letter-spacing: -0.01em;
}

/* Message Text */
.toast-message-text {
    font-size: 14px;
    font-weight: 400;
    color: rgba(255, 255, 255, 0.92);
    line-height: 1.5;
}

#toastActions .btn {
    font-size: 13px;
    padding: 4px 12px;
    border-radius: 6px;
}

#toastConfirmBtn {
    color: #ed930a;
}

/* Close Button */
.toast-close-btn {
    width: 28px;
    height: 28px;
    border: none;
    background: rgba(255, 255, 255, 0.15);
    color: white;
    border-radius: 6px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    flex-shrink: 0;
    font-size: 13px;
}

.toast-close-btn:hover {
    background: rgba(255, 255, 255, 0.25);
    transform: scale(1.05);
}

.toast-close-btn:active {
    transform: scale(0.95);
}

/* Responsive */
@media (max-width: 576px) {
    .xotic-toast-wrapper {
        left: 1rem;
        right: 1rem;
        max-width: none;
    }

    .premium-toast {
        border-radius: 10px;
    }

    .toast-title-text {
        font-size: 15px;
    }

    .toast-message-text {
        font-size: 13px;
    }

    .toast-icon-circle {
        width: 40px;
        height: 40px;
        font-size: 18px;
    }
}

/* Accessibility - Reduced Motion */
@media (prefers-reduced-motion: reduce) {
    .premium-toast {
        animation: none;
    }

    .toast-close-btn:hover {
        transform: none;
    }
}