/* =========================================
   RESPONSIVE ZOOM FIX (Added for 150% Zoom)
   ========================================= */
@media screen and (max-width: 1200px) {
    /* 1. Change the main container to stack vertically */
    .container {
        display: flex;
        flex-direction: column !important;
        height: auto !important;
        overflow-x: hidden;
    }

    /* 2. Turn the Left Sidebar into a Top Toolbar */
    .side-lang-buttons {
        width: 100% !important;
        height: auto !important;
        position: relative !important;
        top: 0; 
        left: 0;
        
        display: flex !important;
        flex-direction: row !important;
        overflow-x: auto !important;
        white-space: nowrap;
        padding: 10px;
        z-index: 1000;

        /* --- LIGHT MODE DEFAULTS (New) --- */
        background-color: #f8f9fa; /* Light grey/white */
        border-bottom: 2px solid #ccc;
        border-right: none !important;
        color: #333; /* Dark text for light mode */
    }

    /* --- DARK MODE OVERRIDE (New) --- */
    body.dark-mode .side-lang-buttons {
        background-color: #1a1a1a;
        border-bottom: 2px solid #333;
        color: #fff; /* White text for dark mode */
    }

    /* 3. Adjust the Main Compiler Area */
    .main-compiler {
        width: 100% !important;
        margin-left: 0 !important;
        padding: 10px;
        flex: 1;
    }

    /* 4. Tweak the buttons */
    .lang-btn-small {
        flex: 0 0 auto;
        margin-right: 15px !important;
        margin-bottom: 0 !important;
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        width: 70px;
    }
}