/* ============================================
   ZA Toast — Modern Toast Notification System
   Works on both customer pages & admin panel
   ============================================ */

/* Toast Container */
#za-toast-container {
    position: fixed;
    top: 24px;
    right: 24px;
    z-index: 99999;
    display: flex;
    flex-direction: column;
    gap: 10px;
    pointer-events: none;
    max-width: 420px;
    width: calc(100vw - 48px);
}

/* Individual Toast */
.za-toast {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    padding: 14px 18px;
    border-radius: 14px;
    background: #ffffff;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.12), 0 2px 8px rgba(0, 0, 0, 0.06);
    border: 1px solid rgba(0, 0, 0, 0.06);
    pointer-events: auto;
    transform: translateX(120%);
    opacity: 0;
    transition: all 0.4s cubic-bezier(0.22, 1, 0.36, 1);
    cursor: pointer;
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    max-width: 100%;
    overflow: hidden;
}

.za-toast.za-toast-show {
    transform: translateX(0);
    opacity: 1;
}

.za-toast.za-toast-exit {
    transform: translateX(120%);
    opacity: 0;
}

/* Toast Icon */
.za-toast-icon {
    flex-shrink: 0;
    width: 28px;
    height: 28px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 15px;
    margin-top: 1px;
}

/* Toast Content */
.za-toast-content {
    flex: 1;
    min-width: 0;
}

.za-toast-title {
    font-weight: 700;
    font-size: 13px;
    line-height: 1.3;
    margin-bottom: 2px;
}

.za-toast-message {
    font-size: 13px;
    line-height: 1.45;
    color: #64748b;
    word-wrap: break-word;
    overflow-wrap: break-word;
}

/* Toast Close Button */
.za-toast-close {
    flex-shrink: 0;
    width: 24px;
    height: 24px;
    border-radius: 6px;
    border: none;
    background: transparent;
    color: #94a3b8;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
    transition: all 0.2s;
    padding: 0;
    margin-top: 1px;
}

.za-toast-close:hover {
    background: #f1f5f9;
    color: #475569;
}

/* Progress Bar */
.za-toast-progress {
    position: absolute;
    bottom: 0;
    left: 0;
    height: 3px;
    border-radius: 0 0 14px 14px;
    transition: width linear;
}

/* ─── Type Variants ─── */

/* Success */
.za-toast-success { border-left: 4px solid #22c55e; }
.za-toast-success .za-toast-icon { background: #dcfce7; color: #16a34a; }
.za-toast-success .za-toast-title { color: #15803d; }
.za-toast-success .za-toast-progress { background: #22c55e; }

/* Error */
.za-toast-error { border-left: 4px solid #ef4444; }
.za-toast-error .za-toast-icon { background: #fee2e2; color: #dc2626; }
.za-toast-error .za-toast-title { color: #b91c1c; }
.za-toast-error .za-toast-progress { background: #ef4444; }

/* Warning */
.za-toast-warning { border-left: 4px solid #f59e0b; }
.za-toast-warning .za-toast-icon { background: #fef3c7; color: #d97706; }
.za-toast-warning .za-toast-title { color: #92400e; }
.za-toast-warning .za-toast-progress { background: #f59e0b; }

/* Info */
.za-toast-info { border-left: 4px solid #3b82f6; }
.za-toast-info .za-toast-icon { background: #dbeafe; color: #2563eb; }
.za-toast-info .za-toast-title { color: #1d4ed8; }
.za-toast-info .za-toast-progress { background: #3b82f6; }

/* ─── Responsive ─── */
@media (max-width: 480px) {
    #za-toast-container {
        top: 12px;
        right: 12px;
        left: 12px;
        width: auto;
        max-width: none;
    }

    .za-toast {
        padding: 12px 14px;
        border-radius: 12px;
    }
}
