/**
 * iDonate Modal Styles
 */

/* Modal Container */
#top-level-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.7);
    z-index: 99999;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: opacity 0.3s ease;
}

#top-level-container.modal-inactive {
    opacity: 0;
    pointer-events: none;
}

#top-level-container.modal-active {
    opacity: 1;
    pointer-events: all;
}

/* Inner Container */
#inner-container {
    position: relative;
    width: 90%;
    max-width: 900px;
    height: 90%;
    max-height: 900px;
    background: white;
    border-radius: 12px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.3);
    overflow: hidden;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

/* Close Button */
#x-interface {
    position: absolute;
    top: 15px;
    right: 15px;
    font-size: 36px;
    line-height: 1;
    color: #666;
    cursor: pointer;
    z-index: 100001;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: white;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    transition: all 0.2s ease;
}

#x-interface:hover {
    background: #f5f5f5;
    color: #333;
    transform: scale(1.1);
}

/* iFrame */
#gf-iframe {
    width: 100%;
    height: 100%;
    border: none;
    border-radius: 12px;
    transition: opacity 0.3s ease;
}

#gf-iframe.iframe-loading {
    opacity: 0;
}

#gf-iframe.iframe-loaded {
    opacity: 1;
}

/* Loading Spinner */
.loading-spinner {
    position: absolute;
    width: 50px;
    height: 50px;
    border: 4px solid #f3f3f3;
    border-top: 4px solid #1C476A;
    border-radius: 50%;
    animation: spin 1s linear infinite;
    z-index: 100000;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Loading Text */
.loading-text {
    position: absolute;
    top: 55%;
    left: 50%;
    transform: translateX(-50%);
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, sans-serif;
    font-size: 16px;
    color: #666;
    margin-top: 20px;
    z-index: 100000;
}

/* Mobile Responsive */
@media (max-width: 768px) {
    #inner-container {
        width: 95%;
        height: 95%;
        max-height: none;
    }
    
    #x-interface {
        top: 10px;
        right: 10px;
        font-size: 30px;
        width: 35px;
        height: 35px;
    }
}

