/**
 * External Link Popup Styles
 */

/* Popup Overlay */
.external-link-popup-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(4px);
    z-index: 999999;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
    padding: 20px;
}

.external-link-popup-overlay.active {
    opacity: 1;
    visibility: visible;
}

/* Popup Container */
.external-link-popup-container {
    background: #ffffff;
    border-radius: 12px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.3);
    max-width: 500px;
    width: 100%;
    max-height: 90vh;
    overflow-y: auto;
    transform: scale(0.9) translateY(20px);
    transition: transform 0.3s ease;
    position: relative;
}

.external-link-popup-overlay.active .external-link-popup-container {
    transform: scale(1) translateY(0);
}

/* Popup Header - Removed for GIGW style */

/* Popup Body */
.external-link-popup-body {
    padding: 30px 24px;
    text-align: left;
}

.external-link-popup-message {
    font-size: 16px;
    color: #1e40af;
    margin: 0;
    line-height: 1.6;
    font-weight: 400;
}

/* Popup Footer */
.external-link-popup-footer {
    padding: 20px 24px;
    border-top: 1px solid #e5e7eb;
    display: flex;
    gap: 12px;
    justify-content: center;
    flex-wrap: wrap;
    background: #ffffff;
    border-radius: 0 0 12px 12px;
}

.external-link-popup-btn {
    padding: 12px 32px;
    border: 2px solid #d1d5db;
    background: #ffffff;
    color: #374151;
    border-radius: 8px;
    font-size: 15px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 100px;
    text-decoration: none;
}

.external-link-popup-btn:hover {
    background: #f3f4f6;
    border-color: #9ca3af;
}

.external-link-popup-btn:focus {
    outline: 2px solid #3b82f6;
    outline-offset: 2px;
}

.external-link-popup-btn-primary {
    background: #1e40af;
    color: #ffffff;
    border-color: #1e40af;
}

.external-link-popup-btn-primary:hover {
    background: #1e3a8a;
    border-color: #1e3a8a;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(30, 64, 175, 0.4);
}

/* External Link Indicator */
.external-link-indicator {
    display: inline-block;
    margin-left: 4px;
    opacity: 0.7;
    font-size: 0.85em;
    vertical-align: middle;
}

.external-link-indicator i {
    font-size: 0.9em;
}

/* Responsive */
@media (max-width: 640px) {
    .external-link-popup-container {
        max-width: 100%;
        margin: 10px;
        border-radius: 8px;
    }

    .external-link-popup-header {
        padding: 16px 20px;
        border-radius: 8px 8px 0 0;
    }

    .external-link-popup-title {
        font-size: 18px;
    }

    .external-link-popup-body {
        padding: 20px;
    }

    .external-link-popup-footer {
        padding: 16px 20px;
        flex-direction: column;
    }

    .external-link-popup-btn {
        width: 100%;
        justify-content: center;
    }

    .external-link-popup-icon {
        font-size: 40px;
    }
}

/* Animation for popup */
@keyframes popupSlideIn {
    from {
        opacity: 0;
        transform: scale(0.9) translateY(20px);
    }
    to {
        opacity: 1;
        transform: scale(1) translateY(0);
    }
}

.external-link-popup-overlay.active .external-link-popup-container {
    animation: popupSlideIn 0.3s ease;
}


 
#extPopup {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.55);
    z-index: 999999;
    justify-content: center;
    align-items: center;
}

#extPopupBox {
    width: 450px;
    background: white;
    border-radius: 12px;
    padding: 25px;
    font-family: Arial;
    text-align: center;
}

#extPopupBox button {
    margin: 10px 15px;
    padding: 8px 26px;
    border-radius: 6px;
    border: none;
    font-size: 15px;
    cursor: pointer;
}

#extPopupOk {
    background: #0d6efd;
    color: white;
}

#extPopupCancel {
    background: #e5e5e5;
}
 

 