<dialogs:ImmersiveDialog xmlns="https://github.com/avaloniaui"
        xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
        xmlns:dialogs="using:UniGetUI.Avalonia.Views.DialogPages"
        xmlns:automation="clr-namespace:Avalonia.Automation;assembly=Avalonia.Controls"
        xmlns:controls="using:UniGetUI.Avalonia.Views.Controls"
        x:Class="UniGetUI.Avalonia.Views.DialogPages.OperationFailedDialog"
        MaxWidth="800"
        MinWidth="500"
        MaxHeight="550"
        MinHeight="300"
        Background="{DynamicResource AppDialogBackground}">

    <Grid RowDefinitions="Auto,*,Auto">

        <!-- ── Header ── -->
        <Border Grid.Row="0" Padding="16,14,16,10">
            <TextBlock x:Name="HeaderContent"
                       TextWrapping="WrapWithOverflow"
                       FontSize="14"/>
        </Border>

        <!-- ── Colored output log ── -->
        <Border Grid.Row="1"
                Margin="8,0,8,8"
                CornerRadius="6"
                ClipToBounds="True"
                Background="{DynamicResource AppDialogDarkBackground}">
            <controls:LogTextEditor x:Name="OutputText"
                                    automation:AutomationProperties.AccessibilityView="Raw"/>
        </Border>

        <!-- ── Footer buttons ── -->
        <Border Grid.Row="2"
                BorderThickness="0,1,0,0"
                Padding="16,10">
            <Grid x:Name="ButtonsLayout"
                  ColumnSpacing="8">
                <Grid.ColumnDefinitions>
                    <ColumnDefinition Width="*"/>
                    <ColumnDefinition Width="*"/>
                </Grid.ColumnDefinitions>
            </Grid>
        </Border>

    </Grid>
</dialogs:ImmersiveDialog>
