/* FILTER SECTION */
.filter-section .filter-controls-row {
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: space-around;
    width: 100%;
    margin-top: 10px;
}

.filter-section .filter-type-group {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
    padding-top: 10px;
    padding-left: 10px;
}

.filter-section .filter-type-group label {
    flex: 0 0 auto;
    margin-right: 0;
    margin-bottom: 0;
}

.filter-section .filter-type-group select {
    flex: 0 0 auto;
    width: 100%;
    min-width: 75px;
}

/* ENVELOPE SECTION */
/* Envelope-specific styling is primarily in sections-common.css */
/* Pagination buttons styled in 04-buttons.css */

/* LFO SECTION */
/* LFO Scope Canvas */
#lfoScopeCanvas {
    display: block;
    margin-top: 4px;
    margin-bottom: 0;
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 3px;
    background: #0d0d0d;
    box-shadow: inset 0 0 8px rgba(0, 0, 0, 0.5);
    width: 130px;
    height: 46px;
}

/* LFO Shape Group */
.lfo-shape-group {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
}

.lfo-shape-group > label {
    flex: 0 0 auto;
    margin-bottom: 0;
}

.lfo-shape-group select {
    width: 100%;
    min-width: 75px;
}

/* LFO Section Specific Layouts */
.lfo-section .lfo-shape-rate-row {
    display: flex;
    flex-direction: column;
    gap: 5px;
    width: 100%;
    margin-bottom: var(--spacing-md);
}

.lfo-section .lfo-top-row {
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: flex-start;
    gap: 10px;
    width: 100%;
}

.lfo-section .lfo-top-row .lfo-retrigger-toggle-wrapper {
    gap: 0px !important;
    margin: 0; 
    margin-left: -5px; 
    margin-top: var(--spacing-sm);
    flex-shrink: 0;
    display: flex;
    flex-direction: row;
    align-items: center;
}

.lfo-section .lfo-bottom-row {
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 9px;
    margin-left: 56px;
    width: 100%;
}

.lfo-section .lfo-bottom-row [data-knob-id="lfoRate"],
.lfo-section .lfo-bottom-row [data-knob-id="lfo2Rate"] {
    margin-right: var(--spacing-sm);
}

.lfo-section .lfo-shape-group {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
    flex: 0 0 auto;
    width: 95px;
}

.lfo-section .knob-container {
    margin-top: 0;
}

.lfo-section .lfo-shape-group label {
    flex: 0 0 auto;
    margin-right: 0;
    margin-bottom: 0;
    align-self: center;
}

.lfo-section .lfo-shape-group select {
    flex: 0 0 auto;
    width: 100%;
    min-width: 75px;
    position: relative;
    z-index: var(--z-dropdown);
    pointer-events: auto;
}

/* LFO Sync Toggle */
.lfo-sync-toggle {
    background: transparent;
    border: none;
    color: rgba(80, 80, 90, 0.8);
    font-size: 14px;
    cursor: pointer;
    padding: 2px;
    width: 20px;
    height: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: color 0.2s ease, transform 0.15s ease;
    transform: translateY(0);
}

.lfo-sync-toggle:hover {
    color: var(--accent-color);
    transform: translateY(-2px);
}

.lfo-sync-toggle.active {
    color: var(--accent-color);
}

/* LFO Retrigger Toggle Wrapper */
.lfo-retrigger-toggle-wrapper {
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 4px;
    flex-shrink: 0;
    margin: 0;
}

.lfo-retrigger-label {
    font-size: 9px;
    color: var(--text-secondary);
    text-transform: uppercase;
    font-weight: 500;
    margin: 0;
    padding: 0;
    margin-right: -12px;
    user-select: none;
    white-space: nowrap;
    line-height: 1;
    display: inline-block;
    letter-spacing: -1px;
}

/* LFO2 Content - Same styling as LFO1 */
.lfo-section .lfo-content-2 {
    display: flex;
    flex-direction: column;
}

.lfo-section .lfo-content-2 .lfo-shape-rate-row {
    display: flex;
    flex-direction: column;
    gap: 5px;
    width: 100%;
    margin-bottom: var(--spacing-md);
}

.lfo-section .lfo-content-2 .lfo-top-row {
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: flex-start;
    gap: 10px;
    width: 100%;
}

.lfo-section .lfo-content-2 .lfo-top-row .lfo-retrigger-toggle-wrapper {
    gap: 0px !important;
    margin: 0;
    margin-left: -5px;
    margin-top: var(--spacing-sm);
    flex-shrink: 0;
    display: flex;
    flex-direction: row;
    align-items: center;
}

.lfo-section .lfo-content-2 .lfo-bottom-row {
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 9px;
    margin-left: 56px;
    width: 100%;
}

.lfo-section .lfo-content-2 .lfo-shape-group {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
    flex: 0 0 auto;
    width: 95px;
}

.lfo-section .lfo-content-2 .lfo-shape-group label {
    flex: 0 0 auto;
    margin-right: 0;
    margin-bottom: 0;
    align-self: center;
}

.lfo-section .lfo-content-2 .lfo-shape-group select {
    flex: 0 0 auto;
    width: 100%;
    min-width: 75px;
    position: relative;
    z-index: var(--z-dropdown);
    pointer-events: auto;
}

.lfo-section .lfo-content-2 .lfo-shape-group .custom-dropdown {
    width: 100%;
    min-width: 75px;
    flex: 0 0 auto;
    position: relative;
    z-index: var(--z-floating-high);
    pointer-events: auto;
}

/* Ensure LFO2 dropdown menu appears above mod matrix */
.lfo-section .lfo-content-2 .lfo-shape-group .custom-dropdown .custom-dropdown-menu {
    z-index: var(--z-floating-high) !important;
}

.lfo-section .lfo-content-2 canvas {
    width: 130px;
    height: 46px;
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 3px;
    background: #0d0d0d;
    box-shadow: inset 0 0 8px rgba(0, 0, 0, 0.5);
    display: block;
    margin-top: 4px;
    margin-bottom: 0;
}

.lfo-section .lfo-content-2 .knob-container {
    margin-top: 0;
}

