/* Soviet metal panels and rivets styling */
.workspace, #interficie-global {
    display: flex;
    flex-direction: column;
    gap: 14px;
    width: 100%;
    max-width: 1200px;
    background-color: var(--panel-bg);
    border: 4px solid var(--panel-border);
    border-radius: 8px;
    padding: 24px;
    box-sizing: border-box;
    box-shadow: inset 0 0 30px rgba(0,0,0,0.8), 0 20px 50px rgba(0,0,0,0.9);
    position: relative;
}

/* Metal plates screws in corners */
.screw {
    position: absolute;
    width: 10px;
    height: 10px;
    background: radial-gradient(circle at center, #6b7280 20%, #374151 70%, #111827 100%);
    border-radius: 50%;
    border: 1px solid #111;
    box-shadow: 1px 1px 2px rgba(0,0,0,0.4);
}
.screw::after {
    content: '';
    position: absolute;
    top: 50%; left: 10%; right: 10%;
    height: 1px;
    background: #111;
    transform: translateY(-50%) rotate(45deg);
}
.screw.tl { top: 8px; left: 8px; }
.screw.tr { top: 8px; right: 8px; }
.screw.bl { bottom: 8px; left: 8px; }
.screw.br { bottom: 8px; right: 8px; }

/* Giant Red Button */
.giant-red-btn {
    width: 100%;
    padding: 20px;
    font-size: 24px;
    font-family: 'Share Tech Mono', monospace;
    font-weight: bold;
    color: #ffd0d0;
    background: linear-gradient(180deg, #cc2222 0%, #880000 100%);
    border: 3px solid #550000;
    border-radius: 8px;
    cursor: pointer;
    text-transform: uppercase;
    box-shadow: 0 6px 0 #440000, 0 8px 15px rgba(0,0,0,0.8), inset 0 2px 5px rgba(255,255,255,0.3);
    text-shadow: 1px 1px 2px rgba(0,0,0,0.8);
    transition: all 0.1s;
    position: relative;
    overflow: hidden;
}

.giant-red-btn:active, .giant-red-btn.pressed {
    transform: translateY(6px);
    box-shadow: 0 0px 0 #440000, 0 2px 5px rgba(0,0,0,0.8), inset 0 4px 8px rgba(0,0,0,0.6);
}

.giant-red-btn.round {
    width: 90px;
    height: 90px;
    padding: 0;
    border-radius: 50%;
    background: radial-gradient(circle at 35% 35%, #ef4444 0%, #b91c1c 65%, #7f1d1d 100%);
    border: 5px solid #1a1e1b;
    box-shadow: 0 6px 0 #181d19, 0 10px 20px rgba(0,0,0,0.8), inset 0 3px 5px rgba(255,255,255,0.4);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    text-align: center;
    line-height: 1.2;
}

.giant-red-btn.round:active, .giant-red-btn.round.pressed {
    transform: translateY(4px);
    box-shadow: 0 2px 0 #181d19, 0 4px 10px rgba(0,0,0,0.8), inset 0 2px 3px rgba(0,0,0,0.6);
}

/* UI Buttons */
.ind-btn {
    background: linear-gradient(180deg, #445043 0%, #293228 100%);
    border: 2px solid #1c221b;
    border-radius: 4px;
    color: #b5c7ba;
    padding: 10px 14px;
    font-size: 13px;
    font-family: 'Share Tech Mono', monospace;
    font-weight: bold;
    cursor: pointer;
    box-shadow: 1px 2px 4px rgba(0,0,0,0.5), inset 0 1px 0 rgba(255,255,255,0.1);
    transition: all 0.1s ease;
    text-align: center;
}
.ind-btn:active, .ind-btn.active {
    transform: translateY(2px);
    box-shadow: 0 1px 2px rgba(0,0,0,0.6), inset 0 3px 6px rgba(0,0,0,0.5);
    background: linear-gradient(180deg, #354034 0%, #1c221b 100%);
    color: #8da494;
}

/* Switches and Selectors */
.switch-container {
    display: flex;
    align-items: center;
    gap: 15px;
}
.toggle-knobs-wrapper {
    display: flex;
    background: #111;
    padding: 4px;
    border-radius: 4px;
    border: 1px solid #333;
    box-shadow: inset 0 2px 4px rgba(0,0,0,0.8);
    width: 100%;
}
.knob-select {
    flex: 1;
    padding: 8px 10px;
    background: #2a2a2a;
    border: 2px solid #111;
    color: #888;
    font-family: 'Share Tech Mono', monospace;
    font-size: 14px;
    cursor: pointer;
    transition: all 0.2s;
    font-weight: bold;
    box-shadow: inset 0 1px 1px rgba(255,255,255,0.1);
}
.knob-select:active {
    background: #1a1a1a;
    box-shadow: inset 0 2px 4px rgba(0,0,0,0.8);
}
.knob-select.active {
    background: #224422;
    color: #33ff33;
    border-color: #33ff33;
    box-shadow: 0 0 10px rgba(51,255,51,0.2), inset 0 2px 4px rgba(0,0,0,0.5);
    text-shadow: 0 0 5px #33ff33;
}
.knob-select:first-child { border-radius: 4px 0 0 4px; border-right: none; }
.knob-select:last-child { border-radius: 0 4px 4px 0; border-left: none; }

/* Input sliders */
input[type="range"] {
    -webkit-appearance: none;
    width: 100%;
    background: #0d110e;
    border: 2px solid #3c483e;
    height: 20px;
    outline: none;
    border-radius: 4px;
    box-shadow: inset 0 2px 5px rgba(0,0,0,0.8);
}

input[type="range"]::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: 18px;
    height: 32px;
    background: linear-gradient(180deg, #d8d3c5 0%, #9c9384 100%);
    border: 2px solid #1a1d19;
    border-radius: 4px;
    cursor: pointer;
    box-shadow: 0 3px 0 #111, 0 4px 6px rgba(0,0,0,0.5);
}

label {
    font-family: 'Share Tech Mono', monospace;
    font-weight: bold;
    font-size: 14px;
    color: #8fa093;
    text-shadow: 1px 1px 2px rgba(0,0,0,0.8);
}

.value-display {
    display: inline-block;
    width: 50px;
    text-align: right;
    color: #d4a35c;
    text-shadow: 0 0 4px rgba(212, 163, 92, 0.4);
}
