<!-- PRE-GENERATED (design session). Shown at startup when APO isn't found.
     Modern chrome: FluentWindow + ui:TitleBar (Mica), matching DbManagerWindow. -->
<ui:FluentWindow x:Class="DansoriEQ.App.ApoSetupWindow"
        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="Equalizer APO 설정" Height="430" Width="560"
        WindowStartupLocation="CenterScreen" ResizeMode="NoResize"
        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="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="Equalizer APO 설정"
                     Foreground="#F2F3F5" Padding="14,6">
            <ui:TitleBar.Icon>
                <ui:SymbolIcon Symbol="Options24"/>
            </ui:TitleBar.Icon>
        </ui:TitleBar>

        <Border Grid.Row="1" Style="{StaticResource NeonPopup}">
        <StackPanel Margin="24,8,24,24">
            <TextBlock Text="Equalizer APO가 감지되지 않았습니다" FontSize="18" FontWeight="Bold"/>
            <TextBlock Foreground="{StaticResource TextDim}" FontSize="13" TextWrapping="Wrap" Margin="0,8,0,18"
                       Text="이 앱은 Equalizer APO를 통해 EQ를 적용합니다. 아래에서 설치하거나, 이미 설치돼 있다면 config 폴더 경로를 지정하세요. 지금은 미리보기 모드로 계속할 수도 있습니다."/>

            <Border Background="{StaticResource Card}" BorderBrush="{StaticResource Stroke}" BorderThickness="1" CornerRadius="12" Padding="16">
                <StackPanel>
                    <Button x:Name="BtnAutoInstall" Content="⬇  APO 자동 설치 (공식 설치 파일 다운로드·실행)" Click="BtnAutoInstall_Click"
                            Height="40" HorizontalContentAlignment="Left" Padding="12,0" Margin="0,0,0,8"
                            Background="#4CC2FF" Foreground="#04222F" FontWeight="Bold" BorderThickness="0"/>
                    <Button x:Name="BtnSetPath" Content="📁  APO config 폴더 직접 지정" Click="BtnSetPath_Click"
                            Height="40" HorizontalContentAlignment="Left" Padding="12,0" Margin="0,0,0,8"
                            Background="#2D2D33" Foreground="{StaticResource TextDim}" BorderBrush="{StaticResource Stroke}"/>
                    <Button x:Name="BtnLater" Content="나중에 (미리보기 모드로 계속)" Click="BtnLater_Click"
                            Height="36" HorizontalContentAlignment="Left" Padding="12,0"
                            Background="Transparent" Foreground="{StaticResource TextMute}" BorderThickness="0"/>
                </StackPanel>
            </Border>

            <ProgressBar x:Name="Prog" Height="8" Minimum="0" Maximum="100" Value="0" Margin="0,16,0,6"
                         Background="#2D2D33" Foreground="#4CC2FF" BorderThickness="0"/>
            <TextBlock x:Name="TxtStatus" Foreground="{StaticResource TextMute}" FontSize="12"
                       Text="APO 설치는 장치 선택과 재부팅이 필요합니다. 재부팅 후 앱을 다시 실행하세요."/>
        </StackPanel>
        </Border>
    </Grid>
</ui:FluentWindow>
