/* LED Options Container */
#led_options_container {
    max-width: 800px;
    margin: 0 auto;
    padding: 20px;
    border-radius: 8px;
    font-family: Arial, sans-serif;
    display: flex;
    flex-direction: column;
    gap: 25px;
}

/* Sections */
.section {
    background: var(--bg-buttons);
    border-radius: 5px;
    padding: 20px;
    box-shadow: 0 1px 3px rgba(0,0,0,0.1);
}

.section-title {
    font-size: 1.3rem;
    margin-bottom: 20px;
    text-align: center;
    font-weight: 500;
    padding-bottom: 10px;
}

/* Centered First Section */
.centered-section {
    text-align: center;
    padding: 15px 20px;
}

.centered-controls {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 15px;
    max-width: 500px;
    margin: 0 auto;
}

/* New styles for side-by-side layout */
.top-row-controls {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    width: 100%;
    justify-content: center;
    align-items: flex-end;
    margin-bottom: 15px;
}

.color-control-group {
    display: flex;
    flex-direction: column;
    min-width: 200px;
}

.label-input-pair {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 5px;
    width: 100%;
}

.label-wrapper {
    display: flex;
    align-items: center;
    gap: 5px;
    margin-bottom: 5px;
}

.input-wrapper {
    width: 100%;
    max-width: 200px;
}

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

.duration-control label {
    white-space: nowrap;
}

.duration-control input {
    width: 80px;
    padding: 6px;
    border-radius: 4px;
}

.checkbox-control {
    display: flex;
    align-items: center;
    gap: 8px;
    justify-content: center;
    width: 100%;
}

/* Table Section */
.table-controls {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    margin-bottom: 15px;
}

#led_options_select {
    flex-grow: 1;
    padding: 8px;
    border-radius: 4px;
    max-width: 300px;
}

/* Bindings Section */
.brightness-steps-control {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    margin-bottom: 25px;
    padding-bottom: 20px;
    border-bottom: 1px solid var(--separator-color);
}

.steps-wrapper {
    display: flex;
    align-items: center;
    gap: 10px;
    flex: 1;
}

.steps-wrapper select {
    padding: 8px;
    border-radius: 4px;
    min-width: 180px;
}

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

.smooth-control input[type="range"] {
    flex-grow: 1;
    max-width: 250px;
}

/* Button Bindings */
.bindings-row {
    display: flex;
    gap: 20px;
    margin-bottom: 20px;
}

.bindings-group {
    display: flex;
    flex-direction: column;
    gap: 8px;
    flex: 1;
}

.bindings-group label {
    font-weight: 500;
    font-size: 0.95rem;
}

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


/* Centered Confirm Button */
.centered-confirm {
    display: flex;
    justify-content: center;
    margin-top: 15px;
}

.confirm-group {
    max-width: 300px;
    width: 100%;
}


/* Responsive adjustments */
@media (max-width: 768px) {
    .centered-controls {
        max-width: 100%;
    }
    
    .top-row-controls {
        flex-direction: column;
        align-items: center;
        gap: 15px;
    }
    
    .color-control-group,
    .duration-control {
        width: 100%;
        max-width: 200px;
    }
    
    .input-wrapper {
        max-width: 100%;
    }
    
    .checkbox-control {
        flex-direction: row;
        gap: 8px;
    }
    
    .table-controls {
        flex-direction: column;
        align-items: flex-start;
    }
    
    #led_options_select {
        max-width: 100%;
        width: 100%;
    }
    
    .bindings-row {
        flex-direction: column;
        gap: 15px;
    }
    
    .brightness-steps-control {
        flex-direction: column;
        gap: 15px;
    }
    
    .smooth-control {
        width: 100%;
    }
    
    .smooth-control input[type="range"] {
        max-width: 100%;
    }
    
    .confirm-group {
        max-width: 100%;
    }
}

#led_options_color
{
    cursor: pointer;
    width: 100%;;

}
