<Window x:Class="AxCopilot.Views.CommandPaletteWindow"
        xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
        xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
        Title="Command Palette"
        Width="520" SizeToContent="Height"
        MaxHeight="480"
        WindowStyle="None" AllowsTransparency="True"
        Background="Transparent"
        WindowStartupLocation="CenterOwner"
        ShowInTaskbar="False"
        Topmost="True"
        PreviewKeyDown="Window_PreviewKeyDown"
        Deactivated="Window_Deactivated">

    <Border Background="{DynamicResource LauncherBackground}"
            BorderBrush="{DynamicResource BorderColor}" BorderThickness="1"
            CornerRadius="14" Padding="8" Margin="16">
        <Border.Effect>
            <DropShadowEffect BlurRadius="24" ShadowDepth="6" Opacity="0.35"
                              Color="Black" Direction="270"/>
        </Border.Effect>
        <StackPanel>
            <!-- 검색 입력 -->
            <Border Background="{DynamicResource ItemBackground}" CornerRadius="10"
                    Padding="10,8" Margin="4,4,4,8">
                <Grid>
                    <Grid.ColumnDefinitions>
                        <ColumnDefinition Width="Auto"/>
                        <ColumnDefinition Width="*"/>
                    </Grid.ColumnDefinitions>
                    <TextBlock Text="&#xE721;" FontFamily="Segoe MDL2 Assets" FontSize="14"
                               Foreground="{DynamicResource SecondaryText}"
                               VerticalAlignment="Center" Margin="0,0,8,0"/>
                    <TextBox x:Name="SearchBox" Grid.Column="1"
                             FontSize="14" BorderThickness="0" Background="Transparent"
                             Foreground="{DynamicResource PrimaryText}"
                             CaretBrush="{DynamicResource AccentColor}"
                             TextChanged="SearchBox_TextChanged"/>
                </Grid>
            </Border>

            <!-- 결과 목록 -->
            <ScrollViewer MaxHeight="360" VerticalScrollBarVisibility="Auto">
                <StackPanel x:Name="ResultPanel" Margin="4,0,4,4"/>
            </ScrollViewer>
        </StackPanel>
    </Border>
</Window>
