<Window x:Class="ITNexusAgent.UI.NotificationWindow"
        xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
        xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
        Title="IT Nexus Mitteilung"
        Width="500" Height="Auto"
        SizeToContent="Height"
        WindowStartupLocation="CenterScreen"
        ResizeMode="NoResize"
        WindowStyle="None"
        AllowsTransparency="False"
        Background="#1A1D2E"
        Topmost="True"
        FontFamily="Segoe UI">

    <Window.Resources>
        <Style x:Key="ConfirmBtn" TargetType="Button">
            <Setter Property="Foreground" Value="White"/>
            <Setter Property="BorderThickness" Value="0"/>
            <Setter Property="Cursor" Value="Hand"/>
            <Setter Property="FontSize" Value="13"/>
            <Setter Property="FontWeight" Value="Bold"/>
            <Setter Property="Height" Value="46"/>
            <Setter Property="Template">
                <Setter.Value>
                    <ControlTemplate TargetType="Button">
                        <Border x:Name="Bg" CornerRadius="8"
                                Background="{TemplateBinding Background}">
                            <ContentPresenter HorizontalAlignment="Center" VerticalAlignment="Center"/>
                        </Border>
                        <ControlTemplate.Triggers>
                            <Trigger Property="IsMouseOver" Value="True">
                                <Setter TargetName="Bg" Property="Opacity" Value="0.85"/>
                            </Trigger>
                            <Trigger Property="IsPressed" Value="True">
                                <Setter TargetName="Bg" Property="Opacity" Value="0.7"/>
                            </Trigger>
                        </ControlTemplate.Triggers>
                    </ControlTemplate>
                </Setter.Value>
            </Setter>
        </Style>
    </Window.Resources>

    <!-- Äußerer Rahmen mit farbigem Top-Border -->
    <Border CornerRadius="0" Background="#1A1D2E"
            BorderBrush="#2D3250" BorderThickness="1">

        <Grid>
            <Grid.RowDefinitions>
                <RowDefinition Height="4"/>     <!-- Farbige Top-Linie -->
                <RowDefinition Height="Auto"/>  <!-- Header: Icon + Typ + Titel -->
                <RowDefinition Height="Auto"/>  <!-- Nachricht -->
                <RowDefinition Height="Auto"/>  <!-- Meta -->
                <RowDefinition Height="Auto"/>  <!-- Button -->
            </Grid.RowDefinitions>

            <!-- Farbige Linie oben (wie Web: border-top) -->
            <Border Grid.Row="0" x:Name="TopAccent" CornerRadius="12,12,0,0"/>

            <!-- Header -->
            <StackPanel Grid.Row="1" Orientation="Horizontal"
                        Margin="24,20,24,16" VerticalAlignment="Center">
                <!-- Icon-Box -->
                <Border x:Name="IconBox" Width="44" Height="44" CornerRadius="10"
                        VerticalAlignment="Top" Margin="0,0,14,0">
                    <TextBlock x:Name="IconText" FontSize="22"
                               HorizontalAlignment="Center" VerticalAlignment="Center"/>
                </Border>
                <!-- Typ + Titel -->
                <StackPanel VerticalAlignment="Center">
                    <TextBlock x:Name="TypeLabel" FontSize="10" FontWeight="Bold"
                               TextOptions.TextFormattingMode="Display"/>
                    <TextBlock x:Name="TitleText" FontSize="17" FontWeight="Bold"
                               Foreground="White" TextWrapping="Wrap" MaxWidth="370"
                               Margin="0,3,0,0" LineHeight="22"/>
                </StackPanel>
            </StackPanel>

            <!-- Nachricht -->
            <Border Grid.Row="2" Margin="24,0,24,16"
                    Background="#252840" CornerRadius="8"
                    BorderBrush="#3D4270" BorderThickness="1" Padding="14,12">
                <TextBlock x:Name="MessageText" FontSize="13" Foreground="#B0B8D1"
                           TextWrapping="Wrap" LineHeight="20"/>
            </Border>

            <!-- Meta -->
            <StackPanel Grid.Row="3" Orientation="Horizontal"
                        Margin="24,0,24,20" Opacity="0.55">
                <TextBlock x:Name="MetaText" FontSize="11" Foreground="#8B9BBF"/>
            </StackPanel>

            <!-- Button + Hinweis -->
            <StackPanel Grid.Row="4" Margin="24,0,24,24">
                <Button x:Name="ConfirmButton" Style="{StaticResource ConfirmBtn}"
                        Click="ConfirmButton_Click">
                    <TextBlock Text="✓  Gelesen und bestätigt" FontSize="13" FontWeight="Bold"/>
                </Button>
                <TextBlock Text="Du musst diese Nachricht bestätigen um fortzufahren."
                           FontSize="10" Foreground="#555E7A"
                           HorizontalAlignment="Center" Margin="0,8,0,0"/>
            </StackPanel>
        </Grid>
    </Border>
</Window>
