/* Base CSS - Simplified UI Component Classes */




/* ========================================
   BASE STYLES & RESET
   ======================================== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background: var(--primary-bg);
    color: var(--text-primary);
    transition: background 0.3s ease, color 0.3s ease;
}

/* ========================================
   CONTROL SECTION HEADERS
   ======================================== */

/* Control section headers for plugin controls */
.control-section-header {
    font-size: 11px;
    font-weight: bold;
    color: #888;
    margin: 8px 0 4px 0;
    padding: 2px 0;
    border-bottom: 1px solid #333;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* ========================================
   BUTTONS
   ======================================== */

/* Primary Button - Main action buttons */
.btn-primary {
    background: var(--accent-color);
    color: var(--primary-bg);
    border: 1px solid var(--border-color);
    border-radius: 6px;
    padding: 8px 16px;
    font-size: 12px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    white-space: nowrap;
    display: flex;
    align-items: center;
    justify-content: center;
    min-width: 80px;
    height: 32px !important;
    box-sizing: border-box;
}

/* Primary Button Mixer - Compact version for mixer channels */
.btn-primary-mixer {
    background: var(--accent-color);
    color: var(--primary-bg);
    border: 1px solid var(--border-color);
    border-radius: 6px;
    padding: 8px 16px;
    font-size: 12px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    white-space: nowrap;
    display: flex;
    align-items: center;
    justify-content: center;
    min-width: 80px;
    height: 26px !important;
    box-sizing: border-box;
}

.btn-primary:hover {
    background: var(--hover-color);
    color: var(--text-primary);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.5);
}

.btn-primary-mixer:hover {
    background: var(--hover-color);
    color: var(--text-primary);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.5);
}

.btn-primary.active {
    background: var(--highlight-color);
    color: var(--primary-bg);
}

.btn-primary-mixer.active {
    background: var(--highlight-color);
    color: var(--primary-bg);
}

/* Danger Button - Destructive actions */
.btn-danger {
    background: var(--error-color);
    color: white;
    border: 1px solid #dc2626;
    border-radius: 6px;
    padding: 8px 16px;
    font-size: 12px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
}

.btn-danger:hover {
    background: #dc2626;
    transform: translateY(-1px);
    box-shadow: 0 2px 8px rgba(220, 38, 38, 0.3);
}

.btn-danger:active {
    transform: translateY(0);
    box-shadow: 0 1px 4px rgba(220, 38, 38, 0.3);
}

/* Secondary Button - Secondary actions */
.btn-secondary {
    background: transparent;
    color: var(--text-primary);
    border: 1px solid var(--border-color);
    border-radius: 5px;
    padding: 6px 20px;
    font-size: 11px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    white-space: nowrap;
    min-width: 60px;
    height: 32px !important;
    box-sizing: border-box;
    display: flex;
    align-items: center;
    justify-content: center;
}

.btn-secondary:hover {
    background: var(--hover-color);
    color: var(--text-primary);
}

/* Live Mode Button - Live mode indicators */
.btn-live {
    background: #ff3333;
    color: white;
    border: 1px solid #ff3333;
    border-radius: 5px;
    padding: 6px 20px;
    font-size: 11px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    white-space: nowrap;
    min-width: 60px;
    height: 32px !important;
    box-sizing: border-box;
    display: flex;
    align-items: center;
    justify-content: center;
}

.btn-live:hover {
    background: #cc2222;
    color: white;
}

/* Effect Toggle Button - Toggle states */
.btn-toggle {
    background: var(--accent-color, #2a2a2a);
    border: 1px solid var(--border-color, #898989);
    color: var(--primary-bg);
    padding: 8px 12px !important;
    border-radius: 4px;
    cursor: pointer;
    font-size: 12px !important;
    transition: all 0.2s ease;
    width: 100%;
    white-space: nowrap;
    display: flex;
    align-items: center;
    justify-content: center;
    box-sizing: border-box;
    height: 32px !important;
    line-height: normal;
}

.btn-toggle:hover {
    background: var(--hover-color);
    color: white;
}

.btn-toggle.active {
    background: var(--accent-color);
    color: white;
}

/* Special case for visualization buttons - use info-color for active state */
#headerInfiniteZoomBtn.active,
#headerBlobsBtn.active,
#headerWebGLBtn.active,
#headerFluidDynamicsBtn.active,
#headerNebulaBtn.active {
    background: var(--info-color);
    color: white;
}

/* Special case for Kaleidoscope panel buttons - use info-color for active state */
#headerKaleidoscopeVideoBtn.active,
#headerKaleidoscopeVizBtn.active,
#headerKaleidoscopeInfiniteZoomBtn.active,
#headerKaleidoscopeShapeBtn.active {
    background: var(--info-color);
    color: white;
}

/* Special case for main Kaleidoscope button - use info-color for active state */
#headerKaleidoscopeBtn.active {
    background: var(--info-color);
    color: white;
}

/* Toggle Button 32px Wide - Special case for visualizer toggle */
.btn-toggle-32w {
    background: var(--hover-color, #2a2a2a);
    border: 1px solid var(--border-color, #898989);
    color: var(--text-secondary);
    border-radius: 4px;
    cursor: pointer;
    font-size: 12px !important;
    transition: all 0.2s ease;
    width: 28px !important;
    min-width: 28px !important;
    height: 28px !important;
    white-space: nowrap;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 1px;
    margin-left: -3px;
}

.btn-toggle-32w:hover {
    background: var(--accent-color);
    color: white;
}

.btn-toggle-32w.active {
    background: var(--info-color);
    color: white;
}

/* Mixer Video File Info Container */
.mixer-video-file-info {
    display: none;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--border-color);
    border-radius: 4px;
    padding: 8px;
    margin-top: 8px;
    min-height: 96px;
}

/* Mixer Video File Name Display */
.mixer-video-file-name {
    color: var(--text-primary);
    font-size: 11px;
    display: block;
    margin-bottom: 6px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 24ch;
}

/* Video File Controls Inline Layout */
.video-file-controls-inline {
    display: flex;
    gap: 4px;
    justify-content: center;
}

/* SVG styling for toggle buttons */
.btn-toggle-32w svg {
    width: 20px !important;
    height: 20px !important;
    fill: rgba(255, 255, 255, 0.7) !important;
    transition: fill 0.2s ease;
}

.btn-toggle-32w:hover svg {
    fill: rgba(255, 255, 255, 0.9) !important;
}

.btn-toggle-32w.active svg {
    fill: white !important;
}

/* Delete Button Variant - Red trash can styling */
.btn-toggle-32w-delete {
    background: var(--hover-color, #2a2a2a);
    border: 1px solid var(--border-color, #898989);
    color: var(--text-secondary);
    border-radius: 4px;
    cursor: pointer;
    font-size: 12px !important;
    transition: all 0.2s ease;
    width: 28px !important;
    height: 28px !important;
    white-space: nowrap;
    display: flex;
    align-items: center;
    justify-content: center;
}

.btn-toggle-32w-delete {
    background-color: transparent;
    transition: background-color 0.2s ease;
}

.btn-toggle-32w-delete:hover {
    background-color: var(--error-color) !important;
}

.btn-toggle-32w-delete svg {
    width: 20px !important;
    height: 20px !important;
    fill: rgba(255, 255, 255, 0.7) !important;
}

/* Align toggle button to top of its container */
.visualizer-controls .btn-toggle-32w,
.advanced-viz .btn-toggle-32w {
    align-self: flex-start;
}

.btn-toggle-32w .toggle-text {
    font-size: 10px;
    font-weight: bold;
    color: rgba(255, 255, 255, 0.7);
    transition: color 0.3s ease;
}

.btn-toggle-32w:hover .toggle-text {
    color: rgba(255, 255, 255, 0.9);
}

.btn-toggle-32w.active .toggle-text {
    color: var(--primary-bg);
}

.btn-toggle-32w.active:hover .toggle-text {
    color: var(--primary-bg);
}

/* WebGL Button Text */
.webgl-btn-text {
    font-size: 12px;
    color: rgba(255, 255, 255, 0.8);
    transition: color 0.3s ease;
}

.btn-toggle:hover .webgl-btn-text {
    color: rgba(255, 255, 255, 1.0);
}

.btn-toggle.active .webgl-btn-text {
    color: white;
}

/* Nebula Button Text */
.nebula-btn-text {
    font-size: 12px;
    color: rgba(255, 255, 255, 0.8);
    transition: color 0.3s ease;
}

.btn-toggle:hover .nebula-btn-text {
    color: rgba(255, 255, 255, 1.0);
}

.btn-toggle.active .nebula-btn-text {
    color: white;
}


/* Morph Button - Morph controls */
.btn-morph {
    background: var(--hover-color);
    border: 1px solid var(--border-color);
    color: var(--text-secondary);
    border-radius: 6px;
    padding: 8px 12px;
    font-size: 12px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    white-space: nowrap;
    min-width: 80px;
    height: 26px !important;
    display: flex;
    align-items: center;
    justify-content: center;
    box-sizing: border-box;
    overflow: hidden;
}

.btn-morph:hover {
    background: var(--accent-color);
    color: var(--primary-bg);
    transform: translateY(-2px);
}

.btn-morph.active {
    background: linear-gradient(90deg, #ff0080, #ff8c00, #ffd700, #00ff00, #00ffff, #0080ff, #8000ff, #ff0080);
    background-size: 200% 100%;
    animation: morph-gradient 3s linear infinite;
    color: white;
}

@keyframes morph-gradient {
    0% { background-position: 0% 50%; }
    100% { background-position: 200% 50%; }
}

/* Square Button - For icon buttons like C V B A */
.btn-square {
    background: var(--accent-color);
    color: rgba(255, 255, 255, 0.7);
    border: 1px solid var(--border-color);
    border-radius: 5px;
    padding: 0;
    font-size: 18px;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.3s ease;
    white-space: nowrap;
    width: 32px !important;
    height: 32px !important;
    display: flex;
    align-items: center;
    justify-content: center;
}

.btn-square:hover {
    background: var(--hover-color);
    color: rgba(255, 255, 255, 0.9);
    transform: scale(1.1);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.5);
}

.btn-square.active {
    background: var(--accent-color);
    color: var(--primary-bg);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.4);
}

/* Gear Button - Settings/gear buttons (attached to parent buttons) */
.btn-gear {
    background: var(--hover-color);
    color: rgba(255, 255, 255, 0.7);
    border: 1px solid var(--border-color);
    border-radius: 5px;
    padding: 0;
    font-size: 10px;
    font-weight: bold;
    width: 18px !important;
    height: 18px !important;
    cursor: pointer;
    transition: all 0.3s ease;
    white-space: nowrap;
    display: flex;
    align-items: center;
    justify-content: center;
    box-sizing: border-box;
    overflow: hidden;
}

.btn-gear:hover {
    background: var(--accent-color);
    color: white;
    transform: translateY(-1px);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
}

.btn-gear.active {
    background: var(--accent-color);
    color: white;
}

/* Preset Buttons Container - Flexible grid for preset buttons */
.preset-buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 4px;
    justify-content: flex-start;
    align-items: stretch;
    margin: 8px 0;
}

.preset-buttons .btn-preset {
    flex: 1 1 calc(50% - 2px); /* 2 buttons per row with gap */
    min-width: 0;
    text-align: center;
}

/* For containers that need 3 buttons per row */
.preset-buttons.three-per-row .btn-preset {
    flex: 1 1 calc(33.333% - 3px); /* 3 buttons per row with gap */
}

/* Control Mini Label - Small labels for mixer controls */
.control-mini-label {
    font-size: 12px;
    color: var(--text-secondary);
    text-align: center;
}

/* Control Mini Group - Container for mini horizontal controls */
.control-mini-group {
    display: flex;
    flex-direction: column;
    gap: 4px;
    margin-bottom: 8px;
}

/* Control Mini Header - Label and value on same row */
.control-mini-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 2px;
}

/* Control Mini Value - Value display to right of label */
.control-mini-value {
    font-size: 10px;
    color: var(--text-primary);
    font-weight: 500;
    min-width: 24px;
    text-align: right;
}

/* Mini Slider - Horizontal mini slider for controls */
.mini-slider {
    -webkit-appearance: none;
    appearance: none;
    height: 4px;
    background: var(--hover-color);
    border-radius: 2px;
    outline: none;
    border: none;
    cursor: pointer;
    width: 100%;
}

.mini-slider::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: var(--text-secondary);
    cursor: pointer;
    border: 1px solid var(--border-color);
}

.mini-slider::-webkit-slider-thumb:hover {
    background: var(--text-primary);
}

.mini-slider::-moz-range-thumb {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: var(--text-secondary);
    cursor: pointer;
    border: 1px solid var(--border-color);
}

.mini-slider::-moz-range-thumb:hover {
    background: var(--text-primary);
}

/* Preset Button - Small preset selection buttons */
.btn-preset {
    background: var(--hover-color) !important;
    border: 1px solid var(--border-color) !important;
    color: var(--text-primary) !important;
    padding: 4px 8px !important;
    border-radius: 6px !important;
    cursor: pointer !important;
    font-size: 10px !important;
    text-align: center !important;
    transition: all 0.2s ease !important;
    white-space: nowrap !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    box-sizing: border-box !important;
    overflow: hidden !important;
    margin: 0 !important;
    width: auto !important;
    height: auto !important;
    min-width: auto !important;
    max-width: none !important;
    min-height: auto !important;
    max-height: none !important;
    font-weight: normal !important;
    line-height: normal !important;
    text-decoration: none !important;
    text-transform: none !important;
    letter-spacing: normal !important;
    word-spacing: normal !important;
    text-shadow: none !important;
    box-shadow: none !important;
    outline: none !important;
    transform: scale(0.9) !important;
    transform-origin: center !important;
}
.btn-preset:hover {
    background: var(--accent-color) !important;
    color: white !important;
}
.btn-preset.active {
    background: var(--accent-color) !important;
    color: white !important;
}

/* Button Pair Container - For button + gear button pairs */
.btn-pair {
    display: flex;
    align-items: flex-start;
    gap: 2px;
    margin: 0;
    padding: 0;
}

/* Force all gear buttons to have consistent width and height */
.btn-gear {
    width: 18px !important;
    height: 18px !important;
    min-width: 18px !important;
    max-width: 18px !important;
    min-height: 18px !important;
    max-height: 18px !important;
}

/* Force gear buttons in btn-pair containers to have consistent width and height */
.btn-pair .btn-gear {
    width: 18px !important;
    height: 18px !important;
    min-width: 18px !important;
    max-width: 18px !important;
    min-height: 18px !important;
    max-height: 18px !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    padding-bottom: 1px !important; /* Move icon up 1px to center it better */
}

/* ========================================
   SLIDERS
   ======================================== */

/* Slider Container - Base container for all sliders */
.slider-container {
    display: flex;
    flex-direction: column;
    gap: 4px;
    margin: 8px 0;
}

/* Slider Label - Always on top, left justified */
.slider-label {
    font-size: 12px;
    color: var(--text-secondary);
    text-align: left;
    margin-bottom: 2px;
}

/* Dropdown Label - Based on slider-label with additional margin */
.dropdown-label {
    font-size: 12px;
    color: var(--text-secondary);
    text-align: left;
    margin-bottom: 6px;
}

/* Dropdown Wrapper - Container for dropdown elements */
.dropdown-wrapper {
    margin-bottom: 16px; /* 8px more than standard 8px for Color Scheme spacing */
}

/* Mixer Dropdown - Special padding for mixer dropdowns */
.mixer-dropdown {
    padding: 8px 8px;
}

/* Channel Input Section - Minimum height */
.channel-input-section {
    min-height: 142px;
}

/* Collapsible Preset Sections */
.collapsible-header {
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    user-select: none;
    transition: color 0.2s ease;
    background: rgba(255, 255, 255, 0.05);
    padding: 4px 8px;
    border-radius: 3px;
}

.collapsible-header:hover {
    color: var(--text-primary);
}

.collapse-indicator {
    width: 0;
    height: 0;
    border-left: 4px solid var(--text-secondary);
    border-top: 3px solid transparent;
    border-bottom: 3px solid transparent;
    transition: transform 0.2s ease, border-color 0.2s ease;
    margin-left: 8px;
}

.collapsible-header:hover .collapse-indicator {
    border-left-color: var(--text-primary);
}

.collapsible-header.expanded .collapse-indicator {
    transform: rotate(90deg);
}

.collapsible-content {
    overflow: hidden;
    transition: max-height 0.3s ease, opacity 0.2s ease;
    max-height: 0;
    opacity: 0;
}

.collapsible-content.expanded {
   max-height: none !important; /* Increased for Nebula mixer controls (27 elements) */
    opacity: 1;
}

/* Add padding to top of channel controls section content */
.channel-controls-section .collapsible-content {
    padding-top: 8px;
}

/* ========================================
   SLIDER CONTAINERS - SELF-CONTAINED
   ======================================== */

/* Slider Group Container - Groups multiple sliders together */
.slider-group {
    background: rgba(255, 255, 255, 0.1);
    border-radius: 6px;
    padding: 12px;
    margin-bottom: 16px;
}

/* Slider 1 - Completely self-contained, no inheritance */
.slider-1-wrapper {
    display: grid;
    grid-template-rows: 4px 30px;
    grid-template-columns: 1fr 0px;
    gap: 4px;
    margin: 0;
    padding: 0;
    width: 200px;
    max-width: 200px;
}

.slider-1-wrapper .slider-label {
    grid-row: 1;
    margin: 0;
    padding: 0;
    white-space: nowrap;
    font-size: 12px;
    color: var(--text-secondary);
    text-align: left;
}

.slider-1-wrapper .slider-1 {
    grid-row: 2;
    grid-column: 1;
    width: 100%;
    height: 6px;
    border-radius: 3px;
    background: rgba(255, 255, 255, 0.1);
    outline: none;
    -webkit-appearance: none;
    appearance: none;
    margin: 0;
    padding: 0;
    align-self: center;
}

.slider-1-wrapper .slider-1-value {
    grid-row: 2;
    grid-column: 2;
    text-align: left;
    font-size: 12px;
    color: var(--text-secondary);
    margin: 0;
    padding: 0;
    min-width: unset !important;
    width: auto !important;
    max-width: none !important;
    flex: none !important;
    flex-grow: 0 !important;
    flex-shrink: 0 !important;
    flex-basis: auto !important;
    display: grid !important;
    place-items: center !important;
    align-self: center;
}

.slider-1::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: 18px;
    height: 18px;
    border-radius: 50%;
    background: var(--accent-color);
    cursor: pointer;
    border: 2px solid var(--primary-bg, #f5f3e9);
}

.slider-1::-moz-range-thumb {
    width: 18px;
    height: 18px;
    border-radius: 50%;
    background: var(--accent-color);
    cursor: pointer;
    border: 2px solid var(--primary-bg, #f5f3e9);
}

/* Slider 2 - Completely self-contained, no inheritance */
.slider-2-wrapper {
    display: grid;
    grid-template-rows: 4px 30px;
    grid-template-columns: 18px 1fr 0px;
    gap: 4px;
    margin: 0;
    padding: 0;
    width: 200px;
    max-width: 200px;
}

.slider-2-wrapper .slider-label {
    grid-row: 1;
    margin: 0;
    padding: 0;
    white-space: nowrap;
    font-size: 12px;
    color: var(--text-secondary);
    text-align: left;
}

.slider-2-wrapper .slider-2 {
    grid-row: 2;
    grid-column: 2;
    width: 100%;
    height: 6px;
    border-radius: 3px;
    background: rgba(255, 255, 255, 0.1);
    outline: none;
    -webkit-appearance: none;
    appearance: none;
    margin: 0;
    padding: 0;
    align-self: center;
}

.slider-2-wrapper .slider-2-value {
    grid-row: 2;
    text-align: left;
    font-size: 12px;
    color: var(--text-secondary);
    margin: 0;
    padding: 0;
    min-width: unset !important;
    width: auto !important;
    max-width: none !important;
    flex: none !important;
    flex-grow: 0 !important;
    flex-shrink: 0 !important;
    flex-basis: auto !important;
    display: grid !important;
    place-items: center !important;
    align-self: center;
}

.slider-2-wrapper .slider-2-value:first-of-type {
    grid-column: 1;
}

.slider-2-wrapper .slider-2-value:last-of-type {
    grid-column: 3;
}

/* Force override for slider values - highest specificity */
.slider-1-wrapper .slider-1-value,
.slider-2-wrapper .slider-2-value {
    min-width: 10px !important;
    width: 10px !important;
    max-width: 10px !important;
    flex: none !important;
    flex-grow: 0 !important;
    flex-shrink: 0 !important;
    flex-basis: 10px !important;
    display: inline-block !important;
    box-sizing: border-box !important;
}

/* Even more specific override */
html body .slider-1-wrapper .slider-1-value,
html body .slider-2-wrapper .slider-2-value {
    min-width: 10px !important;
    width: 10px !important;
    max-width: 10px !important;
    flex: none !important;
    flex-grow: 0 !important;
    flex-shrink: 0 !important;
    flex-basis: 10px !important;
    display: inline-block !important;
    box-sizing: border-box !important;
}

.slider-2::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: 18px;
    height: 18px;
    border-radius: 50%;
    background: var(--accent-color);
    cursor: pointer;
    border: 2px solid var(--primary-bg, #f5f3e9);
}

.slider-2::-moz-range-thumb {
    width: 18px;
    height: 18px;
    border-radius: 50%;
    background: var(--accent-color);
    cursor: pointer;
    border: 2px solid var(--primary-bg, #f5f3e9);
}

/* ========================================
   DROPDOWNS
   ======================================== */

/* Standard Dropdown */
.dropdown {
    position: relative;
    display: inline-block;
    min-width: 120px;
}

.dropdown-toggle {
    background: var(--hover-color);
    border: 1px solid var(--border-color);
    border-radius: 6px;
    color: var(--text-primary);
    padding: 8px 16px;
    font-size: 12px;
    cursor: pointer;
    transition: all 0.3s ease;
    width: 100%;
    text-align: left;
}

.dropdown-toggle::after {
    content: '▼';
    float: right;
    font-size: 10px;
    margin-top: 2px;
}

.dropdown-toggle:hover {
    background: var(--accent-color);
    color: var(--primary-bg);
}

.dropdown-content {
    display: none;
    position: absolute;
    background: var(--primary-bg);
    border: 1px solid var(--border-color);
    border-radius: 6px;
    box-shadow: 0 4px 8px rgba(0,0,0,0.3);
    z-index: 1000;
    min-width: 100%;
    top: 100%;
    left: 0;
}

.dropdown-content.show {
    display: block;
}

.dropdown-item {
    color: var(--text-primary);
    padding: 12px 16px;
    font-size: 12px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.dropdown-item:hover {
    background: var(--hover-color);
}

.dropdown-item.active {
    background: var(--accent-color);
    color: var(--primary-bg);
}

/* Native Select */
.select {
    background: var(--hover-color);
    border: 1px solid var(--border-color);
    border-radius: 6px;
    color: var(--text-primary);
    padding: 8px 16px;
    font-size: 12px;
    cursor: pointer;
    transition: all 0.3s ease;
    width: 100%;
    margin-bottom: 10px;
}

.select:focus {
    outline: none;
    border-color: var(--accent-color);
}

/* Dropdown Selector - Standardized dropdown for presets and selectors */
.dropdown-selector {
    background: var(--hover-color);
    border: 1px solid var(--border-color);
    border-radius: 4px;
    color: var(--text-primary);
    padding: 8px 8px;
    font-size: 10px;
    cursor: pointer;
    transition: all 0.3s ease;
    width: 100%;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
}

/* Mixer Dropdown Selector - Tighter padding for mixer channel strips */
.dropdown-selector-mixer {
    background: var(--hover-color);
    border: 1px solid var(--border-color);
    border-radius: 4px;
    color: var(--text-primary);
    padding: 3px 8px;
    font-size: 10px;
    cursor: pointer;
    transition: all 0.3s ease;
    width: 100%;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
}

.dropdown-selector:focus {
    outline: none;
    border-color: var(--accent-color);
}

.dropdown-selector-mixer:focus {
    outline: none;
    border-color: var(--accent-color);
}

/* Group Label - For section headers */
.group-label {
    font-size: 12px;
    color: var(--text-secondary);
    font-weight: 500;
}

/* Display Mode, Aspect Ratio, and Display Preset Buttons */
.display-mode-btn,
.aspect-ratio-btn,
.display-preset-btn {
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: var(--text-secondary);
    padding: 6px 12px;
    border-radius: 12px;
    cursor: pointer;
    font-size: 11px;
    transition: all 0.2s ease;
    margin: 2px;
}

.display-mode-btn:hover,
.aspect-ratio-btn:hover,
.display-preset-btn:hover {
    background: rgba(255, 255, 255, 0.2);
}

.display-mode-btn.active,
.aspect-ratio-btn.active {
    background: var(--accent-color);
    color: white;
}

/* Button Container - For grouping buttons */
.button-container {
    display: flex;
    gap: 8px;
    margin: 8px 0;
    flex-wrap: wrap;
    align-items: center;
    width: 100%;
    box-sizing: border-box;
}

/* ========================================
   INPUT ELEMENTS
   ======================================== */

/* Text Input */
.input-text {
    background: var(--hover-color);
    border: 1px solid var(--border-color);
    border-radius: 6px;
    color: var(--text-primary);
    padding: 8px 12px;
    font-size: 12px;
    width: 100%;
    margin: 4px 0;
    transition: all 0.3s ease;
}

.input-text:focus {
    outline: none;
    border-color: var(--accent-color);
    background: var(--secondary-bg);
}

/* Number Input */
.input-number {
    background: var(--hover-color);
    border: 1px solid var(--border-color);
    border-radius: 6px;
    color: var(--text-primary);
    padding: 8px 12px;
    font-size: 12px;
    width: 100%;
    margin: 4px 0;
    transition: all 0.3s ease;
}

.input-number:focus {
    outline: none;
    border-color: var(--accent-color);
    background: var(--secondary-bg);
}

/* Color Input */
.input-color {
    width: 40px;
    height: 40px;
    border: 1px solid var(--border-color);
    border-radius: 6px;
    cursor: pointer;
    margin: 4px 0;
}

/* ========================================
   PANELS & CONTAINERS
   ======================================== */

/* Panel Header */
.panel-header {
    color: var(--text-secondary);
    font-size: 14px;
    margin-bottom: 12px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    position: sticky;
    top: 0;
    background: var(--secondary-bg);
    z-index: 1;
    padding: 12px 16px;
    border-bottom: 1px solid var(--border-color);
}

.panel-header h2 {
    margin: 0;
    color: var(--text-secondary);
    font-size: 14px;
}

/* Control Group */
.control-group {
    padding-bottom: 12px;
    border-bottom: 1px solid var(--border-color);
}

.control-group:last-child {
    border-bottom: none;
    margin-bottom: 0;
}

/* Control Group Variations */
.control-group-major {
    padding-bottom: 12px;
    border-bottom: 1px solid var(--border-color);
}

.control-group-minor {
    margin-bottom: 8px;
    padding-bottom: 12px;
    border-bottom: 1px solid var(--border-color);
}

.control-group-no-border {
    border-bottom: none;
}

.control-group-no-border-minor {
    border-bottom: none;
    margin-bottom: 8px;
}

.control-group h4 {
    color: var(--text-secondary);
    font-size: 12px;
    margin-bottom: 4px;
}

/* Button Container */
.btn-container {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

/* ========================================
   SPECIAL ELEMENTS
   ======================================== */

/* Energy Bar */
.energy-container {
}

.energy-label {
    font-size: 12px;
    color: var(--text-secondary);
    margin-bottom: 4px;
}

.energy-bar {
    width: 100%;
    height: 8px;
    background: var(--border-color);
    border-radius: 4px;
    overflow: hidden;
}

.energy-fill {
    height: 100%;
    background: var(--accent-color);
    transition: width 0.3s ease;
}

/* Input Mode Container */
.input-mode-container {
    display: flex;
    gap: 8px;
    margin: 8px 0;
    flex-wrap: wrap;
}

/* Morph Controls */
.morph-controls {
    display: flex;
    gap: 8px;
    margin: 8px 0;
    flex-wrap: wrap;
}

/* ========================================
   LAYOUT & UTILITIES
   ======================================== */

/* Flex utilities */
.flex-center {
    display: flex;
    align-items: center;
    justify-content: center;
}

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

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

/* Spacing utilities */
.margin-sm { margin: 4px; }
.margin-md { margin: 8px; }
.margin-lg { margin: 16px; }

.padding-sm { padding: 4px; }
.padding-md { padding: 8px; }
.padding-lg { padding: 16px; }

/* ========================================
   MIXER PANEL
   ======================================== */

/* Mixer Panel Floating - Large panel for mixer interface */
.mixer-panel-floating {
    position: fixed;
    width: 95vw;
    height: 85vh;
    background: var(--secondary-bg);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.5);
    z-index: 10000;
    overflow: hidden;
    display: none;
}

/* Mixer Panel Header */
.mixer-panel-floating .panel-header {
    color: var(--text-secondary);
    font-size: 18px;
    font-weight: 500;
    margin-bottom: 0;
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-shrink: 0;
    padding: 12px 16px;
    border-bottom: 1px solid var(--border-color);
    background: var(--secondary-bg);
    border-radius: 8px 8px 0 0;
    position: sticky;
    top: 0;
    z-index: 1;
}

/* Mixer Panel Content */
.mixer-panel-floating .panel-content {
    padding: 0 !important;
    height: calc(100% - 60px);
    overflow: hidden;
    display: flex !important;
    flex-direction: row !important;
    align-items: stretch;
    gap: 0 !important;
}

/* Mixer Channels Section */
.mixer-channels {
    flex: 1;
    display: grid;
    grid-auto-flow: column;
    grid-template-rows: 1fr;
    align-items: stretch;
    overflow-x: auto;
    overflow-y: auto;
    padding: 16px;
    gap: 0px;
}

/* Mixer Info Panel */
.mixer-info {
    width: 240px;
    background: var(--secondary-bg);
    border-left: 1px solid var(--border-color);
    padding: 16px;
    overflow-y: auto;
}

/* Channel Strip */
.channel-strip {
    width: 120px;
    min-width: 120px;
    background: #b9c1cb0d;
    border: 1px solid var(--border-color);
    border-radius: 0px;
    padding: 12px 8px;
    display: flex;
    flex-direction: column;
    gap: 12px;
    height: 100%;
    align-items: stretch;
}

/* Channel Spacer */
.channel-spacer {
    width: 20px;
    min-width: 20px;
    height: 100%;
}

/* Channel Sections - Individual section styling */
.channel-input-section,
.channel-toggle-section, 
.channel-presets-section,
.channel-controls-section {
    display: flex;
    flex-direction: column;
    flex-shrink: 0;
}

/* Keep controls section at natural size, don't grow */
.channel-controls-section {
    flex-grow: 0;
    justify-content: flex-start;
}

/* Channel Header */
.channel-header {
    text-align: center;
    font-size: 11px;
    font-weight: 500;
    color: var(--text-secondary);
    margin-bottom: 8px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* Channel Drag Button */
.channel-drag-button {
    height: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: move;
    background: var(--hover-color);
    border-radius: 3px 3px 0 0;
    margin-bottom: 2px;
    user-select: none;
    transition: background-color 0.2s ease;
}

.channel-drag-button:hover {
    background: var(--accent-color);
}

.drag-arrows {
    color: var(--text-secondary);
    transition: color 0.2s ease;
}

.channel-drag-button:hover .drag-arrows {
    color: white;
}

/* Placeholder Drag Button (non-functional) */
.channel-drag-button.placeholder {
    cursor: not-allowed;
    background: var(--bg-secondary);
    opacity: 0.6;
}

.channel-drag-button.placeholder:hover {
    background: var(--bg-secondary);
    opacity: 0.8;
}

.drag-placeholder {
    width: 12px;
    height: 2px;
    background: var(--text-secondary);
    border-radius: 1px;
    opacity: 0.5;
}

/* Drop Zone Indicator */
.channel-strip.drop-target {
    border-left: 3px solid var(--accent-color);
    box-shadow: -2px 0 8px rgba(var(--accent-color-rgb), 0.3);
}

/* Input-specific channel styles */
.channel-strip.input-channel .channel-header {
    color: var(--info-color);
}

/* Visualization-specific channel styles */
.channel-strip.viz-channel .channel-header {
    color: var(--text-primary);
}

/* Display-specific channel styles */
.channel-strip.display-channel .channel-header {
    color: var(--warning-color);
}

/* Background file info styling for mixer */
.background-file-info {
    padding: 2px !important;
    margin-top: 8px;
}

.file-preview-container {
    margin-top: 2px !important;
}

/* Peek Toggle Button - Based on btn-toggle with max width */
.btn-toggle-peek {
    background: var(--accent-color, #2a2a2a);
    border: 1px solid var(--border-color, #898989);
    color: var(--text-secondary);
    padding: 8px 12px !important;
    border-radius: 4px;
    cursor: pointer;
    font-size: 12px !important;
    transition: all 0.2s ease;
    max-width: 80px;
    white-space: nowrap;
    display: flex;
    align-items: center;
    justify-content: center;
    box-sizing: border-box;
    height: 32px !important;
    line-height: normal;
}

.btn-toggle-peek:hover {
    background: var(--hover-color);
    color: white;
}

.btn-toggle-peek.active {
    background: var(--accent-color);
    color: white;
}

/* Peek mode - complete transparency for mixer channels */
.mixer-channels.peek-mode {
    opacity: 0;
    transition: opacity 0.1s ease;
}

/* Peek mode - transparent panel background */
.mixer-panel-floating.peek-mode {
    background: transparent;
    transition: background 0.1s ease;
}

/* Peek mode - keep panel content background transparent */
.mixer-panel-floating.peek-mode .panel-content {
    background: transparent;
}

/* Peek button active state - light white fill */
.btn-toggle-peek.peeking {
    background: rgba(255, 255, 255, 0.8);
    color: var(--primary-bg);
}

/* Close Panel Button */
.btn-close-panel {
    background: transparent;
    border: 1px solid var(--border-color);
    border-radius: 4px;
    padding: 6px;
    color: var(--text-secondary);
    cursor: pointer;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-left: 8px;
}

.btn-close-panel:hover {
    background: var(--error-color);
    color: white;
    border-color: var(--error-color);
}

.btn-close-panel svg {
    width: 16px;
    height: 16px;
}

/* Mixer Button Container - Pin to right edge */
.mixer-btn-container {
    position: absolute;
    right: 30px;
}

/* ========================================
   VERTICAL SLIDERS
   ======================================== */

/* Vertical Slider Section - Channel section containing slider */
.vertical-slider-section {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    padding: 12px 0;
    width: 100%;
    box-sizing: border-box;
}

/* Vertical Slider Container - Contains rotated slider */
.vertical-slider-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    width: 100%;
    height: 224px;
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/* Vertical Slider Wrapper - Handles rotation and positioning */
.vertical-slider-wrapper {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    width: 30px;
    height: 224px;
    position: relative;
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/* Vertical Slider - Custom JavaScript slider container */
.vertical-slider {
    width: 16px;
    height: 180px;
    position: relative;
    cursor: pointer;
    margin: 0;
    padding: 0;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Vertical Slider Track */
.vertical-slider-track {
    width: 16px;
    height: 180px;
    background: var(--hover-color);
    border-radius: 3px;
    border: none;
    outline: none;
    position: absolute;
    top: 0;
    left: 0;
}

/* Vertical Slider Track - WebKit (keep for compatibility) */
.vertical-slider::-webkit-slider-track {
    width: 180px !important;
    height: 16px !important;
    background: rgba(255, 255, 255, 0.1) !important;
    border-radius: 3px !important;
    border: none !important;
    outline: none !important;
    -webkit-appearance: none !important;
}

/* Vertical Slider Thumb */
.vertical-slider-thumb {
    width: 32px;
    height: 14px;
    background: var(--accent-color);
    border: 1px solid var(--primary-bg);
    border-radius: 2px;
    cursor: pointer;
    transition: all 0.2s ease;
    position: absolute;
    left: -8px;
    top: 0;
    z-index: 2;
}


/* Vertical Slider Thumb - WebKit (keep for compatibility) */
.vertical-slider::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: 32px;
    height: 14px;
    background: var(--accent-color);
    border: 1px solid var(--primary-bg);
    border-radius: 2px;
    cursor: pointer;
    transition: all 0.2s ease;
}


/* Vertical Slider Track - Firefox */
.vertical-slider::-moz-range-track {
    width: 180px !important;
    height: 16px !important;
    background: rgba(255, 255, 255, 0.1) !important;
    border-radius: 3px !important;
    border: none !important;
    outline: none !important;
    -moz-appearance: none !important;
}

/* Vertical Slider Thumb - Firefox */
.vertical-slider::-moz-range-thumb {
    width: 32px;
    height: 14px;
    background: var(--accent-color);
    border: 1px solid var(--primary-bg);
    border-radius: 2px;
    cursor: pointer;
    transition: all 0.2s ease;
    -moz-appearance: none;
    appearance: none;
}


/* Vertical Slider Labels */
.vertical-slider-label {
    font-size: 10px;
    color: var(--text-secondary);
    text-align: center;
    margin: 0;
    padding: 0;
    white-space: nowrap;
    box-sizing: border-box;
    line-height: normal;
    font-weight: normal;
    text-decoration: none;
    text-transform: none;
    letter-spacing: normal;
    word-spacing: normal;
}

.vertical-slider-label.top {
    order: -1;
    margin-bottom: 4px;
}

.vertical-slider-label.bottom {
    order: 1;
    margin-top: 4px;
}

/* ========================================
   RESPONSIVE DESIGN
   ======================================== */
@media (max-width: 768px) {
    .btn-container {
        flex-direction: column;
    }
    
    .input-mode-container,
    .morph-controls {
        flex-direction: column;
    }
    
    .slider-1-wrapper,
    .slider-2-wrapper {
        flex-direction: column;
        align-items: stretch;
    }
}

/* ========================================
   INDICATORS
   ======================================== */

/* Loop Indicator - Shows loop count on loop button */
.loop-indicator {
    position: absolute;
    top: 2px;
    right: 2px;
    font-size: 14px;
    font-weight: bold;
    color: red;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* ========================================
   FLOATING PANELS - C V B A BUTTON PANELS
   ======================================== */

/* Base Floating Panel - For C V B A button panels */
.panel-floating {
    position: fixed;
    width: 280px;
    max-height: 84vh;
    background: var(--secondary-bg);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.5);
    z-index: 15000;
    overflow-y: auto;
    overflow-x: hidden;
    display: none;
}

/* Panel Header */
.panel-floating .panel-header {
    color: var(--text-secondary);
    font-size: 14px;
    margin-bottom: 0;
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-shrink: 0;
    padding: 12px 16px;
    border-bottom: 1px solid var(--border-color);
    background: var(--secondary-bg);
    border-radius: 8px 8px 0 0;
    position: sticky;
    top: 0;
    z-index: 1;
}

/* Panel Content */
.panel-floating .panel-content {
    padding: 16px;
}

/* Panel Close Button */
.panel-floating .panel-close-btn {
    background: none;
    border: none;
    color: var(--text-secondary);
    font-size: 18px;
    cursor: pointer;
    width: 24px;
    height: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 4px;
    transition: all 0.2s ease;
}

.panel-floating .panel-close-btn:hover {
    background: var(--hover-color);
    color: var(--text-primary);
}

/* Control Group in Floating Panels */
.panel-floating .control-group h4 {
    color: var(--text-secondary);
    font-size: 12px;
    margin-bottom: 4px;
}

/* Button Container in Floating Panels - Ensure buttons don't get clipped */
.panel-floating .button-container {
    width: 100%;
    min-width: 0;
    overflow: visible;
}

/* ========================================
   VIDEO PROGRESS BAR
   ======================================== */

/* Video Progress Container - Contains progress bar and time display */
.video-progress-container {
    margin-top: 8px;
    width: 100%;
}

/* Video Progress Bar - Background track */
.video-progress-bar {
    width: 100%;
    height: 4px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 2px;
    overflow: hidden;
    cursor: pointer;
    position: relative;
}

/* Video Progress Fill - Active progress indicator */
.video-progress-fill {
    height: 100%;
    background: var(--accent-color);
    border-radius: 2px;
    width: 0%;
    transition: width 0.1s ease;
    opacity: 1;
    filter: brightness(1.3);
}

/* Video Time Display - Shows current/total time */
.video-time-display {
    display: flex;
    justify-content: space-between;
    margin-top: 4px;
    font-size: 10px;
    color: var(--text-secondary);
}

/* Video Current Time - Left side time */
.video-current-time {
    font-family: monospace;
}

/* Video Total Time - Right side time */
.video-total-time {
    font-family: monospace;
}

/* ========================================
   PLAYLIST PROGRESS ELEMENTS
   ======================================== */

/* Playlist Progress Container - Contains progress bar and info */
.playlist-progress {
    margin-bottom: 12px;
}

/* Progress Bar Container - Background track */
.progress-bar-container {
    width: 100%;
    height: 6px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 3px;
    margin-bottom: 8px;
    overflow: hidden;
}

/* Progress Bar - Active progress indicator */
.progress-bar {
    height: 100%;
    background: linear-gradient(90deg, var(--accent-color) 0%, #4CAF50 100%);
    width: 0%;
    transition: width 0.3s ease;
    border-radius: 3px;
}

/* Progress Info - Text display above progress bar */
.progress-info {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 11px;
    color: var(--text-secondary);
    margin-bottom: 8px;
}

/* Progress Text Elements */
.progress-text {
    flex: 1;
}

.progress-count {
    margin-left: 8px;
    font-family: monospace;
}

.progress-eta {
    margin-left: 8px;
    font-family: monospace;
}

/* Progress Cancel Button */
.progress-cancel-btn {
    background: #ff4444 !important;
    border: none !important;
    color: white !important;
    padding: 4px 12px !important;
    border-radius: 4px !important;
    cursor: pointer !important;
    font-size: 11px !important;
    transition: all 0.2s ease !important;
    min-width: auto !important;
    height: auto !important;
    margin: 0 !important;
    width: auto !important;
}

.progress-cancel-btn:hover {
    background: #ff6666 !important;
}

/* ========================================
   PLAYLIST TRACK ELEMENTS
   ======================================== */

/* Track Item - Individual track container */
.track-item {
    padding: 6px 8px;
    margin-bottom: 2px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 3px;
    cursor: pointer;
    font-size: 11px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.track-item:hover {
    background: rgba(255, 255, 255, 0.15);
}

/* Artist Header - Artist name display */
.artist-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 8px 12px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 4px;
    margin-bottom: 8px;
    cursor: pointer;
    font-weight: bold;
    color: var(--text-primary);
    font-size: 12px;
}

/* Artist Group - Container for artist and their tracks */
.artist-group {
    margin-bottom: 16px;
}

/* Track Info - Text content area */
.track-info {
    flex: 1;
    min-width: 0;
}

/* Track Title - Track name styling */
.track-title {
    font-size: 13px;
    font-weight: 500;
    color: var(--text-primary);
    margin-bottom: 2px;
    text-align: left;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* Track Album - Album name styling */
.track-album {
    color: var(--text-secondary);
    font-size: 10px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* Track Controls - Control buttons container */
.track-controls {
    display: flex;
    gap: 5px;
}

/* ========================================
   PLAYLIST PANEL HEIGHT OVERRIDE
   ======================================== */

/* Header Playlist Dropdown - Override height for main playlist panel */
#headerPlaylistDropdown {
    max-height: 900px !important;
}

/* ========================================
   MULTI-DISPLAY SYSTEM
   ======================================== */

/* Multi-Display Controls Container */
.multi-display-controls {
    margin-top: 16px;
    padding: 16px;
    background: var(--secondary-bg);
    border-radius: 8px;
    border: 1px solid var(--border-color);
}

/* Display Buttons */
.btn-display {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    padding: 8px 16px;
    background: var(--secondary-bg);
    border: 1px solid var(--border-color);
    border-radius: 6px;
    color: var(--text-primary);
    cursor: pointer;
    transition: all 0.2s ease;
    font-size: 14px;
    min-width: 120px;
    font-family: inherit;
}

.btn-display:hover {
    background: var(--hover-color);
    border-color: var(--accent-color);
}

.btn-display.active {
    background: var(--accent-color);
    color: white;
    border-color: var(--accent-color);
}

.btn-icon {
    font-size: 16px;
    opacity: 0.7;
}

/* Display Mode Buttons */
.display-mode-btn {
    padding: 6px 12px;
    background: var(--secondary-bg);
    border: 1px solid var(--border-color);
    border-radius: 4px;
    color: var(--text-primary);
    cursor: pointer;
    transition: all 0.2s ease;
    font-size: 12px;
    font-family: inherit;
}

.display-mode-btn:hover {
    background: var(--hover-color);
}

.display-mode-btn.active {
    background: var(--accent-color);
    color: white;
    border-color: var(--accent-color);
}

/* Display Preset Buttons */
.display-preset-btn {
    padding: 6px 12px;
    background: var(--secondary-bg);
    border: 1px solid var(--border-color);
    border-radius: 4px;
    color: var(--text-primary);
    cursor: pointer;
    transition: all 0.2s ease;
    font-size: 12px;
    font-family: inherit;
}

.display-preset-btn:hover {
    background: var(--hover-color);
}

.display-preset-btn.active {
    background: var(--info-color);
    color: white;
    border-color: var(--info-color);
}

/* Multi-Display Settings Panels */
.multi-display-controls .panel-floating {
    max-height: 84vh;
    overflow-y: auto;
}

.multi-display-controls .panel-header {
    position: sticky;
    top: 0;
    z-index: 1;
    background: var(--secondary-bg);
    border-bottom: 1px solid var(--border-color);
    padding: 12px 16px;
    border-radius: 8px 8px 0 0;
}

.multi-display-controls .panel-content {
    padding: 16px;
}

/* Hide legacy Live Display controls */
#liveDisplayBtn, 
#footerDisplaySettingsBtn, 
#footerDisplaySettingsPanel {
    display: none !important;
}

/* Recording Area Overlay */
.recording-area-overlay {
    position: absolute;
    border: 2px solid #00ff00;
    background: transparent;
    cursor: move;
    z-index: 24;
    font-size: 10px;
    color: #00ff00;
    pointer-events: auto;
    user-select: none;
    box-sizing: border-box;
}

.recording-area-overlay:hover {
    border-color: #00cc00;
}

.recording-area-overlay .dimensions-text {
    position: absolute;
    bottom: 2px;
    right: 2px;
    background: rgba(0, 0, 0, 0.7);
    padding: 1px 3px;
    border-radius: 2px;
    font-family: monospace;
    font-size: 9px;
    line-height: 1;
}

/* Ensure footer recording settings panel is always accessible */
#footerRecordSettingsPanel {
    z-index: 20000 !important;
}

/* ========================================
   MIXER DIAL - Rotary Knob Component
   ======================================== */

/* Mixer Dial Container */
.mixer-dial-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
    padding: 4px 0;
}

/* Mixer Dial - Base SVG Circle */
.mixer-dial {
    width: 40px;
    height: 40px;
    cursor: ns-resize;
    user-select: none;
    position: relative;
}

.mixer-dial svg {
    width: 100%;
    height: 100%;
    transform: rotate(-135deg); /* Start position at 7 o'clock */
}

/* Dial Circle - Black outline, colored fill */
.mixer-dial circle.dial-bg {
    fill: var(--dial-color, var(--highlight-color));
    stroke: var(--text-secondary);
    stroke-width: 1.5;
}

/* Dial Pointer - Black line extending in/out */
.mixer-dial line.dial-pointer {
    stroke: var(--text-secondary);
    stroke-width: 1.25;
    stroke-linecap: round;
}

/* Mixer Dial Value Display */
.mixer-dial-value {
    font-size: 11px;
    font-weight: 500;
    color: var(--text-primary);
    text-align: center;
    min-width: 45px;
    font-family: 'Courier New', monospace;
}

/* Color Variants - Using Theme CSS Variables */
.mixer-dial.dial-teal {
    --dial-color: var(--accent-color);
}

.mixer-dial.dial-mint {
    --dial-color: var(--hover-color);
}

.mixer-dial.dial-gold {
    --dial-color: var(--highlight-color);
}

.mixer-dial.dial-orange {
    --dial-color: var(--error-color);
}

.mixer-dial.dial-burgundy {
    --dial-color: var(--accent-secondary);
}

/* Hover state - slightly lighter */
.mixer-dial:hover circle.dial-bg {
    filter: brightness(1.1);
}

/* Active/dragging state */
.mixer-dial.dragging {
    cursor: ns-resize;
}

.mixer-dial.dragging circle.dial-bg {
    filter: brightness(0.9);
}


