/* Rotate button styling */
.preset-button.rotate-button {
    display: block !important; /* Always show the rotate button */
    background-color: #e8f5ff;
    border-color: #4a90e2;
    font-weight: bold;
    margin-right: 15px; /* Add some spacing between rotate and other presets */
    order: -1; /* Place at the beginning of the flex container */
}/* presets.css - Styling for presets selection */

.presets-container {
    display: flex;
    width: 100%;
    background-color: #f5f5f5;
    border-top: 1px solid #ddd;
    border-bottom: 1px solid #ddd;
    padding: 10px 20px;
    box-sizing: border-box;
    font-family: Arial, sans-serif;
    margin-top: 40px; /* Add margin to account for the fixed header */
}

.presets-option-selector {
    min-width: 150px;
    display: flex;
    flex-direction: column;
    border-right: 1px solid #ddd;
    padding-right: 20px;
    margin-right: 20px;
}

.option-title {
    font-weight: bold;
    font-size: 14px;
    margin-bottom: 10px;
    color: #333;
}

.option-row {
    display: flex;
    align-items: center;
    margin-bottom: 8px;
}

.option-row label {
    margin-left: 5px;
    cursor: pointer;
}

.presets-selection-container {
    flex: 1;
    overflow-x: auto;
}

.presets-selection {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    padding: 5px 0;
}

#aperture-size-presets {
    display: none; /* Hidden by default */
}

.presets-placeholder {
    color: #777;
    font-style: italic;
    padding: 10px;
}

.preset-button {
    padding: 8px 12px;
    background-color: #e0e0e0;
    border: 1px solid #ccc;
    border-radius: 4px;
    cursor: pointer;
    font-size: 13px;
    transition: all 0.2s ease;
    user-select: none;
}

.preset-button:hover {
    background-color: #d0d0d0;
    border-color: #999;
}

.preset-button.selected {
    background-color: #4a90e2;
    color: white;
    border-color: #2a70c2;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

/* Hide presets for units that aren't selected */
/* Hide presets for units that aren't selected */
.preset-button {
    display: none; /* Hide all presets by default */
}

/* Show only the active unit presets */
.preset-buttons-inch .inch-preset {
    display: block;
}

.preset-buttons-cm .cm-preset {
    display: block;
}

.preset-buttons-mm .mm-preset {
    display: block;
}

.mode-container {
    display: flex;
    align-items: center;
    margin-right: 15px;
    background-color: #f5f5f5;
    border-radius: 4px;
    padding: 0 5px;
    border: 1px solid #ddd;
}

.mode-button {
    padding: 6px 10px;
    margin: 4px;
    background-color: #e0e0e0;
    border: 1px solid #ccc;
    border-radius: 4px;
    cursor: pointer;
    transition: all 0.2s ease;
}

.mode-button.selected {
    background-color: #4a90e2;
    color: white;
    border-color: #2a70c2;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.2);
}