<!-- PRE-GENERATED (design session). Local preset library (Peace-style save/list/1-click apply). -->
<ui:FluentWindow x:Class="DansoriEQ.App.PresetLibraryWindow"
        xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
        xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
        xmlns:ui="http://schemas.lepo.co/wpfui/2022/xaml"
        Title="프리셋 라이브러리" Height="520" Width="460"
        WindowStartupLocation="CenterOwner"
        ExtendsContentIntoTitleBar="True" WindowBackdropType="Mica"
        Background="#1B1B1F" Foreground="#F2F3F5"
        FontFamily="Segoe UI Variable, Segoe UI">
    <Window.Resources>
        <SolidColorBrush x:Key="Card"    Color="#26262B"/>
        <SolidColorBrush x:Key="Card2"   Color="#2D2D33"/>
        <SolidColorBrush x:Key="Stroke"  Color="#3A3A42"/>
        <SolidColorBrush x:Key="TextDim" Color="#A8ABB4"/>
        <SolidColorBrush x:Key="TextMute" Color="#767A83"/>
    </Window.Resources>

    <Grid>
        <Grid.RowDefinitions>
            <RowDefinition Height="Auto"/>
            <RowDefinition Height="*"/>
        </Grid.RowDefinitions>

        <ui:TitleBar Grid.Row="0" Title="프리셋 라이브러리" Foreground="#F2F3F5" Padding="14,6"/>

        <Border Grid.Row="1" Style="{StaticResource NeonPopup}">
    <DockPanel Margin="20">
        <TextBlock DockPanel.Dock="Top" Text="프리셋 라이브러리" FontSize="18" FontWeight="Bold" Margin="0,0,0,14"/>

        <!-- save current -->
        <Grid DockPanel.Dock="Top" Margin="0,0,0,12">
            <Grid.ColumnDefinitions>
                <ColumnDefinition Width="*"/>
                <ColumnDefinition Width="Auto"/>
            </Grid.ColumnDefinitions>
            <TextBox x:Name="TxtName" Grid.Column="0" Height="36" VerticalContentAlignment="Center" Padding="10,0"
                     Background="{StaticResource Card}" Foreground="#F2F3F5" BorderBrush="{StaticResource Stroke}"/>
            <Button Grid.Column="1" Content="현재 상태 저장" Click="Save_Click" Height="36" Padding="14,0" Margin="8,0,0,0"
                    Background="#4CC2FF" Foreground="#04222F" FontWeight="Bold" BorderThickness="0"/>
        </Grid>

        <!-- actions -->
        <StackPanel DockPanel.Dock="Bottom" Orientation="Horizontal" HorizontalAlignment="Right" Margin="0,12,0,0">
            <Button Content="불러오기" Click="Load_Click" Height="36" Padding="16,0" Margin="0,0,8,0"
                    Background="{StaticResource Card2}" Foreground="{StaticResource TextDim}" BorderBrush="{StaticResource Stroke}"/>
            <Button Content="삭제" Click="Delete_Click" Height="36" Padding="16,0" Margin="0,0,8,0"
                    Background="{StaticResource Card2}" Foreground="{StaticResource TextDim}" BorderBrush="{StaticResource Stroke}"/>
            <Button Content="닫기" Click="Close_Click" Height="36" Padding="16,0"
                    Background="{StaticResource Card}" Foreground="{StaticResource TextDim}" BorderBrush="{StaticResource Stroke}"/>
        </StackPanel>

        <Border Background="{StaticResource Card}" BorderBrush="{StaticResource Stroke}" BorderThickness="1" CornerRadius="12" Padding="8">
            <ListBox x:Name="PresetList" BorderThickness="0" Background="Transparent" Foreground="{StaticResource TextDim}"/>
        </Border>
    </DockPanel>
        </Border>
    </Grid>
</ui:FluentWindow>
