/* Custom Popup Modal Styles */
.custom-popup-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.8);
    display: none;
    z-index: 9999;
    backdrop-filter: blur(4px);
}

.custom-popup {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: white;
    border: 4px solid #dc3545;
    border-radius: 12px;
    box-shadow: 
        0 25px 80px rgba(0, 0, 0, 0.8),
        0 10px 30px rgba(220, 53, 69, 0.4),
        0 0 0 2px rgba(220, 53, 69, 0.2);
    min-width: 450px;
    max-width: 550px;
    z-index: 10000;
    overflow: hidden;
    backdrop-filter: blur(2px);
}

.custom-popup-header {
    background: #dc3545;
    color: white;
    padding: 15px 20px;
    font-weight: 600;
    font-size: 16px;
    display: flex;
    align-items: center;
}

.custom-popup-header i {
    margin-right: 10px;
    font-size: 18px;
}

.custom-popup-body {
    padding: 25px;
    color: #222;
    line-height: 1.6;
    font-size: 16px;
    background: #fafafa;
    border-top: 1px solid #e9ecef;
    border-bottom: 1px solid #e9ecef;
}

.custom-popup-body p {
    margin: 0 0 15px 0;
    font-weight: 500;
}

.custom-popup-body .product-name {
    font-weight: 700;
    color: #dc3545;
    background: rgba(220, 53, 69, 0.1);
    padding: 4px 8px;
    border-radius: 4px;
    border: 1px solid rgba(220, 53, 69, 0.2);
}

.custom-popup-body .warning-text {
    color: #dc3545;
    font-weight: 600;
    margin: 0;
    font-size: 15px;
}

.custom-popup-footer {
    padding: 20px 25px;
    background: #f1f3f4;
    display: flex;
    justify-content: flex-end;
    gap: 12px;
    border-top: 2px solid #dee2e6;
}

.custom-popup-btn {
    padding: 12px 24px;
    border: 2px solid transparent;
    border-radius: 6px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
    font-size: 15px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.custom-popup-btn-cancel {
    background: #6c757d;
    color: white;
}

.custom-popup-btn-cancel:hover {
    background: #5a6268;
}

.custom-popup-btn-delete {
    background: #dc3545;
    color: white;
}

.custom-popup-btn-delete:hover {
    background: #c82333;
}

/* Animation */
.custom-popup-overlay.show {
    display: block;
    animation: fadeIn 0.2s ease;
}

.custom-popup.show {
    animation: slideIn 0.2s ease;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes slideIn {
    from { 
        opacity: 0;
        transform: translate(-50%, -60%);
    }
    to { 
        opacity: 1;
        transform: translate(-50%, -50%);
    }
}

/* Mobile responsive */
@media (max-width: 768px) {
    .custom-popup {
        min-width: 90%;
        max-width: 90%;
        margin: 0 5%;
    }
    
    .custom-popup-footer {
        flex-direction: column;
    }
    
    .custom-popup-btn {
        width: 100%;
        margin: 0;
    }
}

/* Product-specific styling */
.custom-popup .product-name {
    font-weight: 600;
    color: #721c24;
    background-color: rgba(220, 53, 69, 0.1);
    padding: 2px 6px;
    border-radius: 4px;
}

.custom-popup .warning-text {
    color: #dc3545;
    font-weight: 500;
    margin-top: 8px;
    font-size: 0.9em;
}