/* Custom styles for vintage synthesizer look */
body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background: linear-gradient(135deg, #1a1a1a 0%, #000000 100%);
    user-select: none;
}

/* Vintage knob styling */
input[type="range"] {
    -webkit-appearance: none;
    appearance: none;
    background: transparent;
    cursor: pointer;
}

input[type="range"]::-webkit-slider-track {
    background: #4a5568;
    height: 6px;
    border-radius: 3px;
}

input[type="range"]::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    background: linear-gradient(135deg, #f59e0b, #d97706);
    height: 20px;
    width: 20px;
    border-radius: 50%;
    cursor: pointer;
    box-shadow: 0 0 10px rgba(245, 158, 11, 0.5);
    border: 2px solid #92400e;
}

input[type="range"]::-moz-range-track {
    background: #4a5568;
    height: 6px;
    border-radius: 3px;
    border: none;
}

input[type="range"]::-moz-range-thumb {
    background: linear-gradient(135deg, #f59e0b, #d97706);
    height: 20px;
    width: 20px;
    border-radius: 50%;
    cursor: pointer;
    box-shadow: 0 0 10px rgba(245, 158, 11, 0.5);
    border: 2px solid #92400e;
}

/* Glow effects */
.ribbon-glow {
    box-shadow: 0 0 20px rgba(245, 158, 11, 0.3);
}

/* Button hover effects */
button {
    transition: all 0.2s ease;
}

button:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.3);
}

/* Select styling */
select {
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 20 20'%3e%3cpath stroke='%236b7280' stroke-linecap='round' stroke-linejoin='round' stroke-width='1.5' d='m6 8 4 4 4-4'/%3e%3c/svg%3e");
    background-position: right 0.5rem center;
    background-repeat: no-repeat;
    background-size: 1.5em 1.5em;
    padding-right: 2.5rem;
}

/* Retro panel styling */
.control-panel {
    background: linear-gradient(135deg, #374151 0%, #1f2937 100%);
    border: 1px solid #f59e0b;
    box-shadow: inset 0 1px 3px rgba(0, 0, 0, 0.3);
}

/* Oscilloscope styling */
canvas {
    border: 2px solid #374151;
    box-shadow: inset 0 0 10px rgba(0, 0, 0, 0.5);
}

/* Ribbon controller special effects */
.ribbon-controller {
    position: relative;
    overflow: hidden;
}

.ribbon-controller::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(45deg, transparent 40%, rgba(255, 255, 255, 0.1) 50%, transparent 60%);
    pointer-events: none;
}

/* Touch/mobile optimizations */
@media (max-width: 768px) {
    .ribbon-controller {
        height: 80px;
    }
    
    input[type="range"]::-webkit-slider-thumb {
        height: 24px;
        width: 24px;
    }
    
    input[type="range"]::-moz-range-thumb {
        height: 24px;
        width: 24px;
    }
}

/* Animation for frequency indicator */
.freq-indicator {
    transition: left 0.1s ease;
}

/* Vintage text glow */
.title-glow {
    text-shadow: 0 0 10px rgba(245, 158, 11, 0.5);
}