/* iSTEMLabsAfrica — Virtual Lab Workbench
   Full-screen lab iframe overlay launched by lab-loader.js.
   Extracted from legacy styles.css onto the design-token system. */

/* ------------------------------------------------------------------ */
/* Lab container (fixed full-screen overlay below navbar)              */
/* ------------------------------------------------------------------ */
.lab-container {
    position: fixed;
    top: var(--navbar-height);
    left: 0;
    right: 0;
    bottom: 0;
    background: var(--surface);
    z-index: 999;
}

.lab-container__iframe {
    width: 100%;
    height: 100%;
    border: none;
    display: block;
}

.lab-container__close {
    position: fixed;
    top: calc(var(--navbar-height) + var(--space-sm));
    right: var(--space-sm);
    z-index: 1001;
    background: color-mix(in srgb, var(--on-surface) 60%, transparent);
    color: var(--surface);
    border: none;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    font-size: 20px;
    line-height: 1;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition-base);
    -webkit-appearance: none;
}

.lab-container__close:hover {
    background: var(--error);
}

/* ------------------------------------------------------------------ */
/* Responsive                                                         */
/* ------------------------------------------------------------------ */
@media (max-width: 768px) {
    .lab-container__close {
        top: calc(var(--navbar-height) + var(--space-xs));
        right: var(--space-xs);
        width: 36px;
        height: 36px;
        font-size: 18px;
    }
}
