<ResourceDictionary xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
                    xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml">

    <Color x:Key="NexusPurple">#8A4FFF</Color>
    <Color x:Key="NexusBlue">#2D9CFF</Color>
    <Color x:Key="NexusCyan">#00D9FF</Color>
    <Color x:Key="NexusDeepNavy">#040810</Color>
    <Color x:Key="NexusSurface">#0A1020</Color>
    <Color x:Key="NexusSuccess">#22C55E</Color>
    <Color x:Key="NexusWarning">#F59E0B</Color>
    <Color x:Key="NexusError">#EF4444</Color>
    <Color x:Key="NexusTextPrimary">#F8FAFC</Color>
    <Color x:Key="NexusTextSecondary">#8B9CB8</Color>

    <SolidColorBrush x:Key="NexusPurpleBrush" Color="{StaticResource NexusPurple}"/>
    <SolidColorBrush x:Key="NexusBlueBrush" Color="{StaticResource NexusBlue}"/>
    <SolidColorBrush x:Key="NexusCyanBrush" Color="{StaticResource NexusCyan}"/>
    <SolidColorBrush x:Key="NexusDeepNavyBrush" Color="{StaticResource NexusDeepNavy}"/>
    <SolidColorBrush x:Key="NexusSurfaceBrush" Color="{StaticResource NexusSurface}"/>
    <SolidColorBrush x:Key="NexusSuccessBrush" Color="{StaticResource NexusSuccess}"/>
    <SolidColorBrush x:Key="NexusWarningBrush" Color="{StaticResource NexusWarning}"/>
    <SolidColorBrush x:Key="NexusErrorBrush" Color="{StaticResource NexusError}"/>
    <SolidColorBrush x:Key="NexusTextPrimaryBrush" Color="{StaticResource NexusTextPrimary}"/>
    <SolidColorBrush x:Key="NexusTextSecondaryBrush" Color="{StaticResource NexusTextSecondary}"/>

    <LinearGradientBrush x:Key="NexusBackgroundBrush" StartPoint="0.5,0" EndPoint="0.5,1">
        <GradientStop Color="#030508" Offset="0"/>
        <GradientStop Color="#0A1020" Offset="0.5"/>
        <GradientStop Color="#040810" Offset="1"/>
    </LinearGradientBrush>

    <LinearGradientBrush x:Key="NexusAccentGradient" StartPoint="0,0" EndPoint="1,0">
        <GradientStop Color="#8A4FFF" Offset="0"/>
        <GradientStop Color="#2D9CFF" Offset="0.5"/>
        <GradientStop Color="#00D9FF" Offset="1"/>
    </LinearGradientBrush>

    <Style x:Key="NexusPrimaryButton" TargetType="Button">
        <Setter Property="Background" Value="{StaticResource NexusAccentGradient}"/>
        <Setter Property="Foreground" Value="White"/>
        <Setter Property="FontSize" Value="14"/>
        <Setter Property="FontWeight" Value="SemiBold"/>
        <Setter Property="Padding" Value="24,12"/>
        <Setter Property="BorderThickness" Value="0"/>
        <Setter Property="Cursor" Value="Hand"/>
        <Setter Property="Template">
            <Setter.Value>
                <ControlTemplate TargetType="Button">
                    <Border Background="{TemplateBinding Background}" CornerRadius="8" Padding="{TemplateBinding Padding}">
                        <ContentPresenter HorizontalAlignment="Center" VerticalAlignment="Center"/>
                    </Border>
                </ControlTemplate>
            </Setter.Value>
        </Setter>
    </Style>

    <Style x:Key="NexusSecondaryButton" TargetType="Button">
        <Setter Property="Background" Value="#22101828"/>
        <Setter Property="Foreground" Value="{StaticResource NexusTextPrimaryBrush}"/>
        <Setter Property="BorderBrush" Value="#44FFFFFF"/>
        <Setter Property="BorderThickness" Value="1"/>
        <Setter Property="FontSize" Value="14"/>
        <Setter Property="Padding" Value="20,12"/>
        <Setter Property="Cursor" Value="Hand"/>
        <Setter Property="Template">
            <Setter.Value>
                <ControlTemplate TargetType="Button">
                    <Border Background="{TemplateBinding Background}"
                            BorderBrush="{TemplateBinding BorderBrush}"
                            BorderThickness="{TemplateBinding BorderThickness}"
                            CornerRadius="8"
                            Padding="{TemplateBinding Padding}">
                        <ContentPresenter HorizontalAlignment="Center" VerticalAlignment="Center"/>
                    </Border>
                </ControlTemplate>
            </Setter.Value>
        </Setter>
    </Style>

    <Style x:Key="NexusTextBox" TargetType="TextBox">
        <Setter Property="Background" Value="#22101828"/>
        <Setter Property="Foreground" Value="{StaticResource NexusTextPrimaryBrush}"/>
        <Setter Property="BorderBrush" Value="#33FFFFFF"/>
        <Setter Property="BorderThickness" Value="1"/>
        <Setter Property="Padding" Value="12,10"/>
        <Setter Property="FontSize" Value="14"/>
        <Setter Property="CaretBrush" Value="{StaticResource NexusCyanBrush}"/>
    </Style>

    <Style x:Key="NexusComboBox" TargetType="ComboBox">
        <Setter Property="Background" Value="#22101828"/>
        <Setter Property="Foreground" Value="{StaticResource NexusTextPrimaryBrush}"/>
        <Setter Property="BorderBrush" Value="#33FFFFFF"/>
        <Setter Property="Padding" Value="12,10"/>
        <Setter Property="FontSize" Value="14"/>
    </Style>

    <Style x:Key="NexusCheckBox" TargetType="CheckBox">
        <Setter Property="Foreground" Value="{StaticResource NexusTextPrimaryBrush}"/>
        <Setter Property="FontSize" Value="14"/>
    </Style>

    <Style x:Key="NexusBodyText" TargetType="TextBlock">
        <Setter Property="Foreground" Value="{StaticResource NexusTextSecondaryBrush}"/>
        <Setter Property="FontSize" Value="14"/>
        <Setter Property="TextWrapping" Value="Wrap"/>
    </Style>

    <Style x:Key="NexusHeading" TargetType="TextBlock">
        <Setter Property="Foreground" Value="{StaticResource NexusTextPrimaryBrush}"/>
        <Setter Property="FontSize" Value="28"/>
        <Setter Property="FontWeight" Value="SemiBold"/>
    </Style>

    <Style x:Key="NexusSubheading" TargetType="TextBlock">
        <Setter Property="Foreground" Value="{StaticResource NexusTextSecondaryBrush}"/>
        <Setter Property="FontSize" Value="15"/>
        <Setter Property="TextWrapping" Value="Wrap"/>
        <Setter Property="Margin" Value="0,8,0,0"/>
    </Style>

</ResourceDictionary>
