/* App Specific Styles */
.file-drop-area {
    transition: background-color 0.2s ease-in-out, border-color 0.2s ease-in-out;
}
.file-drop-area.dragover {
    background-color: rgba(0, 255, 65, 0.2);
    border-color: #00ff41;
}
.loader {
    border: 4px solid #333;
    border-top: 4px solid #00ff41;
    border-radius: 50%;
    width: 40px;
    height: 40px;
    animation: spin 1s linear infinite;
}
@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}
input[type="checkbox"] { accent-color: #00ff41; }

/* ABCJS Player Theming */
.abcjs-inline-midi { background: transparent; color: #00ff41; }
.abcjs-midi-loop, .abcjs-midi-reset, .abcjs-midi-start, .abcjs-midi-progress-background, .abcjs-midi-indicator, .abcjs-midi-tempo {
    fill: #00ff41;
    stroke: #00ff41;
}
.abcjs-midi-progress-indicator { fill: #000; stroke: #00ff41; }
.abcjs-midi-time { fill: #00ff41; }

/* SYNTHESIZER THEME */
#synthesizer-window .control-panel { background: rgba(0,0,0,0.3); padding: 15px; border-radius: 0; border: 1px solid #00ff41; }
#synthesizer-window .control-panel h3 { margin: 0 0 10px 0; font-size: 1.1em; text-align: center; border-bottom: 1px solid #00ff41; padding-bottom: 10px; }
#synthesizer-window .control-panel label { display: block; margin-bottom: 5px; }
#synthesizer-window .control-panel input[type="range"] { -webkit-appearance: none; appearance: none; width: 100%; height: 6px; background: #000; border: 1px solid #00ff41; outline: none; }
#synthesizer-window .control-panel input[type="range"]::-webkit-slider-thumb { -webkit-appearance: none; appearance: none; width: 18px; height: 18px; background: #00ff41; cursor: pointer; border-radius: 0; box-shadow: 0 0 5px #00ff41; }
#synthesizer-window .control-panel input[type="range"]::-moz-range-thumb { width: 18px; height: 18px; background: #00ff41; cursor: pointer; border-radius: 0; box-shadow: 0 0 5px #00ff41; }
#synthesizer-window .wave-selector input[type="radio"] { accent-color: #00ff41; }
#synthesizer-window .keyboard { display: flex; position: relative; height: 180px; background: #080808; padding: 10px; border: 2px solid #00ff41; }
#synthesizer-window .key { border: 1px solid #00ff41; border-radius: 0; cursor: pointer; transition: all 0.07s ease; }
#synthesizer-window .key.white { background: #1a1a1a; flex-grow: 1; }
#synthesizer-window .key.white.active { background: #00ff41; box-shadow: 0 0 15px #00ff41; }
#synthesizer-window .key.black { background: #000; position: absolute; height: 60%; z-index: 1; color: white; border: 1px solid #00ff41; }
#synthesizer-window .key.black.active { background: #00ff41; transform: translateY(2px); box-shadow: 0 0 15px #00ff41; }
#synthesizer-window [data-note="C#4"], #synthesizer-window [data-note="D#4"], #synthesizer-window [data-note="F#4"], #synthesizer-window [data-note="G#4"], #synthesizer-window [data-note="A#4"], #synthesizer-window [data-note="C#5"], #synthesizer-window [data-note="D#5"] { width: 6%; position: absolute; z-index: 1; }
#synthesizer-window [data-note="C#4"] { left: 6%; }
#synthesizer-window [data-note="D#4"] { left: 16%; }
#synthesizer-window [data-note="F#4"] { left: 36%; }
#synthesizer-window [data-note="G#4"] { left: 46%; }
#synthesizer-window [data-note="A#4"] { left: 56%; }
#synthesizer-window [data-note="C#5"] { left: 76%; }
#synthesizer-window [data-note="D#5"] { left: 86%; }

/* MUSIC PLAYER THEME */
#music-window .music-list {
    display: flex;
    flex-direction: column;
    gap: 8px;
}
.music-track {
    padding: 8px 12px;
    cursor: pointer;
    border: 1px solid transparent;
    transition: all 0.2s ease-in-out;
    border-left: 1px solid transparent;
}
.music-track:hover {
    background-color: rgba(0, 255, 65, 0.2);
    border-left: 1px solid #00ff41;
}
.music-track.playing {
    color: #000;
    background-color: #00ff41;
    font-weight: bold;
}