/* FORCE STYLE - EMERGENCY FIX */

/* 1. FORCE 3-COLUMN LAYOUT */
.sim-container {
    display: flex !important;
    flex-direction: row !important;
    max-width: 1400px;
    margin: 0 auto;
    height: 600px;
    gap: 15px;
    padding: 10px;
    background: #e2e8f0;
}

.sim-col-left {
    width: 280px !important;
    display: flex !important;
    flex-direction: column !important;
}

.sim-col-center {
    flex: 1 !important;
    display: flex !important;
    flex-direction: column !important;
    background: black !important;
    position: relative !important;
    overflow: hidden !important;
    height: 100% !important;
}

.sim-col-right {
    width: 320px !important;
    display: flex !important;
    flex-direction: column !important;
}

/* 2. FORCE LOGIN MODAL VISIBILITY */
.login-modal-overlay {
    position: fixed !important;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: rgba(0, 0, 0, 0.9);
    z-index: 20000 !important;
    /* Removed !important from display to allow JS to hide it */
    display: flex;
    justify-content: center;
    align-items: center;
    transition: opacity 0.4s;
    pointer-events: auto;
    /* Catch clicks when visible */
}

/* Helper to forcefully hide */
.login-modal-overlay.hidden {
    display: none !important;
    pointer-events: none !important;
}

.login-modal {
    background: rgba(255, 255, 255, 0.95);
    width: 600px;
    border-radius: 8px;
    z-index: 20001 !important;
    display: block;
    opacity: 1;
}

/* 3. ENSURE CONTROLS ARE VISIBLE */
.sim-overlay {
    z-index: 50 !important;
}


/* 4. ENABLE PAGE SCROLLING */
body,
html {
    overflow-y: auto !important;
    height: auto !important;
}

/* Ensure the wrapper doesn't lock scroll */
.app-body,
.simulation-app {
    height: auto !important;
    overflow: visible !important;
}