/* ==========================================================================
   Niffty DJ - Studio SP-Sampler Rack & Sample Vault
   ========================================================================== */

.sampler-studio-drawer {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    height: 380px;
    background: linear-gradient(180deg, #101624 0%, #080b12 100%);
    border-top: 2px solid var(--neon-cyan);
    box-shadow: 0 -12px 40px rgba(0, 0, 0, 0.9);
    display: none;
    flex-direction: column;
    z-index: 600;
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.sampler-studio-drawer.active {
    display: flex;
}

/* Sampler Header & Bank Selectors */
.sampler-drawer-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 8px 16px;
    background: #060910;
    border-bottom: 1px solid var(--border-medium);
}

.sampler-title-group {
    display: flex;
    align-items: center;
    gap: 12px;
}

.sampler-title {
    font-size: 13px;
    font-weight: 900;
    letter-spacing: 1.5px;
    color: #fff;
    display: flex;
    align-items: center;
    gap: 6px;
}

.sampler-banks-nav {
    display: flex;
    gap: 4px;
    background: #0a0e17;
    padding: 3px;
    border-radius: 6px;
    border: 1px solid var(--border-subtle);
}

.sampler-bank-btn {
    background: transparent;
    border: none;
    color: var(--text-muted);
    font-size: 11px;
    font-weight: 800;
    padding: 4px 12px;
    border-radius: 4px;
    cursor: pointer;
    transition: all 0.15s ease;
}

.sampler-bank-btn.active {
    background: linear-gradient(135deg, var(--neon-cyan), #4facfe);
    color: #000;
    font-weight: 900;
    box-shadow: 0 0 10px rgba(0, 242, 254, 0.4);
}

.sampler-master-controls {
    display: flex;
    align-items: center;
    gap: 12px;
}

.sampler-master-vol {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 10px;
    font-weight: 700;
    color: var(--text-secondary);
}

.sampler-mic-rec-btn {
    background: linear-gradient(135deg, rgba(255, 0, 85, 0.2), rgba(255, 190, 11, 0.2));
    border: 1px solid rgba(255, 0, 85, 0.4);
    color: var(--neon-crimson);
    font-size: 10px;
    font-weight: 800;
    padding: 5px 12px;
    border-radius: 6px;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 6px;
    transition: all 0.15s ease;
}

.sampler-mic-rec-btn.recording {
    background: var(--neon-crimson);
    color: #fff;
    box-shadow: 0 0 14px rgba(255, 0, 85, 0.6);
    animation: recPulse 1.2s infinite;
}

.close-sampler-drawer-btn {
    background: transparent;
    border: none;
    color: var(--text-muted);
    font-size: 20px;
    cursor: pointer;
    font-weight: 800;
}

.close-sampler-drawer-btn:hover {
    color: #fff;
}

/* 8 Sampler Slots Grid */
.sampler-slots-grid {
    flex: 1;
    display: grid;
    grid-template-columns: repeat(8, 1fr);
    gap: 8px;
    padding: 12px 16px;
    overflow-y: auto;
}

.sampler-slot-card {
    background: #0a0d14;
    border: 1px solid var(--border-medium);
    border-radius: 8px;
    padding: 8px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    gap: 6px;
    position: relative;
    box-shadow: inset 0 0 14px rgba(0, 0, 0, 0.6);
    transition: all 0.15s ease;
}

.sampler-slot-card.empty {
    border-style: dashed;
    border-color: rgba(255, 255, 255, 0.1);
}

.sampler-slot-card:hover {
    border-color: var(--slot-color, var(--neon-cyan));
    box-shadow: 0 0 12px rgba(0, 242, 254, 0.2);
}

.sampler-slot-card.playing {
    border-color: var(--slot-color, var(--neon-cyan));
    background: rgba(0, 242, 254, 0.12);
    box-shadow: 0 0 20px var(--slot-color, var(--neon-cyan));
}

.slot-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.slot-num {
    font-size: 9px;
    font-weight: 900;
    color: var(--slot-color, var(--neon-cyan));
    background: rgba(255, 255, 255, 0.05);
    padding: 2px 5px;
    border-radius: 3px;
}

.slot-mode-tag {
    font-size: 8px;
    font-weight: 800;
    color: var(--text-muted);
    cursor: pointer;
    background: #060910;
    padding: 1px 4px;
    border-radius: 3px;
    border: 1px solid var(--border-subtle);
}

.slot-waveform-preview {
    width: 100%;
    height: 48px;
    background: #04060a;
    border-radius: 4px;
    border: 1px solid rgba(255, 255, 255, 0.05);
    display: block;
}

.slot-title {
    font-size: 11px;
    font-weight: 800;
    color: #fff;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    text-align: center;
}

.slot-trigger-btn {
    width: 100%;
    height: 38px;
    background: linear-gradient(180deg, #161f30 0%, #0e1522 100%);
    border: 1px solid var(--border-medium);
    border-radius: 6px;
    color: #fff;
    font-size: 11px;
    font-weight: 800;
    cursor: pointer;
    transition: all 0.1s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 4px;
}

.slot-trigger-btn:hover {
    background: var(--slot-color, var(--neon-cyan));
    color: #000;
    font-weight: 900;
    box-shadow: 0 0 14px var(--slot-color, var(--neon-cyan));
}

.slot-trigger-btn:active, .sampler-slot-card.playing .slot-trigger-btn {
    background: var(--slot-color, var(--neon-cyan));
    color: #000;
    transform: scale(0.96);
}

.slot-faders-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 6px;
}

.slot-vol-slider {
    appearance: none;
    -webkit-appearance: none;
    width: 100%;
    height: 4px;
    background: #1a2233;
    border-radius: 2px;
    outline: none;
    cursor: pointer;
}

.slot-vol-slider::-webkit-slider-thumb {
    appearance: none;
    -webkit-appearance: none;
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: var(--slot-color, var(--neon-cyan));
    cursor: pointer;
}

.slot-actions-row {
    display: flex;
    justify-content: space-between;
    gap: 4px;
}

.slot-mini-btn {
    flex: 1;
    background: #0e1522;
    border: 1px solid var(--border-subtle);
    color: var(--text-muted);
    font-size: 8px;
    font-weight: 700;
    padding: 3px 0;
    border-radius: 3px;
    cursor: pointer;
}

.slot-mini-btn:hover {
    color: #fff;
    border-color: var(--border-medium);
}
