#iframe-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.85);
    z-index: 9999;
}

#iframe-container {
    position: relative;
    width: 100%;
    height: 100%;
    padding: 20px;
    box-sizing: border-box;
}

#fullscreen-iframe {
    width: 100%;
    height: 100%;
    border: 8px solid rgba(0, 0, 0, 0.7);
    display: none; /* hidden until loaded */
    box-shadow: 0 0 20px rgba(0,0,0,0.8);
}

#iframe-close {
    position: absolute;
    top: 10px;
    right: 15px;
    background: red;
    color: white;
    border: none;
    font-size: 20px;
    cursor: pointer;
    z-index: 10000;
    padding: 5px 10px;
    border-radius: 4px;
}

/* Loader full cover */
#iframe-loader {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
}

/* Loader rectangle box */
.loader-box {
    background: rgba(30, 30, 30, 0.95);
    padding: 30px 50px;
    border-radius: 10px;
    text-align: center;
    box-shadow: 0 0 15px rgba(0,0,0,0.6);
    color: white;
    min-width: 300px;
}

/* Spinner */
.loader-spinner {
    border: 6px solid rgba(255, 255, 255, 0.3);
    border-top: 6px solid white;
    border-radius: 50%;
    width: 50px;
    height: 50px;
    animation: spin 1s linear infinite;
    margin: 0 auto 15px auto;
}

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