* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    background: linear-gradient(135deg, #0a0a0a 0%, #1a1a2e 100%);
    color: #e0e0e0;
    font-family: 'Courier New', monospace;
    overflow: hidden;
    height: 100vh;
}

.container {
    display: flex;
    flex-direction: column;
    height: 100vh;
    background: radial-gradient(ellipse at center, rgba(0, 255, 65, 0.05) 0%, transparent 70%);
}

/* Header Styles */
.header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 25px;
    background: linear-gradient(45deg, #2a2a2a, #3a3a3a);
    border-bottom: 2px solid #00ff41;
    box-shadow: 0 4px 20px rgba(0, 255, 65, 0.3);
}

.title-section {
    display: flex;
    flex-direction: column;
}

.app-title {
    font-size: 2.5em;
    font-weight: bold;
    color: #00ff41;
    text-shadow: 0 0 20px #00ff41, 0 0 40px #00ff41;
    letter-spacing: 3px;
}

.subtitle {
    font-size: 0.9em;
    color: #888;
    letter-spacing: 1px;
}

.status-indicators {
    display: flex;
    gap: 20px;
}

.led-indicator {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 5px;
}

.led {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: #333;
    border: 2px solid #555;
    transition: all 0.3s ease;
}

.led-indicator.active .led {
    background: radial-gradient(circle, #00ff41, #00cc33);
    box-shadow: 0 0 15px #00ff41, inset 0 0 5px rgba(255, 255, 255, 0.3);
    border-color: #00ff41;
}

.led-indicator span {
    font-size: 0.7em;
    color: #ccc;
    letter-spacing: 1px;
}

.channel-counter {
    text-align: center;
}

.digital-display {
    background: #000;
    color: #00ff41;
    padding: 8px 15px;
    border: 2px solid #333;
    border-radius: 4px;
    font-family: 'Courier New', monospace;
    font-size: 1.1em;
    letter-spacing: 2px;
    text-shadow: 0 0 10px #00ff41;
}

/* Main Content */
.main-content {
    display: flex;
    flex: 1;
    gap: 20px;
    padding: 20px;
    overflow: hidden;
}

.scope-container {
    flex: 1;
    position: relative;
    background: #0a0a0a;
    border: 3px solid #333;
    border-radius: 8px;
    box-shadow: inset 0 0 50px rgba(0, 0, 0, 0.8);
}

#canvas {
    width: 100%;
    height: 100%;
    display: block;
    border-radius: 5px;
}

.scope-overlay {
    position: absolute;
    bottom: 10px;
    left: 10px;
    right: 10px;
}

.time-axis {
    display: flex;
    justify-content: space-between;
    color: rgba(224, 224, 224, 0.6);
    font-size: 0.8em;
}

/* Control Panel */
.control-panel {
    width: 300px;
    display: flex;
    flex-direction: column;
    gap: 20px;
    background: linear-gradient(145deg, #2a2a2a, #1a1a1a);
    padding: 20px;
    border-radius: 12px;
    border: 2px solid #333;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
}

.file-section {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.drop-zone {
    border: 2px dashed #555;
    border-radius: 8px;
    padding: 30px 20px;
    text-align: center;
    background: rgba(0, 0, 0, 0.3);
    transition: all 0.3s ease;
    cursor: pointer;
}

.drop-zone:hover {
    border-color: #00ff41;
    background: rgba(0, 255, 65, 0.1);
}

.drop-zone.drag-over {
    border-color: #00ff41;
    background: rgba(0, 255, 65, 0.2);
    transform: scale(1.02);
}

.upload-icon {
    font-size: 2em;
    margin-bottom: 10px;
}

.drop-text {
    color: #ccc;
    margin-bottom: 15px;
}

.load-button {
    background: linear-gradient(45deg, #00ff41, #00cc33);
    color: #000;
    border: none;
    padding: 10px 20px;
    border-radius: 6px;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.3s ease;
    font-family: inherit;
    letter-spacing: 1px;
}

.load-button:hover {
    background: linear-gradient(45deg, #00cc33, #009926);
    box-shadow: 0 5px 15px rgba(0, 255, 65, 0.4);
    transform: translateY(-2px);
}

.file-info {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px;
    background: rgba(0, 0, 0, 0.4);
    border-radius: 6px;
}

.file-name {
    color: #00ff41;
    font-weight: bold;
    max-width: 180px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.file-duration {
    color: #ccc;
    font-size: 0.9em;
}

/* Playback Controls */
.playback-controls {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.control-btn {
    background: linear-gradient(45deg, #333, #555);
    color: #fff;
    border: 2px solid #666;
    padding: 12px;
    border-radius: 8px;
    font-size: 1.2em;
    cursor: pointer;
    transition: all 0.3s ease;
    min-width: 50px;
}

.control-btn:hover {
    background: linear-gradient(45deg, #555, #777);
    border-color: #00ff41;
    box-shadow: 0 0 15px rgba(0, 255, 65, 0.3);
}

.control-btn:active {
    transform: scale(0.95);
}

.progress-container {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.progress-bar {
    height: 8px;
    background: #333;
    border-radius: 4px;
    cursor: pointer;
    overflow: hidden;
}

.progress-fill {
    height: 100%;
    background: linear-gradient(90deg, #00ff41, #00cc33);
    width: 0%;
    transition: width 0.1s ease;
    border-radius: 4px;
}

.time-display {
    font-size: 0.9em;
    color: #ccc;
    text-align: center;
}

.volume-control {
    display: flex;
    align-items: center;
    gap: 10px;
}

.volume-control label {
    color: #ccc;
    font-size: 0.9em;
    min-width: 30px;
}

/* Channel Controls */
.channel-controls {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.master-gain {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
}

.master-gain label {
    color: #00ff41;
    font-weight: bold;
    letter-spacing: 1px;
}

.gain-knob {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: radial-gradient(circle, #444, #222);
    border: 3px solid #666;
    position: relative;
    cursor: pointer;
    transition: all 0.3s ease;
}

.gain-knob:hover {
    border-color: #00ff41;
    box-shadow: 0 0 20px rgba(0, 255, 65, 0.3);
}

.knob-indicator {
    position: absolute;
    top: 5px;
    left: 50%;
    width: 3px;
    height: 20px;
    background: #00ff41;
    transform-origin: bottom center;
    transform: translateX(-50%) rotate(-135deg);
    transition: transform 0.2s ease;
}

.gain-value {
    color: #00ff41;
    font-weight: bold;
    font-size: 0.9em;
}

.settings-button {
    background: linear-gradient(45deg, #666, #888);
    color: #fff;
    border: none;
    padding: 10px 15px;
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-family: inherit;
}

.settings-button:hover {
    background: linear-gradient(45deg, #888, #aaa);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
}

/* Settings Panel */
.settings-panel {
    display: none;
    flex-direction: column;
    gap: 15px;
    padding: 15px;
    background: rgba(0, 0, 0, 0.6);
    border-radius: 8px;
    border: 1px solid #555;
}

.settings-panel.visible {
    display: flex;
}

.settings-panel h3 {
    color: #00ff41;
    margin-bottom: 10px;
}

.setting-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 10px;
}

.setting-row label {
    color: #ccc;
    min-width: 80px;
}

.slider {
    flex: 1;
    background: #333;
    height: 6px;
    border-radius: 3px;
    outline: none;
    cursor: pointer;
}

.slider::-webkit-slider-thumb {
    appearance: none;
    width: 16px;
    height: 16px;
    border-radius: 50%;
    background: #00ff41;
    cursor: pointer;
    box-shadow: 0 0 10px rgba(0, 255, 65, 0.5);
}

.slider::-moz-range-thumb {
    width: 16px;
    height: 16px;
    border-radius: 50%;
    background: #00ff41;
    cursor: pointer;
    border: none;
}

select {
    background: #333;
    color: #fff;
    border: 1px solid #555;
    padding: 5px;
    border-radius: 4px;
}

input[type="checkbox"] {
    width: 16px;
    height: 16px;
    accent-color: #00ff41;
}

/* Spectrum Strip */
.spectrum-strip {
    height: 80px;
    background: linear-gradient(45deg, #2a2a2a, #1a1a1a);
    border-top: 2px solid #333;
    display: flex;
    align-items: center;
    padding: 10px 20px;
    gap: 20px;
}

#spectrumCanvas {
    flex: 1;
    height: 60px;
    background: rgba(0, 0, 0, 0.5);
    border-radius: 4px;
}

.technical-info {
    display: flex;
    flex-direction: column;
    gap: 5px;
    min-width: 200px;
}

.technical-info span {
    font-size: 0.8em;
    color: #888;
}

/* Footer */
.footer {
    padding: 10px 20px;
    background: #1a1a1a;
    border-top: 1px solid #333;
    text-align: center;
}

.credits {
    color: #666;
    font-size: 0.9em;
}

.credits a {
    color: #00ff41;
    text-decoration: none;
    transition: color 0.3s ease;
}

.credits a:hover {
    color: #00cc33;
    text-shadow: 0 0 10px #00ff41;
}

/* Responsive Design */
@media (max-width: 1200px) {
    .main-content {
        flex-direction: column;
    }
    
    .control-panel {
        width: 100%;
        max-height: 200px;
        overflow-y: auto;
    }
}

@media (max-width: 768px) {
    .header {
        flex-direction: column;
        gap: 15px;
    }
    
    .app-title {
        font-size: 2em;
    }
    
    .status-indicators {
        flex-direction: row;
        gap: 15px;
    }
}

/* Animations */
@keyframes pulse {
    0% { opacity: 1; }
    50% { opacity: 0.7; }
    100% { opacity: 1; }
}

.led-indicator.active .led {
    animation: pulse 2s infinite;
}

@keyframes glow {
    0% { box-shadow: 0 0 5px rgba(0, 255, 65, 0.3); }
    50% { box-shadow: 0 0 20px rgba(0, 255, 65, 0.6); }
    100% { box-shadow: 0 0 5px rgba(0, 255, 65, 0.3); }
}

.scope-container {
    animation: glow 4s infinite;
}