/* ========================================
   GLOBAL POPUP STYLES - YOUR DESIGN
   Har page par same design
   ======================================== */

/* Popup Container */
.popup-container {
    position: fixed;
    top: 20px;
    right: 20px;
    z-index: 999999;
    display: flex;
    flex-direction: column;
    gap: 10px;
    pointer-events: none;
    max-width: 350px;
    width: calc(100% - 40px);
}

/* Base Popup */
.global-popup {
    background: white;
    border-radius: 20px;
    padding: 20px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15);
    display: flex;
    align-items: flex-start;
    gap: 15px;
    transform: translateX(120%);
    opacity: 0;
    transition: all 0.3s ease;
    pointer-events: auto;
    border-left: 4px solid;
    animation: slideInRight 0.3s ease forwards;
}

@keyframes slideInRight {
    from {
        transform: translateX(120%);
        opacity: 0;
    }
    to {
        transform: translateX(0);
        opacity: 1;
    }
}

@keyframes slideOutRight {
    from {
        transform: translateX(0);
        opacity: 1;
    }
    to {
        transform: translateX(120%);
        opacity: 0;
    }
}

.global-popup.closing {
    animation: slideOutRight 0.3s ease forwards;
}

/* Popup Types */
.global-popup.success {
    border-left-color: #10b981;
}

.global-popup.error {
    border-left-color: #EF4444;
}

.global-popup.info {
    border-left-color: #F59E0B;
}

.global-popup.warning {
    border-left-color: #F59E0B;
}

/* Popup Icon */
.popup-icon {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.popup-icon.success {
    background: rgba(16, 185, 129, 0.1);
    color: #10b981;
}

.popup-icon.error {
    background: rgba(239, 68, 68, 0.1);
    color: #EF4444;
}

.popup-icon.info {
    background: rgba(245, 158, 11, 0.1);
    color: #F59E0B;
}

.popup-icon.warning {
    background: rgba(245, 158, 11, 0.1);
    color: #F59E0B;
}

.popup-icon i {
    font-size: 28px;
}

/* Popup Content */
.popup-content {
    flex: 1;
}

.popup-title {
    font-size: 16px;
    font-weight: 700;
    color: #1e293b;
    margin: 0 0 5px 0;
}

.popup-message {
    font-size: 13px;
    color: #64748b;
    margin: 0;
    line-height: 1.5;
}

/* Popup Close Button */
.popup-close {
    margin-top: 12px;
    text-align: right;
}

.popup-close-btn {
    background: #f1f5f9;
    border: none;
    padding: 6px 16px;
    border-radius: 30px;
    font-size: 12px;
    font-weight: 600;
    color: #1e293b;
    cursor: pointer;
    transition: all 0.2s;
}

.popup-close-btn:hover {
    background: #e2e8f0;
}

/* ========================================
   CONFIRMATION POPUP - YOUR DESIGN
   ======================================== */
.confirm-popup-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.5);
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 1000000;
    backdrop-filter: blur(5px);
}

.confirm-popup {
    background: white;
    border-radius: 24px;
    width: 90%;
    max-width: 360px;
    padding: 25px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    transform: scale(0.8);
    opacity: 0;
    transition: all 0.3s ease;
}

.confirm-popup-overlay.show .confirm-popup {
    transform: scale(1);
    opacity: 1;
}

.confirm-popup .icon {
    width: 70px;
    height: 70px;
    background: rgba(239, 68, 68, 0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 15px;
}

.confirm-popup .icon i {
    font-size: 40px;
    color: #EF4444;
}

.confirm-popup .title {
    font-size: 20px;
    font-weight: 700;
    color: #1e293b;
    text-align: center;
    margin-bottom: 20px;
}

.confirm-popup .details {
    background: #f8fafc;
    border-radius: 16px;
    padding: 15px;
    margin: 15px 0;
}

.confirm-popup .detail-row {
    display: flex;
    justify-content: space-between;
    padding: 10px 0;
    border-bottom: 1px dashed #e2e8f0;
    font-size: 14px;
}

.confirm-popup .detail-row:last-child {
    border-bottom: none;
}

.confirm-popup .detail-label {
    color: #64748b;
}

.confirm-popup .detail-value {
    font-weight: 600;
    color: #EF4444;
}

.confirm-popup .buttons {
    display: flex;
    gap: 10px;
    margin-top: 20px;
}

.confirm-popup .btn {
    flex: 1;
    padding: 14px;
    border-radius: 30px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    border: none;
    transition: all 0.2s;
}

.confirm-popup .btn.confirm {
    background: linear-gradient(135deg, #EF4444, #F59E0B);
    color: white;
}

.confirm-popup .btn.cancel {
    background: #f1f5f9;
    color: #64748b;
}

.confirm-popup .btn.confirm:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 16px rgba(239, 68, 68, 0.3);
}

.confirm-popup .btn.cancel:hover {
    background: #e2e8f0;
}

/* ========================================
   COPY LINK POPUP - Bottom Center
   ======================================== */
.copy-popup {
    position: fixed;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%) translateY(100px);
    background: #1e293b;
    color: white;
    padding: 12px 25px;
    border-radius: 50px;
    font-size: 14px;
    font-weight: 500;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
    z-index: 999999;
    opacity: 0;
    transition: all 0.3s ease;
    white-space: nowrap;
    display: flex;
    align-items: center;
    gap: 8px;
}

.copy-popup.show {
    transform: translateX(-50%) translateY(0);
    opacity: 1;
}

.copy-popup i {
    color: #10b981;
    font-size: 16px;
}

/* ========================================
   BUTTON CLICK POPUP - Small tooltip style
   ======================================== */
.click-popup {
    position: absolute;
    background: #1e293b;
    color: white;
    padding: 6px 12px;
    border-radius: 30px;
    font-size: 12px;
    font-weight: 500;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
    z-index: 999999;
    opacity: 0;
    transform: translateY(10px);
    transition: all 0.2s ease;
    pointer-events: none;
    white-space: nowrap;
}

.click-popup.show {
    opacity: 1;
    transform: translateY(0);
}

.click-popup i {
    margin-right: 4px;
    font-size: 10px;
}

.click-popup.success i { color: #10b981; }
.click-popup.error i { color: #EF4444; }
.click-popup.info i { color: #F59E0B; }

/* Responsive */
@media (max-width: 480px) {
    .popup-container {
        left: 20px;
        right: 20px;
        width: auto;
    }
    
    .confirm-popup .buttons {
        flex-direction: column;
    }
    
    .copy-popup {
        white-space: normal;
        text-align: center;
        width: calc(100% - 40px);
        bottom: 20px;
    }
}