/* Professional Toast Container */
.toast-container {
    position: fixed !important;
    top: 16px !important;
    right: 16px !important;
    z-index: 99999 !important;
    max-width: 380px;
    width: 100%;
    /* font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif; */
}

/* Compact Toast Base Styles */

.toast {
    /* color: black !important; */
    visibility: visible !important;
    display: block !important;
    
    
    background: #ffffff !important;
    opacity: 1 !important;

    border-radius: 12px;
    padding: 0;
    margin-bottom: 8px;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12), 0 2px 6px rgba(0, 0, 0, 0.08);
    border: 1px solid rgba(0, 0, 0, 0.05);
    animation: toastSlideIn 0.3s cubic-bezier(0.21, 1.02, 0.73, 1);
    transition: all 0.2s ease;
    position: relative;
    overflow: hidden;
    backdrop-filter: blur(8px);
}

/* Compact Toast Content */
.toast-content {
    padding: 14px 16px;
    display: flex;
    align-items: flex-start;
    gap: 12px;
    position: relative;
}

/* Compact Icon Backgrounds */
.toast-icon-bg {
    width: 32px;
    height: 32px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    font-weight: 600;
    font-size: 14px;
}

.toast-icon-bg.success {
    background: linear-gradient(135deg, #10b981, #059669);
    color: white;
}

.toast-icon-bg.error {
    background: linear-gradient(135deg, #ef4444, #dc2626);
    color: white;
}

.toast-icon-bg.warning {
    background: linear-gradient(135deg, #f59e0b, #d97706);
    color: white;
}

.toast-icon-bg.info {
    background: linear-gradient(135deg, #3b82f6, #2563eb);
    color: white;
}

.toast-icon-bg.cart {
    background: linear-gradient(135deg, #8b5cf6, #7c3aed);
    color: white;
}

.toast-icon-bg.order {
    background: linear-gradient(135deg, #06b6d4, #0891b2);
    color: white;
}

/* Compact Toast Message */
.toast-message {
    flex: 1;
    min-width: 0;
}

.toast-title {
    font-weight: 600;
    font-size: 14px;
    color: #111827;
    margin-bottom: 2px;
    line-height: 1.3;
}

.toast-body {
    font-size: 13px;
    color: #6b7280;
    line-height: 1.4;
    margin-bottom: 8px;
}

/* Compact Close Button */
.toast-close {
    background: rgba(0, 0, 0, 0.04);
    border: none;
    color: #9ca3af;
    cursor: pointer;
    padding: 4px;
    border-radius: 6px;
    transition: all 0.15s ease;
    flex-shrink: 0;
    width: 24px;
    height: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-top: -2px;
}

.toast-close:hover {
    background: rgba(0, 0, 0, 0.08);
    color: #374151;
}

.toast-close svg {
    width: 12px;
    height: 12px;
}

/* Compact Progress Bar */
.toast-progress {
    height: 2px;
    background: linear-gradient(90deg, #3b82f6, #8b5cf6, #06b6d4);
    opacity: 0.6;
    animation: toastProgress linear;
}

/* Compact Product Toast */
.toast-with-image .toast-content {
    align-items: center;
    padding: 12px 16px;
}

.toast-product-image {
    width: 36px;
    height: 36px;
    border-radius: 8px;
    object-fit: cover;
    flex-shrink: 0;
    border: 1px solid #e5e7eb;
}

.toast-product-info {
    flex: 1;
    min-width: 0;
}

.toast-product-name {
    font-weight: 600;
    font-size: 13px;
    color: #111827;
    margin-bottom: 1px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.toast-product-meta {
    font-size: 12px;
    color: #6b7280;
}

/* Toast Actions - Compact */
.toast-actions {
    margin-top: 6px;
}

.toast-btn {
    padding: 4px 10px;
    border: none;
    border-radius: 6px;
    font-size: 12px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.15s ease;
    margin-right: 6px;
}

.toast-btn-primary {
    background: #3b82f6;
    color: white;
}

.toast-btn-secondary {
    background: #f3f4f6;
    color: #374151;
    border: 1px solid #d1d5db;
}

/* Animations */
@keyframes toastSlideIn {
    from {
        transform: translateX(400px) scale(0.95);
        opacity: 0;
    }
    to {
        transform: translateX(0) scale(1);
        opacity: 1;
    }
}

@keyframes toastSlideOut {
    to {
        transform: translateX(400px) scale(0.95);
        opacity: 0;
    }
}

@keyframes toastProgress {
    from {
        width: 100%;
    }
    to {
        width: 0%;
    }
}

/* ============================================= */
/* CUSTOM ALERT & CONFIRM STYLES (Keep original) */
/* ============================================= */

/* Overlay */
.custom-alert-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(4px);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 10000;
    animation: fadeIn 0.3s ease;
    padding: 20px;
}

/* Alert Box */
.custom-alert-box {
    background: white;
    border-radius: 16px;
    padding: 24px;
    max-width: 400px;
    width: 100%;
    box-shadow: 0 20px 32px rgba(0, 0, 0, 0.15);
    animation: slideUp 0.3s ease;
    text-align: center;
    border: 1px solid rgba(0, 0, 0, 0.05);
}

/* Alert Icon Backgrounds */
.alert-icon-bg {
    width: 56px;
    height: 56px;
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 16px;
    font-weight: 600;
    font-size: 20px;
}

.alert-icon-bg.success {
    background: linear-gradient(135deg, #10b981, #059669);
    color: white;
}

.alert-icon-bg.error {
    background: linear-gradient(135deg, #ef4444, #dc2626);
    color: white;
}

.alert-icon-bg.warning {
    background: linear-gradient(135deg, #f59e0b, #d97706);
    color: white;
}

.alert-icon-bg.info {
    background: linear-gradient(135deg, #3b82f6, #2563eb);
    color: white;
}

/* Alert Content */
.custom-alert-content {
    margin-bottom: 20px;
}

.custom-alert-title {
    font-size: 18px;
    font-weight: 600;
    color: #111827;
    margin-bottom: 8px;
    line-height: 1.3;
}

.custom-alert-message {
    font-size: 14px;
    color: #6b7280;
    line-height: 1.5;
}

/* Alert Actions */
.custom-alert-actions {
    display: flex;
    gap: 10px;
    justify-content: center;
}

.custom-alert-btn {
    padding: 10px 20px;
    border: none;
    border-radius: 10px;
    font-weight: 500;
    font-size: 14px;
    cursor: pointer;
    transition: all 0.2s ease;
    min-width: 90px;
    font-family: inherit;
}

.custom-alert-btn:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.12);
}

.custom-alert-btn:active {
    transform: translateY(0);
}

.custom-alert-primary {
    background: linear-gradient(135deg, #3b82f6, #2563eb);
    color: white;
    box-shadow: 0 2px 6px rgba(59, 130, 246, 0.3);
}

.custom-alert-secondary {
    background: #f8fafc;
    color: #475569;
    border: 1px solid #e2e8f0;
}

.custom-alert-secondary:hover {
    background: #f1f5f9;
}

.custom-alert-danger {
    background: linear-gradient(135deg, #ef4444, #dc2626);
    color: white;
    box-shadow: 0 2px 6px rgba(239, 68, 68, 0.3);
}

/* Confirm Specific Styles */
.custom-alert-confirm {
    padding: 24px;
}

/* Animations */
@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes slideUp {
    from { 
        opacity: 0;
        transform: translateY(16px) scale(0.96);
    }
    to { 
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

/* Responsive Design */
@media (max-width: 480px) {
    .toast-container {
        top: 12px;
        right: 12px;
        left: 12px;
        max-width: none;
    }
    
    .toast-content {
        padding: 12px 14px;
        gap: 10px;
    }
    
    .toast-icon-bg {
        width: 28px;
        height: 28px;
        font-size: 12px;
    }
    
    .toast-title {
        font-size: 13px;
    }
    
    .toast-body {
        font-size: 12px;
    }
    
    .custom-alert-box {
        padding: 20px;
        margin: 0;
    }
    
    .custom-alert-actions {
        flex-direction: column;
    }
    
    .custom-alert-btn {
        width: 100%;
    }
    
    .alert-icon-bg {
        width: 48px;
        height: 48px;
        font-size: 18px;
    }
}