/* Studio Setup - Course Styles */

/* Custom range slider */
.studio-slider {
    -webkit-appearance: none;
    appearance: none;
    height: 8px;
    background: #2a2a2a;
    border-radius: 4px;
    outline: none;
}

.studio-slider::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: 20px;
    height: 20px;
    background: #A78BFA;
    border-radius: 50%;
    cursor: pointer;
    transition: all 0.2s;
    box-shadow: 0 0 10px rgba(167, 139, 250, 0.3);
}

.studio-slider::-webkit-slider-thumb:hover {
    background: #c4b5fd;
    box-shadow: 0 0 20px rgba(167, 139, 250, 0.5);
}

.studio-slider::-moz-range-thumb {
    width: 20px;
    height: 20px;
    background: #A78BFA;
    border-radius: 50%;
    cursor: pointer;
    border: none;
    transition: all 0.2s;
    box-shadow: 0 0 10px rgba(167, 139, 250, 0.3);
}

.studio-slider::-moz-range-thumb:hover {
    background: #c4b5fd;
    box-shadow: 0 0 20px rgba(167, 139, 250, 0.5);
}

/* Active lesson nav */
.lesson-nav-link.active {
    background: rgba(167, 139, 250, 0.1);
    color: #A78BFA;
}

/* Gradient border for tools */
.gradient-border {
    background: linear-gradient(135deg, rgba(167, 139, 250, 0.3), rgba(167, 139, 250, 0.05));
}

/* Studio tool container */
.studio-tool {
    position: relative;
}

/* Checklist styling */
.inventory-checklist {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.checklist-item {
    padding: 1rem;
    background: rgba(26, 26, 46, 0.5);
    border: 1px solid #2a2a2a;
    border-radius: 12px;
    transition: all 0.2s;
}

.checklist-item:hover {
    border-color: rgba(167, 139, 250, 0.3);
}

.checklist-item.checked {
    border-color: rgba(167, 139, 250, 0.5);
    background: rgba(167, 139, 250, 0.05);
}

.checklist-label {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    cursor: pointer;
    font-weight: 500;
    color: #f5f5f5;
}

.checklist-checkbox {
    width: 20px;
    height: 20px;
    accent-color: #A78BFA;
    cursor: pointer;
}

.checklist-followup {
    margin-top: 1rem;
    padding-top: 1rem;
    border-top: 1px solid #2a2a2a;
    display: none;
}

.checklist-followup.show {
    display: block;
}

.radio-group {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    margin-top: 0.5rem;
}

.radio-label {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem;
    border-radius: 8px;
    cursor: pointer;
    color: #a0a0a0;
    font-size: 0.875rem;
    transition: all 0.2s;
}

.radio-label:hover {
    background: rgba(167, 139, 250, 0.1);
    color: #f5f5f5;
}

.radio-label input {
    accent-color: #A78BFA;
}

/* Signal flow diagram */
.signal-flow-simple {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    flex-wrap: wrap;
    padding: 1.5rem;
    background: rgba(26, 26, 46, 0.5);
    border-radius: 12px;
    font-family: ui-monospace, monospace;
    font-size: 0.875rem;
    color: #a0a0a0;
}

.signal-flow-simple span {
    color: #A78BFA;
    padding: 0.5rem 1rem;
    background: rgba(167, 139, 250, 0.1);
    border-radius: 6px;
}

/* Producer type buttons */
.producer-type-btn {
    padding: 0.5rem 1rem;
    background: rgba(26, 26, 46, 0.8);
    border: 1px solid #2a2a2a;
    border-radius: 8px;
    color: #a0a0a0;
    font-size: 0.875rem;
    cursor: pointer;
    transition: all 0.2s;
}

.producer-type-btn:hover {
    border-color: rgba(167, 139, 250, 0.5);
    color: #f5f5f5;
}

.producer-type-btn.active {
    background: rgba(167, 139, 250, 0.1);
    border-color: #A78BFA;
    color: #A78BFA;
}

/* Timer display */
.timer-display {
    font-size: 4rem;
    font-weight: 700;
    text-align: center;
    color: #A78BFA;
    font-family: ui-monospace, monospace;
    margin: 1.5rem 0;
}

.timer-display.warning {
    color: #f59e0b;
}

.timer-display.danger {
    color: #ef4444;
}

/* Connection diagram */
#connection-builder .cable-item {
    padding: 0.5rem 1rem;
    background: rgba(26, 26, 46, 0.8);
    border: 1px solid #2a2a2a;
    border-radius: 8px;
    color: #a0a0a0;
    font-size: 0.875rem;
    cursor: pointer;
    transition: all 0.2s;
}

#connection-builder .cable-item:hover {
    border-color: rgba(167, 139, 250, 0.5);
}

#connection-builder .cable-item.selected {
    border-color: #A78BFA;
    background: rgba(167, 139, 250, 0.1);
    color: #A78BFA;
}

/* Level meter */
.level-meter {
    width: 40px;
    height: 200px;
    background: #1a1a2e;
    border-radius: 4px;
    position: relative;
    overflow: hidden;
}

.level-meter-bar {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(to top, #4ADE80, #F59E0B, #ef4444);
    transition: height 0.05s;
}

.level-meter-bar.clipping {
    animation: clip-flash 0.1s ease-in-out;
}

@keyframes clip-flash {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.5; }
}

/* Troubleshooting flowchart */
.problem-btn {
    padding: 0.75rem 1rem;
    background: rgba(26, 26, 46, 0.8);
    border: 1px solid #2a2a2a;
    border-radius: 8px;
    color: #a0a0a0;
    font-size: 0.8rem;
    cursor: pointer;
    transition: all 0.2s;
    text-align: left;
}

.problem-btn:hover {
    border-color: rgba(167, 139, 250, 0.5);
    color: #f5f5f5;
}

.problem-btn.active {
    background: rgba(167, 139, 250, 0.1);
    border-color: #A78BFA;
    color: #A78BFA;
}

.flow-question {
    font-size: 1.125rem;
    color: #f5f5f5;
    margin-bottom: 1.5rem;
}

.flow-buttons {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}

.solution-box {
    padding: 1.5rem;
    background: rgba(74, 222, 128, 0.05);
    border: 1px solid rgba(74, 222, 128, 0.2);
    border-radius: 12px;
}

.solution-box h4 {
    color: #4ADE80;
    margin-bottom: 1rem;
}

.solution {
    display: flex;
    gap: 1rem;
    align-items: flex-start;
}

.solution-icon {
    font-size: 1.5rem;
}

/* First track checklist */
.track-checklist {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.track-check-item {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.75rem 1rem;
    background: rgba(26, 26, 46, 0.5);
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.2s;
}

.track-check-item:hover {
    background: rgba(167, 139, 250, 0.05);
}

.track-check-item.completed {
    background: rgba(74, 222, 128, 0.05);
}

.track-check-item.completed label {
    color: #4ADE80;
    text-decoration: line-through;
}

.track-progress-bar {
    height: 8px;
    background: #2a2a2a;
    border-radius: 4px;
    overflow: hidden;
}

.track-progress-fill {
    height: 100%;
    background: linear-gradient(90deg, #A78BFA, #4ADE80);
    transition: width 0.3s ease;
}

#track-celebration {
    display: none;
    text-align: center;
    padding: 2rem;
    background: rgba(74, 222, 128, 0.1);
    border-radius: 12px;
    margin-top: 1.5rem;
}

#track-celebration h3 {
    color: #4ADE80;
    font-size: 1.5rem;
    margin-bottom: 0.5rem;
}

/* Touch-friendly on mobile */
@media (max-width: 768px) {
    .studio-slider::-webkit-slider-thumb {
        width: 28px;
        height: 28px;
    }

    .studio-slider::-moz-range-thumb {
        width: 28px;
        height: 28px;
    }

    .problem-btn {
        width: 100%;
    }

    .timer-display {
        font-size: 3rem;
    }
}
