/* Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Courier New', monospace;
}

body {
    background-color: #000;
    color: #0aff9d; /* Mint green */
    overflow-x: hidden;
    height: 100vh;
    display: flex;
    flex-direction: column;
}

#particles-js {
    position: fixed;
    width: 100%;
    height: 100%;
    z-index: -1;
    background-color: #000;
}

/* Terminal Style Elements */
.terminal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 20px;
    background-color: rgba(0, 20, 10, 0.8);
    border-bottom: 1px solid #0aff9d;
}

.terminal-title {
    font-size: 1.2rem;
    font-weight: bold;
    letter-spacing: 1px;
}

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

.control-dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    display: inline-block;
}

.control-dot.red { background-color: #ff5f56; }
.control-dot.yellow { background-color: #ffbd2e; }
.control-dot.green { background-color: #27c93f; }

.terminal-footer {
    padding: 8px 20px;
    background-color: rgba(0, 20, 10, 0.8);
    border-top: 1px solid #0aff9d;
}

.status-bar {
    display: flex;
    justify-content: space-between;
    font-size: 0.9rem;
}

/* Mixer Container */
.mixer-container {
    display: flex;
    flex: 1;
    padding: 20px;
    gap: 20px;
    max-width: 1400px;
    margin: 0 auto;
    width: 100%;
}

/* Deck Styles */
.deck {
    flex: 1;
    min-width: 0;
    background-color: rgba(0, 15, 8, 0.7);
    border: 1px solid #0aff9d;
    border-radius: 8px;
    padding: 15px;
    display: flex;
    flex-direction: column;
    gap: 15px;
    box-shadow: 0 0 15px rgba(10, 255, 157, 0.2);
}

.deck-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-bottom: 10px;
    border-bottom: 1px solid rgba(10, 255, 157, 0.3);
}

.deck-label {
    font-weight: bold;
    font-size: 1.1rem;
    letter-spacing: 1px;
}

.bpm-display {
    display: flex;
    align-items: center;
    gap: 5px;
}

.bpm-label {
    font-size: 0.9rem;
    opacity: 0.8;
}

.bpm-value {
    font-weight: bold;
    min-width: 40px;
    text-align: right;
}

/* Waveform */
.waveform-container {
    height: 100px;
    background-color: rgba(0, 10, 5, 0.5);
    border: 1px solid rgba(10, 255, 157, 0.2);
    border-radius: 4px;
    overflow: hidden;
}

/* Deck Controls */
.deck-controls {
    display: flex;
    gap: 15px;
    align-items: center;
}

.jogwheel {
    width: 100px;
    height: 100px;
    border-radius: 50%;
    background-color: rgba(0, 10, 5, 0.8);
    border: 2px solid #0aff9d;
    position: relative;
    cursor: pointer;
    user-select: none;
    touch-action: none;
    box-shadow: 0 0 10px rgba(10, 255, 157, 0.3);
}

.jogwheel-inner {
    position: absolute;
    width: 30px;
    height: 30px;
    background-color: rgba(10, 255, 157, 0.2);
    border: 1px solid #0aff9d;
    border-radius: 50%;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
}

.jogwheel-markers {
    position: absolute;
    width: 100%;
    height: 100%;
}

.marker {
    position: absolute;
    width: 4px;
    height: 12px;
    background-color: #0aff9d;
    left: 50%;
    transform: translateX(-50%);
}

.marker:nth-child(1) { top: 5px; }
.marker:nth-child(2) { top: 50%; right: 5px; transform: translateY(-50%) rotate(90deg); }
.marker:nth-child(3) { bottom: 5px; }
.marker:nth-child(4) { top: 50%; left: 5px; transform: translateY(-50%) rotate(90deg); }

.transport-controls {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.play-btn, .cue-btn, .sync-btn {
    background-color: rgba(10, 255, 157, 0.1);
    border: 1px solid #0aff9d;
    color: #0aff9d;
    width: 60px;
    height: 30px;
    border-radius: 4px;
    cursor: pointer;
    font-family: 'Courier New', monospace;
    font-size: 0.9rem;
    transition: all 0.2s;
}

.play-btn:hover, .cue-btn:hover, .sync-btn:hover {
    background-color: rgba(10, 255, 157, 0.3);
}

.play-btn.active {
    background-color: #0aff9d;
    color: #000;
}

.pitch-control {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 5px;
}

.pitch-slider {
    width: 30px;
    height: 150px;
    background-color: rgba(0, 10, 5, 0.8);
    border: 1px solid #0aff9d;
    border-radius: 15px;
    position: relative;
    cursor: pointer;
}

.pitch-value {
    font-size: 0.9rem;
    min-width: 60px;
    text-align: center;
}

/* EQ Controls */
.eq-controls {
    display: flex;
    justify-content: space-around;
    gap: 10px;
}

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

.knob-label {
    font-size: 0.8rem;
    opacity: 0.8;
}

.knob-value {
    font-size: 0.9rem;
    min-width: 30px;
    text-align: center;
}

/* Filter Control */
.filter-control {
    display: flex;
    justify-content: center;
}

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

/* Volume Control */
.volume-control {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 5px;
}

.volume-slider {
    width: 30px;
    height: 100px;
    background-color: rgba(0, 10, 5, 0.8);
    border: 1px solid #0aff9d;
    border-radius: 15px;
    position: relative;
    cursor: pointer;
}

.volume-value {
    font-size: 0.9rem;
    min-width: 50px;
    text-align: center;
}

/* Track Info */
.track-info {
    background-color: rgba(0, 10, 5, 0.5);
    border: 1px solid rgba(10, 255, 157, 0.2);
    border-radius: 4px;
    padding: 8px;
    font-size: 0.9rem;
}

.track-name {
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    margin-bottom: 5px;
}

.time-display {
    display: flex;
    justify-content: space-between;
    font-size: 0.8rem;
    opacity: 0.8;
}

/* Load Track */
.load-track {
    margin-top: auto;
}

.file-input {
    display: none;
}

.load-btn {
    display: block;
    width: 100%;
    padding: 8px;
    background-color: rgba(10, 255, 157, 0.1);
    border: 1px solid #0aff9d;
    color: #0aff9d;
    text-align: center;
    border-radius: 4px;
    cursor: pointer;
    font-size: 0.9rem;
    transition: all 0.2s;
}

.load-btn:hover {
    background-color: rgba(10, 255, 157, 0.3);
}

/* Mixer Section */
.mixer-section {
    width: 120px;
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.crossfader {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 5px;
    margin-top: 20px;
}

.crossfader-slider {
    width: 100%;
    height: 30px;
    background-color: rgba(0, 10, 5, 0.8);
    border: 1px solid #0aff9d;
    border-radius: 15px;
    position: relative;
    cursor: pointer;
    transform: rotate(-90deg);
    margin: 40px 0;
}

.crossfader-labels {
    display: flex;
    justify-content: space-between;
    width: 100%;
    font-size: 0.9rem;
    margin-top: -30px;
}

.master-controls {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

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

.effects-panel {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.effect-btn {
    padding: 8px;
    background-color: rgba(10, 255, 157, 0.1);
    border: 1px solid #0aff9d;
    color: #0aff9d;
    text-align: center;
    border-radius: 4px;
    cursor: pointer;
    font-size: 0.8rem;
    transition: all 0.2s;
}

.effect-btn:hover {
    background-color: rgba(10, 255, 157, 0.3);
}

.effect-btn.active {
    background-color: #0aff9d;
    color: #000;
}

/* VU Meter */
.vu-meter {
    height: 150px;
    background-color: rgba(0, 10, 5, 0.5);
    border: 1px solid rgba(10, 255, 157, 0.2);
    border-radius: 4px;
    display: flex;
    gap: 2px;
    padding: 5px;
    margin-top: auto;
}

.vu-left, .vu-right {
    flex: 1;
    display: flex;
    flex-direction: column-reverse;
    gap: 2px;
}

.vu-segment {
    height: 5px;
    background-color: rgba(10, 255, 157, 0.1);
    border-radius: 2px;
    transition: background-color 0.1s;
}

/* Responsive Adjustments */
@media (max-width: 1200px) {
    .mixer-container {
        flex-direction: column;
        align-items: center;
    }
    
    .deck {
        width: 100%;
        max-width: 600px;
    }
    
    .mixer-section {
        width: 100%;
        max-width: 600px;
        flex-direction: row;
        align-items: center;
    }
    
    .crossfader {
        margin-top: 0;
        flex: 1;
    }
    
    .crossfader-slider {
        transform: none;
        margin: 0;
        width: 80%;
    }
    
    .crossfader-labels {
        margin-top: 0;
        width: 80%;
    }
    
    .master-controls {
        flex: 1;
    }
    
    .vu-meter {
        height: 100px;
        width: 100px;
        flex-direction: row;
    }
    
    .vu-left, .vu-right {
        flex-direction: row-reverse;
    }
    
    .vu-segment {
        width: 5px;
        height: 100%;
    }
}

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

.pulse {
    animation: pulse 1.5s infinite;
}

/* Custom Scrollbar */
::-webkit-scrollbar {
    width: 8px;
    height: 8px;
}

::-webkit-scrollbar-track {
    background: rgba(0, 10, 5, 0.5);
}

::-webkit-scrollbar-thumb {
    background: #0aff9d;
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: rgba(10, 255, 157, 0.8);
}