<Window x:Class="AxCopilot.Views.TextActionPopup"
        xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
        xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
        WindowStyle="None"
        AllowsTransparency="True"
        Background="Transparent"
        ShowInTaskbar="False"
        Topmost="True"
        ResizeMode="NoResize"
        SizeToContent="WidthAndHeight"
        Deactivated="Window_Deactivated"
        KeyDown="Window_KeyDown">

    <Border CornerRadius="12"
            Background="{DynamicResource LauncherBackground}"
            BorderBrush="{DynamicResource AccentColor}"
            BorderThickness="1"
            Padding="6"
            MinWidth="260">
        <Border.Effect>
            <DropShadowEffect Color="Black" BlurRadius="20" ShadowDepth="4" Opacity="0.3"/>
        </Border.Effect>
        <StackPanel>
            <!-- 선택된 텍스트 미리보기 -->
            <Border Background="{DynamicResource HintBackground}" CornerRadius="8" Padding="10,6" Margin="0,0,0,4">
                <TextBlock x:Name="PreviewText"
                           FontSize="11" FontStyle="Italic"
                           Foreground="{DynamicResource SecondaryText}"
                           TextTrimming="CharacterEllipsis"
                           MaxWidth="300"/>
            </Border>

            <!-- 메뉴 항목들 -->
            <StackPanel x:Name="MenuItems"/>
        </StackPanel>
    </Border>
</Window>
