<ResourceDictionary xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
                    xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
                    xmlns:sys="clr-namespace:System;assembly=mscorlib">

    <!-- Core palette -->
    <Color x:Key="NexusDeepNavyColor">#F8F9FA</Color>
    <Color x:Key="NexusDarkSurfaceColor">#FFFFFF</Color>
    <Color x:Key="NexusTextPrimaryColor">#1A1A2E</Color>
    <Color x:Key="NexusTextSecondaryColor">#64748B</Color>
    <Color x:Key="NexusGlassFillColor">#D9FFFFFF</Color>
    <Color x:Key="NexusGlassBorderColor">#CCE2E8F0</Color>

    <SolidColorBrush x:Key="NexusDeepNavyBrush" Color="{StaticResource NexusDeepNavyColor}"/>
    <SolidColorBrush x:Key="NexusDarkSurfaceBrush" Color="{StaticResource NexusDarkSurfaceColor}"/>
    <SolidColorBrush x:Key="NexusTextPrimaryBrush" Color="{StaticResource NexusTextPrimaryColor}"/>
    <SolidColorBrush x:Key="NexusTextSecondaryBrush" Color="{StaticResource NexusTextSecondaryColor}"/>
    <SolidColorBrush x:Key="NexusNavyBrush" Color="{StaticResource NexusDeepNavyColor}"/>
    <SolidColorBrush x:Key="NexusTextMutedBrush" Color="{StaticResource NexusTextSecondaryColor}"/>

    <!-- Desktop & wallpaper -->
    <LinearGradientBrush x:Key="NexusDesktopBackgroundBrush" StartPoint="0.5,0" EndPoint="0.5,1">
        <GradientStop Color="#FFFFFF" Offset="0"/>
        <GradientStop Color="#F8F9FA" Offset="0.45"/>
        <GradientStop Color="#EEF2F6" Offset="1"/>
    </LinearGradientBrush>

    <LinearGradientBrush x:Key="NexusDesktopVerticalGradientBrush" StartPoint="0.5,0" EndPoint="0.5,1">
        <GradientStop Color="#FFFFFF" Offset="0"/>
        <GradientStop Color="#F8F9FA" Offset="0.5"/>
        <GradientStop Color="#EEF2F6" Offset="1"/>
    </LinearGradientBrush>

    <LinearGradientBrush x:Key="NexusWallpaperMeshBrush" StartPoint="0,0" EndPoint="1,1">
        <GradientStop Color="#FFFFFF" Offset="0"/>
        <GradientStop Color="#F8F9FA" Offset="0.35"/>
        <GradientStop Color="#F1F5F9" Offset="0.7"/>
        <GradientStop Color="#EEF2F6" Offset="1"/>
    </LinearGradientBrush>

    <LinearGradientBrush x:Key="NexusHorizonGlowBrush" StartPoint="0.5,1" EndPoint="0.5,0">
        <GradientStop Color="#00000000" Offset="0"/>
        <GradientStop Color="#338A4FFF" Offset="0.3"/>
        <GradientStop Color="#4400D9FF" Offset="0.55"/>
        <GradientStop Color="#228A4FFF" Offset="0.75"/>
        <GradientStop Color="#00000000" Offset="1"/>
    </LinearGradientBrush>

    <LinearGradientBrush x:Key="NexusGlassBorderGradientBrush" StartPoint="0,0" EndPoint="1,1">
        <GradientStop Color="#CCE2E8F0" Offset="0"/>
        <GradientStop Color="#99CBD5E1" Offset="0.45"/>
        <GradientStop Color="#8800D9FF" Offset="1"/>
    </LinearGradientBrush>

    <LinearGradientBrush x:Key="NexusGlassSpecularBrush" StartPoint="0,0" EndPoint="0,1">
        <GradientStop Color="#AAFFFFFF" Offset="0"/>
        <GradientStop Color="#44FFFFFF" Offset="0.08"/>
        <GradientStop Color="#00FFFFFF" Offset="0.35"/>
    </LinearGradientBrush>

    <LinearGradientBrush x:Key="NexusDockReflectionBrush" StartPoint="0.5,0" EndPoint="0.5,1">
        <GradientStop Color="#00000000" Offset="0"/>
        <GradientStop Color="#1800D9FF" Offset="0.4"/>
        <GradientStop Color="#228A4FFF" Offset="0.7"/>
        <GradientStop Color="#00000000" Offset="1"/>
    </LinearGradientBrush>

    <LinearGradientBrush x:Key="NexusDockShelfGlowBrush" StartPoint="0.5,1" EndPoint="0.5,0">
        <GradientStop Color="#558A4FFF" Offset="0"/>
        <GradientStop Color="#3300D9FF" Offset="0.5"/>
        <GradientStop Color="#00000000" Offset="1"/>
    </LinearGradientBrush>

    <!-- Dock glass -->
    <LinearGradientBrush x:Key="NexusDockRimGradient" StartPoint="0,0.5" EndPoint="1,0.5">
        <GradientStop Color="#CC8A4FFF" Offset="0"/>
        <GradientStop Color="#DD00D9FF" Offset="0.52"/>
        <GradientStop Color="#CC8A4FFF" Offset="1"/>
    </LinearGradientBrush>
    <LinearGradientBrush x:Key="NexusDockElevatedGlassFillGradient" StartPoint="0.5,0" EndPoint="0.5,1">
        <GradientStop Color="#F5FFFFFF" Offset="0"/>
        <GradientStop Color="#EBFFFFFF" Offset="0.45"/>
        <GradientStop Color="#E0F8FAFC" Offset="1"/>
    </LinearGradientBrush>
    <LinearGradientBrush x:Key="NexusDockGlassFillGradient" StartPoint="0.5,0" EndPoint="0.5,1">
        <GradientStop Color="#E8FFFFFF" Offset="0"/>
        <GradientStop Color="#DDF8FAFC" Offset="0.55"/>
        <GradientStop Color="#D5F1F5F9" Offset="1"/>
    </LinearGradientBrush>
    <LinearGradientBrush x:Key="NexusDockInnerShadowGradient" StartPoint="0.5,1" EndPoint="0.5,0">
        <GradientStop Color="#18000000" Offset="0"/>
        <GradientStop Color="#00000000" Offset="0.65"/>
    </LinearGradientBrush>
    <LinearGradientBrush x:Key="NexusDockWingVignetteGradient" StartPoint="0,0.5" EndPoint="1,0.5">
        <GradientStop Color="#0A000000" Offset="0"/>
        <GradientStop Color="#00000000" Offset="0.22"/>
        <GradientStop Color="#00000000" Offset="0.78"/>
        <GradientStop Color="#0A000000" Offset="1"/>
    </LinearGradientBrush>
    <LinearGradientBrush x:Key="NexusDockSheenGradient" StartPoint="0,0" EndPoint="1,1">
        <GradientStop Color="#55FFFFFF" Offset="0"/>
        <GradientStop Color="#22FFFFFF" Offset="0.35"/>
        <GradientStop Color="#00FFFFFF" Offset="0.7"/>
    </LinearGradientBrush>
    <SolidColorBrush x:Key="NexusDockZoneDividerBrush" Color="#1A94A3B8"/>

    <!-- Shell chrome semantic overrides -->
    <Color x:Key="NexusShellTopBarBgColor">#D9FFFFFF</Color>
    <Color x:Key="NexusShellTopBarBorderColor">#33CBD5E1</Color>
    <Color x:Key="NexusShellPillBgColor">#E6FFFFFF</Color>
    <Color x:Key="NexusShellPillBorderColor">#CCE2E8F0</Color>
    <Color x:Key="NexusShellLabelColor">#64748B</Color>
    <Color x:Key="NexusShellValueColor">#1A1A2E</Color>
    <Color x:Key="NexusShellIconColor">#334155</Color>
    <Color x:Key="NexusShellOverlayScrimColor">#440F172A</Color>
    <Color x:Key="NexusShellAccentStrokeColor">#00BFFF</Color>
    <Color x:Key="NexusShellDockShadowColor">#33000000</Color>
    <Color x:Key="NexusShellDockTextPrimaryColor">#1A1A2E</Color>
    <Color x:Key="NexusShellDockTextSecondaryColor">#64748B</Color>
    <Color x:Key="NexusShellLauncherSearchBgColor">#F0FFFFFF</Color>
    <Color x:Key="NexusShellLauncherTileBgColor">#E6FFFFFF</Color>
    <Color x:Key="NexusShellLauncherTileBorderColor">#CCE2E8F0</Color>
    <Color x:Key="NexusShellLauncherTileTextColor">#334155</Color>
    <Color x:Key="NexusShellLauncherFooterBgColor">#F5F8FAFC</Color>
    <Color x:Key="NexusDesktopVignetteBottomColor">#22E2E8F0</Color>
    <Color x:Key="NexusShellDockAmbientGlowPurpleColor">#338A4FFF</Color>
    <Color x:Key="NexusShellDockAmbientGlowCyanColor">#3300D9FF</Color>
    <Color x:Key="NexusShellDockFloorGlowPurpleColor">#448A4FFF</Color>
    <Color x:Key="NexusShellDockFloorGlowCyanColor">#6600D9FF</Color>
    <Color x:Key="NexusShellDockShelfShadowColor">#22000000</Color>
    <Color x:Key="NexusShellDockTileBgColor">#E6FFFFFF</Color>
    <Color x:Key="NexusShellDockTileBorderColor">#CCE2E8F0</Color>
    <Color x:Key="NexusShellDockTileActiveBgColor">#2200D9FF</Color>
    <Color x:Key="NexusShellDockTileActiveBorderColor">#8800D9FF</Color>
    <Color x:Key="NexusShellDockProfileRingColor">#6600D9FF</Color>
    <Color x:Key="NexusShellDockOnlineRingColor">#FFFFFF</Color>
    <Color x:Key="NexusShellButtonHoverBgColor">#1800D9FF</Color>
    <Color x:Key="NexusShellButtonHoverBorderColor">#5500D9FF</Color>

    <SolidColorBrush x:Key="NexusShellTopBarBgBrush" Color="{StaticResource NexusShellTopBarBgColor}"/>
    <SolidColorBrush x:Key="NexusShellTopBarBorderBrush" Color="{StaticResource NexusShellTopBarBorderColor}"/>
    <SolidColorBrush x:Key="NexusShellPillBgBrush" Color="{StaticResource NexusShellPillBgColor}"/>
    <SolidColorBrush x:Key="NexusShellPillBorderBrush" Color="{StaticResource NexusShellPillBorderColor}"/>
    <SolidColorBrush x:Key="NexusShellLabelBrush" Color="{StaticResource NexusShellLabelColor}"/>
    <SolidColorBrush x:Key="NexusShellValueBrush" Color="{StaticResource NexusShellValueColor}"/>
    <SolidColorBrush x:Key="NexusShellIconBrush" Color="{StaticResource NexusShellIconColor}"/>
    <SolidColorBrush x:Key="NexusShellOverlayScrimBrush" Color="{StaticResource NexusShellOverlayScrimColor}"/>
    <SolidColorBrush x:Key="NexusShellAccentStrokeBrush" Color="{StaticResource NexusShellAccentStrokeColor}"/>
    <SolidColorBrush x:Key="NexusShellDockShadowBrush" Color="{StaticResource NexusShellDockShadowColor}"/>
    <SolidColorBrush x:Key="NexusShellDockTextPrimaryBrush" Color="{StaticResource NexusShellDockTextPrimaryColor}"/>
    <SolidColorBrush x:Key="NexusShellDockTextSecondaryBrush" Color="{StaticResource NexusShellDockTextSecondaryColor}"/>
    <SolidColorBrush x:Key="NexusShellLauncherSearchBgBrush" Color="{StaticResource NexusShellLauncherSearchBgColor}"/>
    <SolidColorBrush x:Key="NexusShellLauncherTileBgBrush" Color="{StaticResource NexusShellLauncherTileBgColor}"/>
    <SolidColorBrush x:Key="NexusShellLauncherTileBorderBrush" Color="{StaticResource NexusShellLauncherTileBorderColor}"/>
    <SolidColorBrush x:Key="NexusShellLauncherTileTextBrush" Color="{StaticResource NexusShellLauncherTileTextColor}"/>
    <SolidColorBrush x:Key="NexusShellLauncherFooterBgBrush" Color="{StaticResource NexusShellLauncherFooterBgColor}"/>
    <SolidColorBrush x:Key="NexusShellDockTileBgBrush" Color="{StaticResource NexusShellDockTileBgColor}"/>
    <SolidColorBrush x:Key="NexusShellDockTileBorderBrush" Color="{StaticResource NexusShellDockTileBorderColor}"/>
    <SolidColorBrush x:Key="NexusShellDockProfileRingBrush" Color="{StaticResource NexusShellDockProfileRingColor}"/>
    <SolidColorBrush x:Key="NexusShellDockOnlineRingBrush" Color="{StaticResource NexusShellDockOnlineRingColor}"/>
    <SolidColorBrush x:Key="NexusShellButtonHoverBgBrush" Color="{StaticResource NexusShellButtonHoverBgColor}"/>
    <SolidColorBrush x:Key="NexusShellButtonHoverBorderBrush" Color="{StaticResource NexusShellButtonHoverBorderColor}"/>
    <SolidColorBrush x:Key="NexusShellDockAmbientGlowPurpleBrush" Color="{StaticResource NexusShellDockAmbientGlowPurpleColor}"/>
    <SolidColorBrush x:Key="NexusShellDockAmbientGlowCyanBrush" Color="{StaticResource NexusShellDockAmbientGlowCyanColor}"/>
    <SolidColorBrush x:Key="NexusShellDockShelfShadowBrush" Color="{StaticResource NexusShellDockShelfShadowColor}"/>

    <LinearGradientBrush x:Key="NexusDesktopVignetteBrush" StartPoint="0.5,0.55" EndPoint="0.5,1">
        <GradientStop Color="#00000000" Offset="0"/>
        <GradientStop Color="{StaticResource NexusDesktopVignetteBottomColor}" Offset="1"/>
    </LinearGradientBrush>

    <LinearGradientBrush x:Key="NexusShellDockFloorGlowBrush" StartPoint="0,0.5" EndPoint="1,0.5">
        <GradientStop Color="{StaticResource NexusShellDockFloorGlowPurpleColor}" Offset="0"/>
        <GradientStop Color="{StaticResource NexusShellDockFloorGlowCyanColor}" Offset="0.5"/>
        <GradientStop Color="{StaticResource NexusShellDockFloorGlowPurpleColor}" Offset="1"/>
    </LinearGradientBrush>

    <!-- Glass panel styles -->
    <Style x:Key="NexusGlassPanelStyle" TargetType="Border">
        <Setter Property="Background">
            <Setter.Value>
                <SolidColorBrush Color="{StaticResource NexusGlassFillColor}"/>
            </Setter.Value>
        </Setter>
        <Setter Property="BorderBrush" Value="{StaticResource NexusGlassBorderGradientBrush}"/>
        <Setter Property="BorderThickness" Value="1"/>
        <Setter Property="CornerRadius" Value="20"/>
        <Setter Property="Padding" Value="16"/>
        <Setter Property="Effect">
            <Setter.Value>
                <DropShadowEffect Color="#94A3B8" BlurRadius="24" ShadowDepth="4" Opacity="0.18"/>
            </Setter.Value>
        </Setter>
    </Style>

    <Style x:Key="NexusStatusCardStyle" TargetType="Border">
        <Setter Property="CornerRadius" Value="20"/>
        <Setter Property="Padding" Value="14,10"/>
        <Setter Property="Margin" Value="0,0,10,0"/>
        <Setter Property="BorderThickness" Value="1"/>
        <Setter Property="BorderBrush">
            <Setter.Value>
                <LinearGradientBrush StartPoint="0,0" EndPoint="0,1">
                    <GradientStop Color="#CCE2E8F0" Offset="0"/>
                    <GradientStop Color="#99CBD5E1" Offset="1"/>
                </LinearGradientBrush>
            </Setter.Value>
        </Setter>
        <Setter Property="Background">
            <Setter.Value>
                <LinearGradientBrush StartPoint="0,0" EndPoint="0,1">
                    <GradientStop Color="#F0FFFFFF" Offset="0"/>
                    <GradientStop Color="#E6F8FAFC" Offset="1"/>
                </LinearGradientBrush>
            </Setter.Value>
        </Setter>
        <Setter Property="Effect">
            <Setter.Value>
                <DropShadowEffect Color="#94A3B8" BlurRadius="16" ShadowDepth="2" Opacity="0.15"/>
            </Setter.Value>
        </Setter>
    </Style>

    <Style x:Key="NexusDock3ShelfStyle" TargetType="Border">
        <Setter Property="CornerRadius" Value="32"/>
        <Setter Property="BorderThickness" Value="1.5"/>
        <Setter Property="BorderBrush">
            <Setter.Value>
                <LinearGradientBrush StartPoint="0,0" EndPoint="0,1">
                    <GradientStop Color="#CCE2E8F0" Offset="0"/>
                    <GradientStop Color="#99CBD5E1" Offset="0.12"/>
                    <GradientStop Color="#6600D9FF" Offset="0.55"/>
                    <GradientStop Color="#888A4FFF" Offset="1"/>
                </LinearGradientBrush>
            </Setter.Value>
        </Setter>
        <Setter Property="Background">
            <Setter.Value>
                <LinearGradientBrush StartPoint="0,0" EndPoint="0,1">
                    <GradientStop Color="#F0FFFFFF" Offset="0"/>
                    <GradientStop Color="#E8FFFFFF" Offset="0.35"/>
                    <GradientStop Color="#DDF8FAFC" Offset="0.65"/>
                    <GradientStop Color="#E5F1F5F9" Offset="1"/>
                </LinearGradientBrush>
            </Setter.Value>
        </Setter>
        <Setter Property="Effect">
            <Setter.Value>
                <DropShadowEffect Color="#94A3B8" BlurRadius="32" ShadowDepth="8" Direction="270" Opacity="0.22"/>
            </Setter.Value>
        </Setter>
    </Style>

    <Style x:Key="NexusDockGlassTileStyle" TargetType="Border">
        <Setter Property="Width" Value="46"/>
        <Setter Property="Height" Value="46"/>
        <Setter Property="CornerRadius" Value="13"/>
        <Setter Property="Background" Value="{StaticResource NexusShellDockTileBgBrush}"/>
        <Setter Property="BorderBrush" Value="{StaticResource NexusShellDockTileBorderBrush}"/>
        <Setter Property="BorderThickness" Value="1"/>
        <Setter Property="HorizontalAlignment" Value="Center"/>
        <Setter Property="VerticalAlignment" Value="Center"/>
        <Setter Property="Effect">
            <Setter.Value>
                <DropShadowEffect Color="#94A3B8" BlurRadius="8" ShadowDepth="2" Opacity="0.2"/>
            </Setter.Value>
        </Setter>
    </Style>

    <Style x:Key="NexusLauncher3PanelStyle" TargetType="Border">
        <Setter Property="CornerRadius" Value="24"/>
        <Setter Property="BorderThickness" Value="1.5"/>
        <Setter Property="BorderBrush">
            <Setter.Value>
                <LinearGradientBrush StartPoint="0,0" EndPoint="1,1">
                    <GradientStop Color="#CCE2E8F0" Offset="0"/>
                    <GradientStop Color="#888A4FFF" Offset="0.4"/>
                    <GradientStop Color="#6600D9FF" Offset="1"/>
                </LinearGradientBrush>
            </Setter.Value>
        </Setter>
        <Setter Property="Background">
            <Setter.Value>
                <LinearGradientBrush StartPoint="0,0" EndPoint="0,1">
                    <GradientStop Color="#F5FFFFFF" Offset="0"/>
                    <GradientStop Color="#EBFFFFFF" Offset="0.4"/>
                    <GradientStop Color="#E0F8FAFC" Offset="1"/>
                </LinearGradientBrush>
            </Setter.Value>
        </Setter>
        <Setter Property="Effect">
            <Setter.Value>
                <DropShadowEffect Color="#94A3B8" BlurRadius="48" ShadowDepth="6" Opacity="0.2"/>
            </Setter.Value>
        </Setter>
    </Style>

    <Style x:Key="NexusIconButtonStyle" TargetType="Button">
        <Setter Property="Background" Value="Transparent"/>
        <Setter Property="BorderThickness" Value="0"/>
        <Setter Property="Foreground" Value="{StaticResource NexusTextPrimaryBrush}"/>
        <Setter Property="Cursor" Value="Hand"/>
        <Setter Property="Padding" Value="10,8"/>
        <Setter Property="Template">
            <Setter.Value>
                <ControlTemplate TargetType="Button">
                    <Border x:Name="Root" Background="{TemplateBinding Background}" CornerRadius="12" Padding="{TemplateBinding Padding}">
                        <ContentPresenter HorizontalAlignment="Center" VerticalAlignment="Center"/>
                    </Border>
                    <ControlTemplate.Triggers>
                        <Trigger Property="IsMouseOver" Value="True">
                            <Setter TargetName="Root" Property="Background" Value="#1800D9FF"/>
                            <Setter TargetName="Root" Property="Effect">
                                <Setter.Value>
                                    <DropShadowEffect Color="#8A4FFF" BlurRadius="16" ShadowDepth="0" Opacity="0.35"/>
                                </Setter.Value>
                            </Setter>
                        </Trigger>
                    </ControlTemplate.Triggers>
                </ControlTemplate>
            </Setter.Value>
        </Setter>
    </Style>

    <!-- Logo asset URIs -->
    <sys:String x:Key="NexusLogoTopBarSource">pack://application:,,,/Assets/Images/Lille_nexus_logo_light.png</sys:String>
    <sys:String x:Key="NexusLogoMediumSource">pack://application:,,,/Assets/Images/nexus-logo-light.png</sys:String>
    <sys:String x:Key="NexusLogoLargeSource">pack://application:,,,/Assets/Images/Stort_nexus_logo_light.png</sys:String>
    <sys:String x:Key="NexusIconSource">pack://application:,,,/Assets/Images/nexus-icon-light.png</sys:String>
    <BitmapImage x:Key="NexusDockBrandIcon" UriSource="pack://application:,,,/Assets/Images/nexus-icon-light.png"/>
    <BitmapImage x:Key="NexusLauncherLogo" UriSource="pack://application:,,,/Assets/Images/nexus-logo-light.png"/>

</ResourceDictionary>
