/* ===========================================
   PRESET STYLES
   Preset Groups, LUT Buttons, Right Panel
   =========================================== */

/* Preset Groups */
.preset-groups {
    margin: 20px 0;
}

.preset-group {
    margin-bottom: 0px;
    border: 1px solid transparent;
    border-radius: 4px;
}

.preset-group-header {
    width: 100%;
    background: none;
    border: none;
    text-align: left;
    cursor: pointer;
    display: flex;
    align-items: center;
    padding: 4px 0;
    margin: 2px 0;
    margin-left: -5px;
    color: var(--text);
    transition: color 0.2s ease;
}

.preset-group-header:hover {
    color: #e6623c;
}

.preset-group-header:focus {
    outline: none;
}

.preset-group-header:active {
    outline: none;
}

.group-arrow {
    width: 15px;
    height: 15px;
    margin-right: 10px;
    transition: transform 0.2s ease;
    background-image: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"><polyline points="9,18 15,12 9,6"></polyline></svg>');
    background-repeat: no-repeat;
    background-position: center;
    background-size: contain;
}

.preset-group.expanded .group-arrow {
    transform: rotate(90deg);
}

/* Change arrow color to match link hover color on hover only */
.preset-group-header:hover .group-arrow {
    filter: brightness(0) saturate(100%) invert(49%) sepia(90%) saturate(3068%) hue-rotate(7deg) brightness(96%) contrast(88%);
}

.group-title {
    flex: 1;
    border: none;
    outline: none;
    background: none;
    font-size: 14px;
}

.preset-group-content {
    padding-left: 20px;
    margin-top: 4px;
    margin-bottom: 5px;
}

.preset-group-content .lut-btn {
    display: block;
    width: 100%;
    border: 0;
    background: transparent;
    color: var(--text);
    text-align: left;
    padding: 0;
    margin: 0;
    font-size: 12px;
    font-family: 'DM Mono', system-ui, -apple-system, Segoe UI, Roboto, Helvetica, Arial, sans-serif;
    font-weight: 400;
    line-height: 1.7;
    text-transform: none;
    cursor: pointer;
    border-radius: 4px;
    text-decoration: none !important;
}

.preset-group-content .lut-btn:hover {
    color: #e6623c;
}

/* Consistent spacing for preset groups to prevent movement */
.preset-group {
    border: 1px solid transparent;
    border-radius: 4px;
}


/* Active state for LUT buttons */
.lut-btn.active {
    color: #e6623c !important;
}

.preset-group-content .lut-btn.active {
    color: #e6623c !important;
}

.preset-group-content .lut-btn.active:hover {
    filter: brightness(0.9);
}