#simple-gui {
    position: fixed;
    top: 10px;
    right: 10px;
    width: 300px;
    max-height: calc(100vh - 20px);
    overflow-y: auto;
    background: rgba(20, 20, 20, 0.75);
    color: #eee;
    font-family: "brandon-grotesque", sans-serif;
    font-weight: 100;
    font-size: 13px;
    z-index: 2500;
    /* Increased to be above breathing overlay (2000) */
    box-shadow: -2px 0 10px rgba(0, 0, 0, 0.5);
    transition: transform 0.3s ease;
    border-radius: 8px;
}

.gui-header {
    background: rgba(0, 0, 0, 0.3);
    padding: 12px;
    font-weight: bold;
    font-size: 14px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.gui-toggle-button {
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: #eee;
    width: 24px;
    height: 24px;
    border-radius: 4px;
    cursor: pointer;
    font-size: 18px;
    line-height: 1;
    padding: 0;
    transition: background 0.2s;
}

.gui-toggle-button:hover {
    background: rgba(255, 255, 255, 0.2);
}

/* Hidden state - fully hide off screen (account for margin) */
#simple-gui.gui-hidden {
    transform: translateX(calc(100% + 20px));
}

#simple-gui.gui-hidden .gui-header {
    cursor: pointer;
}

/* ... */

/* Hamburger menu button */
#gui-hamburger {
    position: fixed;
    top: 10px;
    right: 10px;
    width: 44px;
    height: 44px;
    background: transparent;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    z-index: 2499;
    /* Below GUI (2500) but above Overlay (2000) */
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    font-size: 24px;
    padding: 0;
    transition: all 0.3s ease;
}

#gui-hamburger:hover {
    transform: scale(1.2);
}

.hamburger-line {
    width: 24px;
    height: 2px;
    background: #eee;
    border-radius: 2px;
    transition: all 0.3s ease;
}

.gui-hamburger-hidden {
    opacity: 0;
    pointer-events: none;
}

.gui-hamburger-visible {
    opacity: 1;
    pointer-events: auto;
}

.gui-section {
    padding: 12px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.gui-section-header {
    font-weight: bold;
    font-size: 12px;
    color: #aaa;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 8px;
}

.gui-text-header {
    text-align: center;
    font-weight: bold;
    font-size: 11px;
    color: #999;
    padding: 10px 0 6px 0;
    margin-top: 8px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.gui-subsection {
    margin: 8px 0;
}

.gui-subsection label {
    display: block;
    margin-bottom: 4px;
    font-size: 12px;
    color: #bbb;
}

.gui-value {
    float: right;
    font-family: 'Courier New', monospace;
    font-size: 11px;
    color: #888;
    font-weight: normal;
}

.gui-subsection input[type="range"] {
    width: 100%;
    height: 24px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    outline: none;
    -webkit-appearance: none;
}

.gui-subsection input[type="range"]::-webkit-slider-thumb {
    -webkit-appearance: none;
    width: 40px;
    height: 40px;
    background: #fff;
    border-radius: 20%;
    margin-top: -8px;
    /* Center thumb on the taller track if needed, or default centering behavior might apply but usually webkit needs alignment fix if heights differ drastically, actually webkit-slider-thumb centers relative to input box model usually, but let's check. Default input range height is the track? No. */
    /* Wait, standard input range styling often requires margin-top to center thumb on track if track is styled via runnable-track pseudo-element. 
       Here 'input[type="range"]' is styled directly as the track container? 
       In simple CSS for range: 
       If I set height on input itself, that's the bounding box. 
       
       Let's stick to standard behavior first. If I increase thumb to 28px, it might be larger than the track (12px).
       
       Ah, looking at lines 144-147:
       .gui-subsection input[type="range"] {
            width: 100%;
            height: 4px; 
            ...
       }
       
       If I make height 12px, the thumb (28px) will overflow it.
       
       On webkit, I might need `margin-top` if I were using `::-webkit-slider-runnable-track`.
       But here, the `input` IS the track effectively in this simple styling?
       Actually, `appearance: none` removes default styling.
       
       If I look at line 150: `-webkit-appearance: none;`
       
       Usually:
       input { -webkit-appearance: none; height: ...; background: ...; } -> styles the track area.
       ::-webkit-slider-thumb { -webkit-appearance: none; ... } -> styles the thumb.
       
       If thumb height > input height, it should just overflow visible.
       
       Let's just change dimensions first.
    */
    width: 28px;
    height: 28px;
    background: #fff;
    border-radius: 50%;
    cursor: pointer;
}

.gui-subsection input[type="range"]::-moz-range-thumb {
    width: 28px;
    height: 28px;
    background: #fff;
    border-radius: 50%;
    cursor: pointer;
    border: none;
}

.gui-checkbox {
    display: flex;
    align-items: center;
    cursor: pointer;
    user-select: none;
}

.gui-checkbox input {
    margin-right: 8px;
}

.gui-checkbox span {
    font-size: 13px;
}

.gui-section select {
    width: 100%;
    padding: 6px;
    background: #2a2a2a;
    /* Solid color for better visibility */
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 4px;
    color: #eee;
    font-size: 12px;
    margin-top: 4px;
    cursor: pointer;
}

.gui-section select option {
    background: #1a1a1a;
    /* Dark background for the dropdown list */
    color: #eee;
    /* Light text color */
}

.gui-button-row {
    display: flex;
    gap: 8px;
    margin: 8px 0;
}

.gui-button-row button {
    flex: 1;
    padding: 8px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 4px;
    color: #eee;
    font-size: 16px;
    font-weight: bold;
    cursor: pointer;
    transition: background 0.2s;
}

.gui-button-row button:hover {
    background: rgba(255, 255, 255, 0.15);
}

.gui-full-button {
    width: 100%;
    padding: 10px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 4px;
    color: #eee;
    font-size: 13px;
    cursor: pointer;
    transition: background 0.2s;
}

.gui-full-button:hover {
    background: rgba(255, 255, 255, 0.15);
}

/* Color Grid */
.gui-blob-colors {
    margin-bottom: 12px;
}

.gui-blob-header {
    font-size: 11px;
    font-weight: bold;
    color: #999;
    text-transform: uppercase;
    margin-bottom: 6px;
    letter-spacing: 0.5px;
}

.gui-color-grid {
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    gap: 4px;
}

.gui-color-grid input[type="color"] {
    width: 100%;
    height: 32px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 4px;
    cursor: pointer;
    background: none;
}

.gui-color-grid input[type="color"]::-webkit-color-swatch-wrapper {
    padding: 0;
}

.gui-color-grid input[type="color"]::-webkit-color-swatch {
    border: none;
    border-radius: 3px;
}

/* Blob Positions */
.gui-blob-position {
    margin-bottom: 12px;
    padding: 8px;
    background: rgba(255, 255, 255, 0.02);
    border-radius: 4px;
}

/* Details/Summary (collapsible sections) */
details.gui-section {
    cursor: pointer;
}

details.gui-section summary {
    font-weight: bold;
    font-size: 12px;
    color: #aaa;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    padding: 4px 0;
    user-select: none;
}

details.gui-section[open] summary {
    margin-bottom: 8px;
}

/* Details summary inside sections */
.gui-details-summary {
    font-size: 11px;
    font-weight: bold;
    color: #999;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    padding: 8px 0 4px 0;
    cursor: pointer;
    user-select: none;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    margin-top: 8px;
}

details[open] .gui-details-summary {
    margin-bottom: 8px;
}

/* Scrollbar */
#simple-gui::-webkit-scrollbar {
    width: 8px;
}

#simple-gui::-webkit-scrollbar-track {
    background: rgba(0, 0, 0, 0.2);
}

#simple-gui::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.2);
    border-radius: 4px;
}

#simple-gui::-webkit-scrollbar-thumb:hover {
    background: rgba(255, 255, 255, 0.3);
}