/* RS1 Construct - Custom Styles */

.container {
    max-width: 1600px;
    margin: 0 auto;
    padding: 20px;
}

.main-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}

.parameters-panel {
    max-height: calc(100vh - 120px);
    overflow-y: auto;
}

.output-panel {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.section {
    background: #2a2a2a;
    border-radius: 8px;
    padding: 20px;
}

.section-title {
    font-size: 1.3em;
    font-weight: bold;
    margin-bottom: 15px;
    color: #CF1A37;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.param-section {
    margin: 20px 0;
    padding: 15px;
    background: #1a1a1a;
    border-radius: 6px;
}

.param-section h3,
.param-section h4 {
    margin: 0 0 10px 0;
    color: #CF1A37;
    font-size: 0.95em;
}

.param-group {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.param-group label {
    display: flex;
    flex-direction: column;
    gap: 5px;
    font-size: 0.9em;
}

.param-group label span {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.param-group label strong {
    color: #00ff00;
    font-family: monospace;
    min-width: 60px;
    text-align: right;
}

.param-group input[type="text"] {
    background: #333;
    border: 1px solid #555;
    color: #fff;
    padding: 8px;
    border-radius: 4px;
    font-size: 1em;
}

.param-group input[type="range"] {
    width: 100%;
}

.param-group select {
    background: #333;
    border: 1px solid #555;
    color: #fff;
    padding: 8px;
    border-radius: 4px;
    font-size: 0.9em;
}

/* Operator Cards */
#operators-container {
    display: flex;
    flex-direction: column;
    gap: 15px;
    margin-bottom: 20px;
}

.op-card {
    background: #1a1a1a;
    border: 1px solid #444;
    border-radius: 8px;
    overflow: hidden;
}

.op-card.modifier {
    border-left: 4px solid #FF8800;
    background: linear-gradient(90deg, rgba(255, 136, 0, 0.1) 0%, #1a1a1a 20px);
}

.op-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 15px;
    background: #222;
    border-bottom: 1px solid #444;
}

.op-title {
    display: flex;
    align-items: center;
    gap: 15px;
}

.op-title h3 {
    margin: 0;
    font-size: 1em;
    color: #fff;
}

.op-type-label {
    font-size: 0.85em;
    color: #00ff00;
    background: #1a3a1a;
    padding: 3px 10px;
    border-radius: 3px;
}

.op-card.modifier .op-type-label {
    color: #FF8800;
    background: rgba(255, 136, 0, 0.2);
}

.op-controls {
    display: flex;
    gap: 8px;
}

.op-body {
    padding: 15px;
}

/* Type Selector */
.type-selector {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 15px;
}

.type-btn {
    padding: 8px 14px;
    background: #333;
    border: 1px solid #555;
    color: #fff;
    border-radius: 4px;
    cursor: pointer;
    font-size: 0.85em;
    transition: all 0.2s;
}

.type-btn:hover {
    background: #444;
    border-color: #CF1A37;
}

.type-btn.active {
    background: #CF1A37;
    border-color: #CF1A37;
    color: #fff;
}

/* Buttons */
.add-button {
    background: #CF1A37;
    color: white;
    border: none;
    padding: 8px 16px;
    border-radius: 4px;
    cursor: pointer;
    font-size: 0.9em;
    font-weight: bold;
    transition: background 0.2s;
}

.add-button:hover {
    background: #a51429;
}

.add-button:disabled {
    background: #555;
    cursor: not-allowed;
}

.action-button {
    background: #444;
    color: white;
    border: 1px solid #666;
    padding: 10px 20px;
    border-radius: 4px;
    cursor: pointer;
    font-size: 0.9em;
    transition: all 0.2s;
}

.action-button:hover {
    background: #555;
    border-color: #CF1A37;
}

.icon-button {
    background: none;
    border: none;
    color: #fff;
    font-size: 1.5em;
    cursor: pointer;
    padding: 0 8px;
    transition: color 0.2s;
}

.icon-button:hover {
    color: #CF1A37;
}

.button-group {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    margin-top: 20px;
}

/* Canvas */
#waveform {
    width: 100%;
    height: 300px;
    background: #0a0a0a;
    border: 1px solid #444;
    border-radius: 4px;
    display: block;
}

#waveform-scroll {
    -webkit-appearance: none;
    appearance: none;
    height: 8px;
    background: #1a1a1a;
    border-radius: 4px;
    outline: none;
}

#waveform-scroll::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: 20px;
    height: 20px;
    background: #CF1A37;
    border-radius: 50%;
    cursor: pointer;
}

#waveform-scroll::-webkit-slider-thumb:hover {
    background: #a51429;
}

#waveform-scroll::-moz-range-thumb {
    width: 20px;
    height: 20px;
    background: #CF1A37;
    border-radius: 50%;
    cursor: pointer;
    border: none;
}

#waveform-scroll::-moz-range-thumb:hover {
    background: #a51429;
}

/* Code Output */
#code-output {
    background: #1a1a1a;
    color: #00ff00;
    padding: 15px;
    border-radius: 4px;
    font-family: 'Courier New', monospace;
    font-size: 0.85em;
    overflow-x: auto;
    max-height: 500px;
    overflow-y: auto;
    margin: 0;
    border: 1px solid #444;
}

.code-actions {
    margin-bottom: 10px;
}

/* Mobile responsive */
@media (max-width: 1200px) {
    .main-grid {
        grid-template-columns: 1fr;
    }

    .parameters-panel {
        max-height: none;
    }
}

