<ui:FluentWindow x:Class="DansoriEQ.App.ApoLinkWindow"
        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="APO 연동 설정" Height="300" Width="500"
        WindowStartupLocation="CenterScreen" ResizeMode="NoResize"
        ExtendsContentIntoTitleBar="True" WindowBackdropType="Mica"
        Background="#1B1B1F" Foreground="#F2F3F5"
        FontFamily="Segoe UI Variable, Segoe UI">
    <Grid>
        <Grid.RowDefinitions>
            <RowDefinition Height="Auto"/>
            <RowDefinition Height="*"/>
        </Grid.RowDefinitions>

        <ui:TitleBar Grid.Row="0" Title="APO 연동 설정" Foreground="#F2F3F5" Padding="14,6"/>

        <Border Grid.Row="1" Style="{StaticResource NeonPopup}">
    <DockPanel Margin="24">

        <StackPanel DockPanel.Dock="Bottom" Orientation="Horizontal"
                    HorizontalAlignment="Right" Margin="0,16,0,0">
            <Button x:Name="BtnNo" Content="나중에" Width="90" Height="36"
                    Click="BtnNo_Click" Margin="0,0,10,0"
                    Background="#26262B" Foreground="#A8ABB4" BorderBrush="#3A3A42"/>
            <Button x:Name="BtnYes" Content="예, 연동 설정" Width="130" Height="36"
                    Click="BtnYes_Click"
                    Background="#4CC2FF" Foreground="#04222F"
                    FontWeight="Bold" BorderThickness="0"/>
        </StackPanel>

        <StackPanel>
            <TextBlock Text="Equalizer APO 연동 설정"
                       FontSize="16" FontWeight="Bold" Margin="0,0,0,16"/>

            <Border Background="#26262B" BorderBrush="#3A3A42"
                    BorderThickness="1" CornerRadius="10" Padding="16,14">
                <StackPanel>
                    <TextBlock TextWrapping="Wrap" Foreground="#A8ABB4" FontSize="13" LineHeight="20"
                               Text="EQ를 실제 소리에 반영하려면 APO config.txt에 Include 줄을 한 번만 추가해야 합니다."/>
                    <TextBlock Foreground="#767A83" FontSize="11.5" Margin="0,10,0,0"
                               Text="※ 관리자 권한(UAC)이 요청됩니다. 이 작업은 최초 1회만 필요하며, 이후 EQ 변경은 권한 없이 자동 적용됩니다."/>
                </StackPanel>
            </Border>

            <TextBlock x:Name="StatusText" Foreground="#767A83" FontSize="11"
                       Margin="0,14,0,0" TextWrapping="Wrap"/>
        </StackPanel>
    </DockPanel>
    </Border>
    </Grid>
</ui:FluentWindow>
