<Window x:Class="RevitEstimate.ActivationWindow"
        xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
        xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
        Title="License Activation - Revit Estimate Panel" Height="620" Width="480" WindowStartupLocation="CenterScreen" ResizeMode="NoResize">
    <Grid Margin="20">
        <Grid.RowDefinitions>
            <RowDefinition Height="Auto"/>
            <RowDefinition Height="Auto"/>
            <RowDefinition Height="Auto"/>
            <RowDefinition Height="Auto"/>
            <RowDefinition Height="*"/>
            <RowDefinition Height="Auto"/>
        </Grid.RowDefinitions>

        <!-- Header -->
        <TextBlock Text="Activate Your License" FontSize="20" FontWeight="Bold" Foreground="#FF003366" HorizontalAlignment="Center"/>
        <TextBlock Grid.Row="1" Text="Unlock full access to Revit Estimate Panel by Pooja Enterprises." FontSize="12" Foreground="Gray" HorizontalAlignment="Center" Margin="0,5,0,10"/>

        <!-- Payment Instructions & QR Box -->
        <Border Grid.Row="2" Background="#FFF9F9F9" BorderBrush="#FFDDDDDD" BorderThickness="1" CornerRadius="5" Padding="12" Margin="0,0,0,10">
            <StackPanel HorizontalAlignment="Center">
                <TextBlock Text="Step 1: Scan QR or Pay via Razorpay Link" FontWeight="Bold" Foreground="#FF007ACC" HorizontalAlignment="Center" Margin="0,0,0,8"/>

                <!-- Razorpay QR Code Image (Bada Size) -->
                <Image x:Name="ImgQrCode" Width="160" Height="160" HorizontalAlignment="Center" Margin="0,0,0,6"/>
                <TextBlock Text="Scan using any UPI App" FontSize="11" Foreground="Gray" HorizontalAlignment="Center" Margin="0,0,0,8"/>

                <!-- Payment Link -->
                <TextBlock Text="Or Pay directly via Razorpay Handle:" FontSize="11" FontWeight="Bold" HorizontalAlignment="Center" Margin="0,0,0,2"/>
                <TextBox Text="https://razorpay.me/@poojachaudhary7725" IsReadOnly="True" Background="White" BorderBrush="#FFCCCCCC" Padding="4" FontSize="11" HorizontalContentAlignment="Center" Width="320"/>
            </StackPanel>
        </Border>

        <!-- Machine ID Section with Copy Button -->
        <StackPanel Grid.Row="3" Margin="0,0,0,10">
            <TextBlock Text="Your Unique ID (Kindly send this with your payment):" FontWeight="Bold" FontSize="11" Foreground="#FF003366" Margin="0,0,0,3"/>
            <Grid>
                <Grid.ColumnDefinitions>
                    <ColumnDefinition Width="*"/>
                    <ColumnDefinition Width="Auto"/>
                </Grid.ColumnDefinitions>
                <TextBox x:Name="TxtMachineId" IsReadOnly="True" Background="#FFF0F0F0" FontWeight="Bold" Foreground="#FF333333" Height="30" VerticalContentAlignment="Center" Padding="5" FontSize="13"/>
                <Button Grid.Column="1" Content="Copy ID" Width="75" Height="30" Margin="5,0,0,0" Background="#FFDDDDDD" FontWeight="Bold" Click="BtnCopyId_Click"/>
            </Grid>
        </StackPanel>

        <!-- Key Input Section -->
        <StackPanel Grid.Row="4">
            <TextBlock Text="Step 2: Enter Activation Key" FontWeight="Bold" Margin="0,0,0,5"/>
            <TextBox x:Name="TxtLicenseKey" Height="30" VerticalContentAlignment="Center" Padding="5" FontSize="13"/>
            <TextBlock x:Name="TxtStatus" Text="" Foreground="Red" FontSize="12" Margin="0,5,0,0"/>
        </StackPanel>

        <!-- Buttons -->
        <StackPanel Grid.Row="5" Orientation="Horizontal" HorizontalAlignment="Right" Margin="0,10,0,0">
            <Button Content="Cancel" Width="90" Height="30" Margin="0,0,10,0" Click="BtnCancel_Click"/>
            <Button Content="Activate License" Width="130" Height="30" Background="#FF007ACC" Foreground="White" FontWeight="Bold" Click="BtnActivate_Click"/>
        </StackPanel>
    </Grid>
</Window>