/* styles.css */

/* General hover styling */
*:hover {
    transition: background-color 0.3s ease, color 0.3s ease, box-shadow 0.3s ease;
    /*filter: brightness(1.1); /* Slightly brighten hovered elements */
}

/* Custom scrollbar styling for all scrollable elements */
*::-webkit-scrollbar {
    width: 20px; /* Width of vertical scrollbar */
    height: 20px; /* Height of horizontal scrollbar */
}

*::-webkit-scrollbar-thumb {
    background-color: #444; /* Dark color for the scrollbar thumb */
    border-radius: 4px; /* Rounded corners for the thumb */
    border: 2px solid #222; /* Subtle border for contrast */
}

*::-webkit-scrollbar-track {
    background: #1e1e1e; /* Match the background of the editor */
    border-radius: 4px; /* Rounded corners for the track */
}

/* Scrollbar thumb hover effect */
*::-webkit-scrollbar-thumb:hover {
    background-color: #666; /* Lighten the thumb on hover */
}

/* Scrollbar thumb active (when clicked) */
*::-webkit-scrollbar-thumb:active {
    background-color: #888; /* Further lighten when active */
}



* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html, body {
    height: 100%;
    font-family: 'Fira Code', 'Courier New', monospace;
    background-color: #1e1e1e;
    color: #f5f5f5;
}

#container {
    display: flex;
    height: 100vh;
    width: 100vw;
    overflow: hidden;
}

/* Menu Panel */
#menu-panel {
    height: 40px;
    width: 100%;
    background-color: #333;
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
    z-index: 1000;
    position: fixed;
    top: 0;
    left: 0;
}

/* Menu Bar */
#menu-bar{
    display: flex;
    justify-content: flex-start;
    align-items: flex-end;
    height: 100%;
    width: 100%;
    font-family: Arial, sans-serif; /* Use Arial font */
}

#desktop-menu-bar{
    flex: 1;
    display: flex;
    align-items: flex-end;
    height: 100%;
}

#mobile-menu-bar{
    flex: 1;
    display: flex;
    align-items: flex-end;
    height: 100%;
}

#menu-bar #divisor {
    flex: 1;
}

#menu-bar ul {
    list-style: none;
    display: flex;
    gap: 0px;
    height: 100%;
}

#menu-bar ul li {
    position: relative;
    display: flex;
    align-items: center; /* Center text vertically */
    justify-content: center; /* Center text horizontally */
    height: 100%;
}

#menu-bar .btn {
    text-decoration: none;
    color: #fff;
    font-size: 1rem;
    padding: 10px 15px;
    border-radius: 4px;
    transition: background-color 0.3s ease;
    text-align: center; /* Center text */
}

#menu-bar li:hover {
    background-color: #444;
}

#menu-bar .dropbtn {
    text-decoration: none;
    color: #fff;
    font-size: 1rem;
    padding: 10px 15px;
    border-radius: 4px;
    transition: background-color 0.3s ease;
    text-align: center; /* Center text */
}

#menu-bar .dropdown-content {
    display: none;
    position: absolute;
    top: 100%;
    left: auto;
    background-color: #333;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
    border-radius: 4px;
    z-index: 1000;
    min-width: 150px;
    max-width: 90vw;
    overflow-x: auto;
    left: 0px;
    transform: translateX(-50%);
    overflow-x: auto;
    box-sizing: border-box;
}

#menu-bar .dropdown-content a {
    display: block;
    text-decoration: none;
    color: #fff;
    padding: 10px 15px;
    font-size: 0.9rem;
    transition: background-color 0.3s ease;
    text-align: center; /* Center text */
}

#menu-bar .dropdown-content a:hover {
    background-color: #444;
}

#menu-bar .dropdown:hover .dropdown-content {
    display: block;
}

#menu-bar ul li.not-selectable:hover,
#menu-bar ul li.not-selectable .btn:hover,
#menu-bar ul li.not-selectable .dropbtn:hover {
    background-color: inherit !important;
    cursor: default !important;
}

/* Left Panel */
#left-panel {
    width: 500px;
    min-width: 500px;
    max-width: 80%;
    display: flex;
    flex-direction: column;
    background-color: #1e1e1e;
    padding: 0;
    margin-top: 40px;
    overflow: hidden;
    position: relative;
}

/* Runner Panel */
#runner-panel {
    height: 50px;
    width: 100%;
    background-color: #222;
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.2);
    z-index: 500;
    position: sticky;
    top: 0;
}

#runner-panel input[type="text"] {
    flex: 1;
    padding: 5px;
    font-size: 0.9rem;
    border: 1px solid #444;
    border-radius: 4px;
    background-color: #1e1e1e;
    color: #f5f5f5;
    outline: none;
}

#runner-panel .patch {
    flex: 1;
}

#runner-panel input[type="text"]::placeholder {
    color: #888;
}

#runner-panel input[type="text"]::placeholder {
    color: #888;
}

/*invalid file name*/
#runner-panel input[type="text"].invalid {
    color: #f00040;
}

#runner-panel select {
    padding: 5px 10px;
    font-size: 0.9rem;
    border: 1px solid #444;
    border-radius: 4px;
    background-color: #1e1e1e;
    color: #f5f5f5;
    outline: none;
}

#runner-panel {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 5px 10px;
    background-color: #222;
    border-bottom: 1px solid #333;
    gap: 10px;
    flex-wrap: wrap; /* Allow wrapping for better merging */
}

#runner-panel .group {
    display: flex;
    gap: 2px; /* Reduce gap to bring buttons closer */
    background-color: #444; /* Add background to visually merge groups */
    padding: 0px; /* Add slight padding for spacing inside the group */
    border-radius: 20px; /* Rounded corners for a merged look */
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2); /* Subtle shadow for depth */
}

#runner-panel button {
    padding: 0px;
    font-size: 1.2rem;
    border: none;
    border-radius: 50%;
    background-color: #444;
    color: #fff;
    cursor: pointer;
    transition: background-color 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 35px;
    height: 35px;
}

#runner-panel button:hover {
    background-color: #555;
}

#runner-panel button:active {
    background-color: #666;
}

/* Workflow Panel */
#left-workflow-panel {
    flex: 1;
    display: flex;
    flex-direction: row;
    overflow: hidden;
}

/* Tabs Panel */
#tabs-panel {
    width: 50px;
    height: 100%;
    background-color: #2a2a2a;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    overflow: hidden;
    padding-top: 5px;
    padding-bottom: 5px;
    padding-left: 10px;
    gap: 5px;
}

/* Individual Tab Styling */
#tabs-panel .tab {
    width: 100%;
    max-width: 100%;
    height: 40px;
    display: flex;
    align-items: center;
    text-align: left;
    justify-content: flex-start;
    padding-left: 45px;
    box-sizing: border-box;
    cursor: pointer;
    transition: background-color 0.3s ease, border-radius 0.3s ease;
    border-left: 5px solid var(--tab-active-border-color, #888); /* Highlight active tab state*/
}

#tabs-panel .tab:hover {
    background-color: #444;
}

#tabs-panel .tab.active {
    background-color: #555;
    border-top-left-radius: 5px; /* Rounded top-left corner */
    border-bottom-left-radius: 5px; /* Rounded bottom-left corner */
    border-left: 7px solid var(--tab-active-border-color, #888);
}

/* Code and Console Panel */
#left-codeAndConsole-panel {
    flex: 1;
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

/* Add New Tab Button */
#tabs-panel .add-tab {
    width: 100%;
    max-width: 100%;
    height: 40px;
    background-color: #333; /* Green background */
    color: white;
    border: none;
    padding: 10px;
    font-size: 16px;
    border-radius: 5px;
    cursor: pointer;
}

#tabs-panel .add-tab:hover {
    background-color: #444;
}

#tabs-panel .add-tab:active {
    background-color: #555;
}

/* Code Input */
#code-input {
    flex: 1;
    width: 100%;
    resize: none;
    font-family: 'Fira Code', monospace;
    font-size: 1rem;
    padding: 1rem;
    border: none;
    background-color: #1e1e1e;
    color: #f5f5f5;
    outline: none;
    
}

/* Console Panel */
#console-panel {
    height: 150px;
    background-color: #111;
    color: #0f0;
    font-family: monospace;
    font-size: 13px;
    padding: 10px;
    overflow-y: auto;
    border-top: 1px solid #333;
}

/* Console Output */
#console-output {
    white-space: pre-wrap;
    padding: 10px;
    gap: 5px
}

/* Right Panel */
#right-panel {
    flex: 1; /* Take up remaining space */
    display: flex;
    flex-direction: column;
    margin-top: 40px;
    overflow: hidden;
    position: relative;
}

/* Output Areas */
#output-top, #output-bottom {
    height: 100px;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
    padding: 0;
    /*margin-right: 200px; /* Make space for the variable bank */
}

#output-bottom {
    flex: 1;
    border-bottom: none;
    background-color: #1e1e1e;
    /*margin-right: 200px; /* Make space for the variable bank */
}

#code-input {
    flex: 1;
    padding: 0;
    background-color: #1e1e1e;
    color: #f5f5f5;
    border: none;
    outline: none;
    resize: none;
    font-family: monospace;
    font-size: 1rem;
    line-height: 1.5;
    overflow: auto;
    white-space: pre;
}

/* Custom scrollbar style for the editor */
.CodeMirror {
    flex: 1;
    height: 100%;
    width: 100%;
    font-family: monospace;
    font-size: 14px;
    color: #fff;
    background-color: #1e1e1e;
    overflow: auto;
}

/* Customizing the scrollbar itself */
.CodeMirror::-webkit-scrollbar {
    width: 8px; /* Width of the scrollbar */
    height: 8px; /* Height of horizontal scrollbar (if any) */
}

/* The draggable part of the scrollbar (thumb) */
.CodeMirror::-webkit-scrollbar-thumb {
    background-color: #444; /* Dark color for the scrollbar thumb */
    border-radius: 4px; /* Slight rounding of the thumb */
    border: 2px solid #222; /* A subtle border to make the thumb stand out */
}

/* Scrollbar track — the area the thumb moves within */
.CodeMirror::-webkit-scrollbar-track {
    background: #1e1e1e; /* Match the background of the editor */
    border-radius: 4px; /* Same rounding as the thumb */
}

/* Scrollbar on hover (lighten when user interacts) */
.CodeMirror::-webkit-scrollbar-thumb:hover {
    background-color: #666; /* Lighten when hovered */
}

.cm-error-highlight {
    background-color: rgba(255, 80, 80, 0.3);
    border-bottom: 1px solid red;
}

.CodeMirror.cm-overwrite-mode .CodeMirror-cursor {
    border-left: none;
    width: auto;
    background: rgba(255, 255, 255, 0.8); /* Light block */
    color: black;
    mix-blend-mode: difference; /* Makes the cursor visible on dark themes like Dracula */
}


#console-panel {
    height: 150px;
    background-color: #111;
    color: #0f0;
    font-family: monospace;
    font-size: 13px;
    padding: 10px;
    overflow-y: auto;
    border-top: 1px solid #333;
}

#console-output {
    white-space: pre-wrap;
}

#console-panel {
    height: calc(150px - 40px); /* Adjust height to account for console-input */
    background-color: #111;
    color: #0f0;
    font-family: monospace;
    font-size: 13px;
    padding: 0px;
    overflow-y: auto;
    border-top: 1px solid #333;
    position: relative; /* Ensure console-input can be positioned inside */
}

#console-input {
    height: 40px;
    background-color: #222;
    color: #f5f5f5;
    font-family: monospace;
    font-size: 14px;
    padding: 5px 10px;
    border: none;
    border-top: 1px solid #333;
    display: flex;
    align-items: center;
    gap: 10px;
    position: absolute;
    bottom: 0;
    width: 100%;
}

#console-input-txt {
    flex: 1;
    background-color: #1e1e1e;
    color: #f5f5f5;
    font-family: monospace;
    font-size: 14px;
    padding: 5px 10px;
    border: 1px solid #444;
    border-radius: 4px;
    outline: none;
}

#console-input-txt::placeholder {
    color: #888;
}

#console-input button {
    background-color: #444;
    color: #fff;
    font-size: 14px;
    padding: 5px 10px;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

#console-input button:hover {
    background-color: #555;
}

#console-input button:active {
    background-color: #666;
}

/*export panel*/

#export-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: rgba(0, 0, 0, 0.5);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
    z-index: 9999;
    font-family: Arial, sans-serif; /* Use Arial font */
}

#export-overlay.visible {
    opacity: 1;
    pointer-events: all;
}

#export-panel {
    background: #1e1e1e;
    padding: 20px 30px;
    border-radius: 12px;
    color: white;
    width: 400px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.4);
    text-align: center; /* Center the text */
    font-family: Arial, sans-serif; /* Use Arial font */
}

#export-panel h2 {
    margin-top: 0;
}

#export-panel label {
    display: block;
    margin-bottom: 10px;
}

#export-panel input, #export-panel select {
    width: 100%;
    padding: 6px;
    margin-top: 2px;
    background: #2c2c2c;
    border: none;
    color: white;
    border-radius: 4px;
    font-family: Arial, sans-serif; /* Use Arial font */
}

#export-panel .buttons {
    margin-top: 20px;
    display: flex;
    justify-content: space-between;
    gap: 10px;
    position: relative;
}

#export-panel button {
    padding: 8px 16px;
    border: none;
    background: #3a3a3a;
    color: white;
    border-radius: 4px;
    cursor: pointer;
    transition: background 0.2s ease;
    font-family: Arial, sans-serif; /* Use Arial font */
}

#export-panel button:hover {
    background: #505050;
}

#export-panel .buttons #start-export {
    background: #00bcd4; /* Make the button cyan */
    color: black; /* Adjust text color for better contrast */
}

#export-panel .buttons #start-export:hover {
    background: #00e2e7; /* Slightly darker cyan on hover */
}

.hidden {
    display: none !important;
}

#export-panel-sizeConfig {
    display: flex;
    gap: 10px; /* Add spacing between the inputs */
    margin-top: 10px; /* Optional: Add some spacing from other elements */
}

#export-panel-sizeConfig input {
    flex: 1; /* Make the inputs take equal space */
    padding: 6px;
    background: #2c2c2c;
    border: none;
    color: white;
    border-radius: 4px;
    font-family: Arial, sans-serif; /* Use Arial font */
}

#export-tabs {
    display: flex;
    justify-content: space-around;
    margin-bottom: 20px;
    gap: 5px;
}

/*export tabs*/
.export-tab {
    flex: 1;
    padding: 8px;
    background: #2c2c2c;
    color: white;
    border: none;
    border-radius: 4px 4px 0 0;
    cursor: pointer;
    font-weight: bold;
    transition: background 0.2s ease;
}

.export-tab:hover {
    background: #3c3c3c;
}

.export-tab.active {
    background: #00bcd4;
    color: black;
}

.export-tab-content {
    display: block;
}

.export-tab-content.hidden {
    display: none;
}

/* Button transforms into progress bar */
#start-export.exporting {
    flex: 1;
    position: relative;
    text-align: center;
    color: black;
    background: #3a3a3a;
    overflow: hidden;
    transition: all 0.4s ease;
}

/* Fake inner progress bar */
#start-export.exporting::after {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    height: 100%;
    width: 0%;
    background: #00ff88;
    transition: width linear;
    z-index: 1;
}

#start-export.exporting span {
    position: relative;
    z-index: 2;
}

#export-panel .buttons.exporting {
    justify-content: center;
}

/* keybinds panel */
#keybinds-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: rgba(0, 0, 0, 0.5);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
    z-index: 9999;
    font-family: Arial, sans-serif;
}

#keybinds-overlay.visible {
    opacity: 1;
    pointer-events: all;
}

#keybinds-panel {
    background: #1e1e1e;
    padding: 20px 30px;
    border-radius: 12px;
    color: white;
    width: 400px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.4);
    text-align: center;
    font-family: Arial, sans-serif;
}

#keybinds-panel h2 {
    margin-top: 0;
}

#keybinds-panel ul {
    list-style: none;
    padding: 0;
    margin: 0;
    text-align: left;
}

#keybinds-panel ul li {
    margin-bottom: 10px;
    background: #2c2c2c;
    padding: 10px;
    border-radius: 4px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

#keybinds-panel ul li span {
    font-size: 0.9rem;
    color: #f5f5f5;
}

#keybinds-panel ul li .key {
    background: #444;
    padding: 5px 10px;
    border-radius: 4px;
    font-family: monospace;
    color: #fff;
}

#keybinds-panel .buttons {
    margin-top: 20px;
    display: flex;
    justify-content: space-between;
    gap: 10px;
}

#keybinds-panel button {
    padding: 8px 16px;
    border: none;
    background: #3a3a3a;
    color: white;
    border-radius: 4px;
    cursor: pointer;
    transition: background 0.2s ease;
    font-family: Arial, sans-serif;
}

#keybinds-panel button:hover {
    background: #505050;
}

#resizer-horizontal-main {
    position: absolute;
    top: 40px; /* adjust if your menu bar height changes */
    bottom: 0;
    width: 8px; /* actual hitbox size */
    margin-left: -4px; /* half the width to center it */
    left: calc(500px); /* or dynamically adjust with JS if panel widths change */
    cursor: col-resize;
    background-color: transparent;
    z-index: 1000;
    transition: background-color 0.2s ease;
}

#resizer-horizontal-main:hover {
    background-color: rgba(255, 255, 255, 0.2); /* or something subtle */
}

#resizer-horizontal-left {
    position: absolute;
    top: 50px; /* adjust if your menu bar height changes */
    bottom: 0;
    width: 8px; /* actual hitbox size */
    margin-left: -4px; /* half the width to center it */
    left: calc(50px); /* or dynamically adjust with JS if panel widths change */
    cursor: col-resize;
    background-color: transparent;
    z-index: 1000;
    transition: background-color 0.2s ease;
}

#resizer-horizontal-left:hover {
    background-color: rgba(255, 255, 255, 0.1);
}

#resizer-vertical-right {
    position: absolute;
    left: 0;
    right: 0;
    height: 8px; /* actual hitbox size */
    margin-top: -4px; /* half the width to center it */
    top: calc(100px); /* or dynamically adjust with JS if panel widths change */
    cursor: row-resize;
    background-color: transparent;
    z-index: 1000;
    transition: background-color 0.2s ease;
}

#resizer-vertical-right:hover {
    background-color: rgba(255, 255, 255, 0.1);
}

#resizer-vertical-left {
    position: absolute;
    left: 50px;
    right: 0;
    height: 8px; /* actual hitbox size */
    margin-bottom: -4px; /* half the width to center it */
    bottom: calc(110px); /* or dynamically adjust with JS if panel widths change */
    cursor: row-resize;
    background-color: transparent;
    z-index: 1000;
    transition: background-color 0.2s ease;
}

#resizer-vertical-left:hover {
    background-color: rgba(255, 255, 255, 0.1);
}

/* Alert panel */
#alert-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: rgba(100, 100, 0, 0.7); /* Strong red overlay for urgency */
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
    z-index: 10000; /* Above all other overlays */
    font-family: Arial, sans-serif;
    animation: alert-pulse-bg 1.2s infinite alternate;
}

#alert-overlay.visible {
    opacity: 1;
    pointer-events: all;
}

#alert-panel {
    background: #2a2a00;
    padding: 32px 40px;
    border-radius: 16px;
    color: #fff;
    width: 440px;
    box-shadow: 0 0 40px 10px rgba(255,255,0,0.5), 0 10px 40px rgba(0,0,0,0.7);
    text-align: center;
    border: 3px solid #ffff22;
    animation: alert-pulse-panel 0.8s infinite alternate;
    font-family: Arial, sans-serif;
}

#alert-panel h2 {
    margin-top: 0;
    color: #ffff44;
    font-size: 2rem;
    text-shadow: 0 0 8px #ffff22, 0 0 2px #fff;
    letter-spacing: 2px;
    animation: alert-pulse-title 0.7s infinite alternate;
}

#alert-panel p {
    font-size: 1.1rem;
    margin: 20px 0;
    color: #fff;
}

#alert-panel .buttons {
    margin-top: 24px;
    display: flex;
    justify-content: center;
    gap: 16px;
}

#alert-panel button {
    padding: 10px 24px;
    border: none;
    background: #ffff22;
    color: #000;
    border-radius: 6px;
    cursor: pointer;
    font-size: 1.1rem;
    font-weight: bold;
    box-shadow: 0 0 10px #ffff22;
    transition: background 0.2s, box-shadow 0.2s;
    outline: 2px solid #fff;
    outline-offset: 2px;
}

#alert-panel button:hover {
    background: #fff;
    color: #000;
    box-shadow: 0 0 20px #fff;
}

@keyframes alert-pulse-bg {
    from { background: rgba(100, 100, 0, 0.7); }
    to   { background: rgba(100, 100, 0, 0.9); }
}

@keyframes alert-pulse-panel {
    from { box-shadow: 0 0 40px 10px #ffff22, 0 10px 40px rgba(0,0,0,0.7); }
    to   { box-shadow: 0 0 60px 20px #ffff44, 0 10px 60px rgba(0,0,0,0.8); }
}

@keyframes alert-pulse-title {
    from { color: #ffff44; text-shadow: 0 0 8px #ffff22, 0 0 2px #fff; }
    to   { color: #fff; text-shadow: 0 0 16px #ffff44, 0 0 4px #fff; }
}



/* Mobile Help panel */
#mobile-help-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: rgba(0, 0, 0, 0.7); /* Strong red overlay for urgency */
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
    z-index: 10000; /* Above all other overlays */
    font-family: Arial, sans-serif;
}

#mobile-help-overlay.visible {
    opacity: 1;
    pointer-events: all;
}

#mobile-help-panel {
    background: #1e1e1e;
    padding: 20px 30px;
    border-radius: 12px;
    color: white;
    width: 400px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.4);
    text-align: center;
    font-family: Arial, sans-serif;
}

#mobile-help-panel h2 {
    margin-top: 0;
}

#mobile-help-panel .buttons {
    margin-top: 20px;
    display: flex;
    flex-direction: column; /* Stack buttons vertically */
    justify-content: flex-start;
    align-items: stretch;
    gap: 10px;
}

#mobile-help-panel button {
    padding: 8px 16px;
    border: none;
    background: #3a3a3a;
    color: white;
    border-radius: 4px;
    cursor: pointer;
    transition: background 0.2s ease;
    font-family: Arial, sans-serif;
    width: 100%; /* Make buttons fill the container width */
}

#mobile-help-panel button:hover {
    background: #505050;
}

#mobile-help-panel #mobile-help-close-btn {
    position: relative;
    top: -30px;
    left: 50%;
    background: transparent;
    color: #fff;
    border: none;
    font-size: 1.5rem;
    cursor: pointer;
    padding: 0;
    z-index: 10;
    transition: color 0.2s;
}

#mobile-help-panel #close:hover {
    color: #00bcd4;
}

.tab-placeholder {
    background: transparent;
    border: 2px dashed #888;
    margin: 5px 0;
    height: 40px;
}

.tab, .tab * {
  user-select: none; /* prevent text selection */
  -webkit-user-select: none;
  -moz-user-select: none;
  -ms-user-select: none;
}

.tab{
  background-image: url('sprites/tab-icons.png');
  background-position: -5px -0px;
}

#tabs-list {
  position: relative;
  overflow-y: auto;       /* Enable vertical scrollbar */
  overflow-x: hidden;
  max-height: 100%;       /* Use full height of the parent */
  padding-right: 10px;    /* Avoid scrollbar overlap */
  box-sizing: content-box;
}




/* Variable Bank Panel */
/*#variable-bank {
    width: 200px;
    background-color: #2a2a2a;
    color: #f5f5f5;
    display: flex;
    flex-direction: column;
    padding: 10px;
    overflow-y: auto;
    border-left: 1px solid #333;
    box-shadow: -2px 0 4px rgba(0, 0, 0, 0.2);
    position: absolute;
    top: 0;
    right: 0;
    height: 100%;
    z-index: 1000;
}

/* Variable Bank Header */
/*#variable-bank h3 {
    font-size: 1.2rem;
    font-weight: bold;
    margin-bottom: 10px;
    text-align: center;
    font-family: Arial, sans-serif;
}

/* Variable List */
/*#variable-list {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

/* Individual Variable Item */
/*#variable-list li {
    background-color: #333;
    padding: 10px;
    border-radius: 4px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: background-color 0.3s ease;
}

/* Hover Effect for Variable Item */
/*#variable-list li:hover {
    background-color: #444;
}

/* Variable Name */
/*.variable-name {
    font-size: 0.9rem;
    color: #fff;
}

/* Variable Value */
/*.variable-value {
    font-size: 0.9rem;
    color: #888;
}

/* Add Variable Button */
/*#add-variable-btn {
    margin-top: 10px;
    padding: 8px 12px;
    background-color: #444;
    color: #fff;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    transition: background-color 0.3s ease;
    text-align: center;
}

#add-variable-btn:hover {
    background-color: #555;
}

#add-variable-btn:active {
    background-color: #666;
}