<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">

    <!-- v3 premium sci-fi palette -->
    <Color x:Key="NexusPurpleColor">#8A4FFF</Color>
    <Color x:Key="NexusBlueColor">#2D9CFF</Color>
    <Color x:Key="NexusDeepNavyColor">#040810</Color>
    <Color x:Key="NexusDarkSurfaceColor">#0A1020</Color>
    <Color x:Key="NexusCyanColor">#00D9FF</Color>
    <Color x:Key="NexusSuccessColor">#22C55E</Color>
    <Color x:Key="NexusWarningColor">#F59E0B</Color>
    <Color x:Key="NexusTextPrimaryColor">#F8FAFC</Color>
    <Color x:Key="NexusTextSecondaryColor">#8B9CB8</Color>
    <Color x:Key="NexusGlassFillColor">#55101828</Color>
    <Color x:Key="NexusGlassBorderColor">#88FFFFFF</Color>

    <SolidColorBrush x:Key="NexusPurpleBrush" Color="{StaticResource NexusPurpleColor}"/>
    <SolidColorBrush x:Key="NexusBlueBrush" Color="{StaticResource NexusBlueColor}"/>
    <SolidColorBrush x:Key="NexusDeepNavyBrush" Color="{StaticResource NexusDeepNavyColor}"/>
    <SolidColorBrush x:Key="NexusDarkSurfaceBrush" Color="{StaticResource NexusDarkSurfaceColor}"/>
    <SolidColorBrush x:Key="NexusCyanBrush" Color="{StaticResource NexusCyanColor}"/>
    <SolidColorBrush x:Key="NexusSuccessBrush" Color="{StaticResource NexusSuccessColor}"/>
    <SolidColorBrush x:Key="NexusWarningBrush" Color="{StaticResource NexusWarningColor}"/>
    <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}"/>
    <SolidColorBrush x:Key="NexusAccentCyanBrush" Color="{StaticResource NexusCyanColor}"/>

    <LinearGradientBrush x:Key="NexusLogoGradientBrush" StartPoint="0,0" EndPoint="1,1">
        <GradientStop Color="#A855FF" Offset="0"/>
        <GradientStop Color="#3B82F6" Offset="0.45"/>
        <GradientStop Color="#06B6D4" Offset="1"/>
    </LinearGradientBrush>

    <LinearGradientBrush x:Key="NexusLogoRingBrush" StartPoint="0,0" EndPoint="1,1">
        <GradientStop Color="#668A4FFF" Offset="0"/>
        <GradientStop Color="#4400D4FF" Offset="0.5"/>
        <GradientStop Color="#002D9CFF" Offset="1"/>
    </LinearGradientBrush>

    <LinearGradientBrush x:Key="NexusDesktopVerticalGradientBrush" StartPoint="0.5,0" EndPoint="0.5,1">
        <GradientStop Color="#030B1D" Offset="0"/>
        <GradientStop Color="#071A38" Offset="0.45"/>
        <GradientStop Color="#0A2548" Offset="1"/>
    </LinearGradientBrush>

    <LinearGradientBrush x:Key="NexusDesktopBackgroundBrush" 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="NexusHorizonGlowBrush" StartPoint="0.5,1" EndPoint="0.5,0">
        <GradientStop Color="#00000000" Offset="0"/>
        <GradientStop Color="#5500D4FF" Offset="0.25"/>
        <GradientStop Color="#772D9CFF" Offset="0.55"/>
        <GradientStop Color="#558A4FFF" Offset="0.75"/>
        <GradientStop Color="#00000000" Offset="1"/>
    </LinearGradientBrush>

    <LinearGradientBrush x:Key="NexusGlassBorderGradientBrush" StartPoint="0,0" EndPoint="1,1">
        <GradientStop Color="#AAFFFFFF" Offset="0"/>
        <GradientStop Color="#33FFFFFF" Offset="0.45"/>
        <GradientStop Color="#7700D4FF" Offset="1"/>
    </LinearGradientBrush>

    <LinearGradientBrush x:Key="NexusGlassSpecularBrush" StartPoint="0,0" EndPoint="0,1">
        <GradientStop Color="#55FFFFFF" Offset="0"/>
        <GradientStop Color="#18FFFFFF" 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="#2200D4FF" Offset="0.4"/>
        <GradientStop Color="#448A4FFF" Offset="0.7"/>
        <GradientStop Color="#00000000" Offset="1"/>
    </LinearGradientBrush>

    <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="16"/>
        <Setter Property="Padding" Value="16"/>
        <Setter Property="Effect">
            <Setter.Value>
                <DropShadowEffect Color="#2D9CFF" BlurRadius="32" ShadowDepth="0" Opacity="0.35"/>
            </Setter.Value>
        </Setter>
    </Style>

    <Style x:Key="NexusGlassPillStyle" TargetType="Border" BasedOn="{StaticResource NexusGlassPanelStyle}">
        <Setter Property="CornerRadius" Value="999"/>
        <Setter Property="Padding" Value="12,8"/>
    </Style>

    <Style x:Key="NexusSectionTitleStyle" TargetType="TextBlock">
        <Setter Property="Foreground" Value="{StaticResource NexusTextSecondaryBrush}"/>
        <Setter Property="FontSize" Value="11"/>
        <Setter Property="FontWeight" Value="SemiBold"/>
        <Setter Property="Margin" Value="0,0,0,10"/>
    </Style>

    <Style x:Key="NexusPrimaryTextStyle" TargetType="TextBlock">
        <Setter Property="Foreground" Value="{StaticResource NexusTextPrimaryBrush}"/>
        <Setter Property="FontFamily" Value="Segoe UI Variable Display, Segoe UI"/>
    </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="#28FFFFFF"/>
                            <Setter TargetName="Root" Property="Effect">
                                <Setter.Value>
                                    <DropShadowEffect Color="#8A4FFF" BlurRadius="22" ShadowDepth="0" Opacity="0.55"/>
                                </Setter.Value>
                            </Setter>
                        </Trigger>
                    </ControlTemplate.Triggers>
                </ControlTemplate>
            </Setter.Value>
        </Setter>
    </Style>

    <Style x:Key="NexusGlassButtonStyle" TargetType="Button" BasedOn="{StaticResource NexusIconButtonStyle}">
        <Setter Property="Background" Value="#22FFFFFF"/>
        <Setter Property="BorderBrush" Value="#44FFFFFF"/>
        <Setter Property="BorderThickness" Value="1"/>
    </Style>

    <Style x:Key="NexusSearchBoxStyle" TargetType="TextBox">
        <Setter Property="Background" Value="Transparent"/>
        <Setter Property="Foreground" Value="{StaticResource NexusTextPrimaryBrush}"/>
        <Setter Property="BorderThickness" Value="0"/>
        <Setter Property="Padding" Value="8,10"/>
        <Setter Property="FontSize" Value="15"/>
        <Setter Property="CaretBrush" Value="{StaticResource NexusCyanBrush}"/>
    </Style>

    <Style x:Key="NexusFormTextBoxStyle" TargetType="TextBox">
        <Setter Property="IsReadOnly" Value="False"/>
        <Setter Property="IsEnabled" Value="True"/>
        <Setter Property="Foreground" Value="{StaticResource NexusTextPrimaryBrush}"/>
        <Setter Property="Background" Value="#12081428"/>
        <Setter Property="BorderBrush" Value="#3800D9FF"/>
        <Setter Property="BorderThickness" Value="1"/>
        <Setter Property="Padding" Value="12,10"/>
        <Setter Property="FontSize" Value="15"/>
        <Setter Property="Height" Value="42"/>
        <Setter Property="VerticalContentAlignment" Value="Center"/>
        <Setter Property="CaretBrush" Value="{StaticResource NexusCyanBrush}"/>
        <Setter Property="Template">
            <Setter.Value>
                <ControlTemplate TargetType="TextBox">
                    <Border x:Name="Root"
                            Background="{TemplateBinding Background}"
                            BorderBrush="{TemplateBinding BorderBrush}"
                            BorderThickness="{TemplateBinding BorderThickness}"
                            CornerRadius="12">
                        <ScrollViewer x:Name="PART_ContentHost" Margin="{TemplateBinding Padding}"/>
                    </Border>
                    <ControlTemplate.Triggers>
                        <Trigger Property="IsKeyboardFocused" Value="True">
                            <Setter TargetName="Root" Property="BorderBrush" Value="#8800D9FF"/>
                        </Trigger>
                    </ControlTemplate.Triggers>
                </ControlTemplate>
            </Setter.Value>
        </Setter>
    </Style>

    <Style x:Key="NexusComboBoxItemStyle" TargetType="ComboBoxItem">
        <Setter Property="Foreground" Value="{StaticResource NexusTextPrimaryBrush}"/>
        <Setter Property="Background" Value="#0A1228"/>
        <Setter Property="Padding" Value="12,10"/>
        <Setter Property="FontSize" Value="15"/>
        <Setter Property="Template">
            <Setter.Value>
                <ControlTemplate TargetType="ComboBoxItem">
                    <Border x:Name="Root"
                            Background="{TemplateBinding Background}"
                            Padding="{TemplateBinding Padding}">
                        <ContentPresenter/>
                    </Border>
                    <ControlTemplate.Triggers>
                        <Trigger Property="IsHighlighted" Value="True">
                            <Setter TargetName="Root" Property="Background" Value="#338A4FFF"/>
                        </Trigger>
                        <Trigger Property="IsSelected" Value="True">
                            <Setter TargetName="Root" Property="Background" Value="#4400D9FF"/>
                        </Trigger>
                    </ControlTemplate.Triggers>
                </ControlTemplate>
            </Setter.Value>
        </Setter>
    </Style>

    <Style x:Key="NexusComboBoxStyle" TargetType="ComboBox">
        <Setter Property="IsEnabled" Value="True"/>
        <Setter Property="Foreground" Value="{StaticResource NexusTextPrimaryBrush}"/>
        <Setter Property="Background" Value="#12081428"/>
        <Setter Property="BorderBrush" Value="#3800D9FF"/>
        <Setter Property="BorderThickness" Value="1"/>
        <Setter Property="Padding" Value="12,10"/>
        <Setter Property="FontSize" Value="15"/>
        <Setter Property="MinHeight" Value="42"/>
        <Setter Property="ItemContainerStyle" Value="{StaticResource NexusComboBoxItemStyle}"/>
        <Setter Property="Template">
            <Setter.Value>
                <ControlTemplate TargetType="ComboBox">
                    <Grid>
                        <Border x:Name="Root"
                                Background="{TemplateBinding Background}"
                                BorderBrush="{TemplateBinding BorderBrush}"
                                BorderThickness="{TemplateBinding BorderThickness}"
                                CornerRadius="12"
                                IsHitTestVisible="False">
                            <Grid>
                                <Grid.ColumnDefinitions>
                                    <ColumnDefinition Width="*"/>
                                    <ColumnDefinition Width="28"/>
                                </Grid.ColumnDefinitions>
                                <TextBlock Grid.Column="0"
                                           Text="Vælg organisation"
                                           Foreground="{StaticResource NexusTextSecondaryBrush}"
                                           VerticalAlignment="Center"
                                           Margin="12,0,0,0"
                                           IsHitTestVisible="False">
                                    <TextBlock.Style>
                                        <Style TargetType="TextBlock">
                                            <Setter Property="Visibility" Value="Collapsed"/>
                                            <Style.Triggers>
                                                <DataTrigger Binding="{Binding SelectedItem, RelativeSource={RelativeSource AncestorType=ComboBox}}" Value="{x:Null}">
                                                    <Setter Property="Visibility" Value="Visible"/>
                                                </DataTrigger>
                                            </Style.Triggers>
                                        </Style>
                                    </TextBlock.Style>
                                </TextBlock>
                                <ContentPresenter Grid.Column="0"
                                                  Margin="12,0,0,0"
                                                  VerticalAlignment="Center"
                                                  HorizontalAlignment="Left"
                                                  Content="{TemplateBinding SelectionBoxItem}"
                                                  ContentTemplate="{TemplateBinding SelectionBoxItemTemplate}"
                                                  ContentTemplateSelector="{TemplateBinding ItemTemplateSelector}"
                                                  IsHitTestVisible="False"/>
                                <Path Grid.Column="1"
                                      Data="M 0,0 L 4,4 L 8,0 Z"
                                      Fill="{StaticResource NexusTextSecondaryBrush}"
                                      HorizontalAlignment="Center"
                                      VerticalAlignment="Center"
                                      Margin="0,0,10,0"
                                      IsHitTestVisible="False"/>
                            </Grid>
                        </Border>
                        <ToggleButton x:Name="Toggle"
                                      Focusable="False"
                                      HorizontalAlignment="Stretch"
                                      VerticalAlignment="Stretch"
                                      IsChecked="{Binding IsDropDownOpen, Mode=TwoWay, RelativeSource={RelativeSource TemplatedParent}}"
                                      ClickMode="Press"
                                      Background="Transparent"
                                      BorderThickness="0">
                            <ToggleButton.Template>
                                <ControlTemplate TargetType="ToggleButton">
                                    <Border Background="Transparent"/>
                                </ControlTemplate>
                            </ToggleButton.Template>
                        </ToggleButton>
                        <Popup x:Name="PART_Popup"
                               Placement="Bottom"
                               IsOpen="{TemplateBinding IsDropDownOpen}"
                               AllowsTransparency="True"
                               Focusable="False"
                               PopupAnimation="Slide">
                            <Border MinWidth="{Binding ActualWidth, RelativeSource={RelativeSource TemplatedParent}}"
                                    MaxHeight="240"
                                    Background="#0A1228"
                                    BorderBrush="#6600D9FF"
                                    BorderThickness="1"
                                    CornerRadius="12"
                                    Margin="0,4,0,0">
                                <ScrollViewer CanContentScroll="True">
                                    <ItemsPresenter KeyboardNavigation.DirectionalNavigation="Contained"/>
                                </ScrollViewer>
                            </Border>
                        </Popup>
                    </Grid>
                    <ControlTemplate.Triggers>
                        <Trigger Property="IsKeyboardFocusWithin" Value="True">
                            <Setter TargetName="Root" Property="BorderBrush" Value="#8800D9FF"/>
                        </Trigger>
                        <Trigger Property="IsDropDownOpen" Value="True">
                            <Setter TargetName="Root" Property="BorderBrush" Value="#8800D9FF"/>
                        </Trigger>
                    </ControlTemplate.Triggers>
                </ControlTemplate>
            </Setter.Value>
        </Setter>
    </Style>

    <Style x:Key="NexusPrimaryActionButtonStyle" TargetType="Button">
        <Setter Property="Foreground" Value="#FFFFFF"/>
        <Setter Property="FontWeight" Value="SemiBold"/>
        <Setter Property="FontSize" Value="15"/>
        <Setter Property="Padding" Value="12,12"/>
        <Setter Property="BorderThickness" Value="0"/>
        <Setter Property="Cursor" Value="Hand"/>
        <Setter Property="Background" Value="{StaticResource NexusLogoGradientBrush}"/>
        <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="Effect">
                                <Setter.Value>
                                    <DropShadowEffect Color="#8A4FFF" BlurRadius="18" ShadowDepth="0" Opacity="0.65"/>
                                </Setter.Value>
                            </Setter>
                        </Trigger>
                        <Trigger Property="IsEnabled" Value="False">
                            <Setter TargetName="Root" Property="Opacity" Value="0.42"/>
                        </Trigger>
                    </ControlTemplate.Triggers>
                </ControlTemplate>
            </Setter.Value>
        </Setter>
    </Style>

    <!-- Wallpaper -->
    <LinearGradientBrush x:Key="NexusWallpaperMeshBrush" StartPoint="0,0" EndPoint="1,1">
        <GradientStop Color="#020408" Offset="0"/>
        <GradientStop Color="#0A1228" Offset="0.3"/>
        <GradientStop Color="#101830" Offset="0.55"/>
        <GradientStop Color="#0C1424" Offset="0.78"/>
        <GradientStop Color="#040810" Offset="1"/>
    </LinearGradientBrush>

    <LinearGradientBrush x:Key="NexusLightWaveBrush" StartPoint="0,0.5" EndPoint="1,0.5">
        <GradientStop Color="#00000000" Offset="0"/>
        <GradientStop Color="#3300D4FF" Offset="0.35"/>
        <GradientStop Color="#558A4FFF" Offset="0.5"/>
        <GradientStop Color="#3300D4FF" Offset="0.65"/>
        <GradientStop Color="#00000000" Offset="1"/>
    </LinearGradientBrush>

    <LinearGradientBrush x:Key="NexusVignetteBrush" StartPoint="0.5,0.5" EndPoint="0.5,1">
        <GradientStop Color="#00000000" Offset="0"/>
        <GradientStop Color="#66000000" Offset="0.75"/>
        <GradientStop Color="#AA000000" Offset="1"/>
    </LinearGradientBrush>

    <LinearGradientBrush x:Key="NexusDockShelfGlowBrush" StartPoint="0.5,1" EndPoint="0.5,0">
        <GradientStop Color="#998A4FFF" Offset="0"/>
        <GradientStop Color="#552D9CFF" Offset="0.5"/>
        <GradientStop Color="#002D9CFF" Offset="1"/>
    </LinearGradientBrush>

    <!-- Shared dock / launcher chrome -->
    <PathGeometry x:Key="NexusIconShelfShape"
                  Figures="M 0,68 C 3,68 30,65 59,0 L 605,0 C 634,65 661,68 664,68 Z"/>
    <PathGeometry x:Key="NexusIconShelfTopSilhouette"
                  Figures="M 0,68 C 3,68 30,65 59,0 L 605,0 C 634,65 661,68 664,68 Z"/>
    <PathGeometry x:Key="NexusLauncherShellShape"
                  Figures="M 59,700 L 605,700 L 605,20 C 605,9 594,0 582,0 L 82,0 C 70,0 59,9 59,20 Z"/>
    <PathGeometry x:Key="NexusLauncherShellRimShape"
                  Figures="M 59,700 L 59,20 C 59,9 68,0 80,0 L 584,0 C 596,0 605,9 605,20 L 605,700"/>

    <LinearGradientBrush x:Key="NexusDockRimGradient" StartPoint="0,0.5" EndPoint="1,0.5">
        <GradientStop Color="#E68A4FFF" Offset="0"/>
        <GradientStop Color="#F200D9FF" Offset="0.52"/>
        <GradientStop Color="#E68A4FFF" Offset="1"/>
    </LinearGradientBrush>
    <LinearGradientBrush x:Key="NexusDockElevatedGlassFillGradient" StartPoint="0.5,0" EndPoint="0.5,1">
        <GradientStop Color="#F00C1A2E" Offset="0"/>
        <GradientStop Color="#E80A1628" Offset="0.45"/>
        <GradientStop Color="#D9081424" Offset="1"/>
    </LinearGradientBrush>
    <LinearGradientBrush x:Key="NexusDockGlassFillGradient" StartPoint="0.5,0" EndPoint="0.5,1">
        <GradientStop Color="#E8081828" Offset="0"/>
        <GradientStop Color="#D9081828" Offset="0.55"/>
        <GradientStop Color="#CC081828" Offset="1"/>
    </LinearGradientBrush>
    <LinearGradientBrush x:Key="NexusDockInnerShadowGradient" StartPoint="0.5,1" EndPoint="0.5,0">
        <GradientStop Color="#70000000" Offset="0"/>
        <GradientStop Color="#00000000" Offset="0.65"/>
    </LinearGradientBrush>
    <LinearGradientBrush x:Key="NexusDockWingVignetteGradient" StartPoint="0,0.5" EndPoint="1,0.5">
        <GradientStop Color="#55000000" Offset="0"/>
        <GradientStop Color="#00000000" Offset="0.22"/>
        <GradientStop Color="#00000000" Offset="0.78"/>
        <GradientStop Color="#55000000" Offset="1"/>
    </LinearGradientBrush>
    <LinearGradientBrush x:Key="NexusDockSheenGradient" StartPoint="0,0" EndPoint="1,1">
        <GradientStop Color="#18FFFFFF" Offset="0"/>
        <GradientStop Color="#06FFFFFF" Offset="0.35"/>
        <GradientStop Color="#00FFFFFF" Offset="0.7"/>
    </LinearGradientBrush>
    <SolidColorBrush x:Key="NexusDockZoneDividerBrush" Color="#14FFFFFF"/>

    <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="#12FFFFFF"/>
        <Setter Property="BorderBrush" Value="#22FFFFFF"/>
        <Setter Property="BorderThickness" Value="1"/>
        <Setter Property="HorizontalAlignment" Value="Center"/>
        <Setter Property="VerticalAlignment" Value="Center"/>
        <Setter Property="Effect">
            <Setter.Value>
                <DropShadowEffect Color="#000000" BlurRadius="8" ShadowDepth="2" Opacity="0.45"/>
            </Setter.Value>
        </Setter>
    </Style>

    <!-- Dock 3.0 -->
    <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="#AAFFFFFF" Offset="0"/>
                    <GradientStop Color="#44FFFFFF" Offset="0.12"/>
                    <GradientStop Color="#2200D4FF" Offset="0.55"/>
                    <GradientStop Color="#558A4FFF" Offset="1"/>
                </LinearGradientBrush>
            </Setter.Value>
        </Setter>
        <Setter Property="Background">
            <Setter.Value>
                <LinearGradientBrush StartPoint="0,0" EndPoint="0,1">
                    <GradientStop Color="#70182840" Offset="0"/>
                    <GradientStop Color="#50101828" Offset="0.35"/>
                    <GradientStop Color="#38081018" Offset="0.65"/>
                    <GradientStop Color="#480A1424" Offset="1"/>
                </LinearGradientBrush>
            </Setter.Value>
        </Setter>
        <Setter Property="Effect">
            <Setter.Value>
                <DropShadowEffect Color="#00D4FF" BlurRadius="56" ShadowDepth="14" Direction="270" Opacity="0.65"/>
            </Setter.Value>
        </Setter>
    </Style>

    <Style x:Key="NexusDock2ShelfStyle" TargetType="Border" BasedOn="{StaticResource NexusDock3ShelfStyle}"/>

    <!-- Status cards -->
    <Style x:Key="NexusStatusCardStyle" TargetType="Border">
        <Setter Property="CornerRadius" Value="14"/>
        <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="#55FFFFFF" Offset="0"/>
                    <GradientStop Color="#18FFFFFF" Offset="1"/>
                </LinearGradientBrush>
            </Setter.Value>
        </Setter>
        <Setter Property="Background">
            <Setter.Value>
                <LinearGradientBrush StartPoint="0,0" EndPoint="0,1">
                    <GradientStop Color="#50101828" Offset="0"/>
                    <GradientStop Color="#30081018" Offset="1"/>
                </LinearGradientBrush>
            </Setter.Value>
        </Setter>
        <Setter Property="Effect">
            <Setter.Value>
                <DropShadowEffect Color="#2D9CFF" BlurRadius="20" ShadowDepth="0" Opacity="0.25"/>
            </Setter.Value>
        </Setter>
    </Style>

    <!-- Launcher 3.0 -->
    <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="#AAFFFFFF" Offset="0"/>
                    <GradientStop Color="#448A4FFF" Offset="0.4"/>
                    <GradientStop Color="#6600D4FF" Offset="1"/>
                </LinearGradientBrush>
            </Setter.Value>
        </Setter>
        <Setter Property="Background">
            <Setter.Value>
                <LinearGradientBrush StartPoint="0,0" EndPoint="0,1">
                    <GradientStop Color="#F0182038" Offset="0"/>
                    <GradientStop Color="#E8101828" Offset="0.4"/>
                    <GradientStop Color="#E8081018" Offset="1"/>
                </LinearGradientBrush>
            </Setter.Value>
        </Setter>
        <Setter Property="Effect">
            <Setter.Value>
                <DropShadowEffect Color="#8A4FFF" BlurRadius="90" ShadowDepth="0" Opacity="0.7"/>
            </Setter.Value>
        </Setter>
    </Style>

    <Style x:Key="NexusLauncherSpotlightPanelStyle" TargetType="Border" BasedOn="{StaticResource NexusLauncher3PanelStyle}"/>

    <Style x:Key="NexusSpotlightSearchBoxStyle" TargetType="TextBox" BasedOn="{StaticResource NexusSearchBoxStyle}">
        <Setter Property="FontSize" Value="26"/>
        <Setter Property="Padding" Value="4,16"/>
        <Setter Property="FontWeight" Value="Light"/>
    </Style>

    <Style x:Key="NexusStartMenuPanelStyle" TargetType="Border">
        <Setter Property="CornerRadius" Value="20"/>
        <Setter Property="BorderThickness" Value="1"/>
        <Setter Property="BorderBrush" Value="#44FFFFFF"/>
        <Setter Property="Background">
            <Setter.Value>
                <LinearGradientBrush StartPoint="0,0" EndPoint="1,1">
                    <GradientStop Color="#E6101828" Offset="0"/>
                    <GradientStop Color="#E0081220" Offset="0.55"/>
                    <GradientStop Color="#E6121A32" Offset="1"/>
                </LinearGradientBrush>
            </Setter.Value>
        </Setter>
        <Setter Property="Effect">
            <Setter.Value>
                <DropShadowEffect Color="#8A4FFF" BlurRadius="48" ShadowDepth="0" Opacity="0.35"/>
            </Setter.Value>
        </Setter>
    </Style>

    <Style x:Key="NexusStartMenuPinnedTileStyle" 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="Width" Value="96"/>
        <Setter Property="Height" Value="96"/>
        <Setter Property="Padding" Value="4"/>
        <Setter Property="Template">
            <Setter.Value>
                <ControlTemplate TargetType="Button">
                    <Border x:Name="Root" CornerRadius="14" Padding="6" Background="Transparent">
                        <ContentPresenter HorizontalAlignment="Center" VerticalAlignment="Center"/>
                    </Border>
                    <ControlTemplate.Triggers>
                        <Trigger Property="IsMouseOver" Value="True">
                            <Setter TargetName="Root" Property="Background" Value="#22FFFFFF"/>
                        </Trigger>
                    </ControlTemplate.Triggers>
                </ControlTemplate>
            </Setter.Value>
        </Setter>
    </Style>

    <Style x:Key="NexusStartMenuFooterButtonStyle" TargetType="Button" BasedOn="{StaticResource NexusIconButtonStyle}">
        <Setter Property="Width" Value="40"/>
        <Setter Property="Height" Value="40"/>
        <Setter Property="FontSize" Value="16"/>
        <Setter Property="Padding" Value="0"/>
    </Style>

    <!-- Shell chrome semantic tokens (dark defaults) -->
    <Color x:Key="NexusShellTopBarBgColor">#CC020712</Color>
    <Color x:Key="NexusShellTopBarBorderColor">#1800D9FF</Color>
    <Color x:Key="NexusShellPillBgColor">#A8081428</Color>
    <Color x:Key="NexusShellPillBorderColor">#22FFFFFF</Color>
    <Color x:Key="NexusShellLabelColor">#8CA3C7</Color>
    <Color x:Key="NexusShellValueColor">#FFFFFF</Color>
    <Color x:Key="NexusShellIconColor">#FFFFFF</Color>
    <Color x:Key="NexusShellOverlayScrimColor">#66020810</Color>
    <Color x:Key="NexusShellAccentStrokeColor">#00D9FF</Color>
    <Color x:Key="NexusShellDockShadowColor">#66000000</Color>
    <Color x:Key="NexusShellDockTextPrimaryColor">#FFFFFF</Color>
    <Color x:Key="NexusShellDockTextSecondaryColor">#8CA3C7</Color>
    <Color x:Key="NexusShellLauncherSearchBgColor">#1A0C1424</Color>
    <Color x:Key="NexusShellLauncherTileBgColor">#12FFFFFF</Color>
    <Color x:Key="NexusShellLauncherTileBorderColor">#28FFFFFF</Color>
    <Color x:Key="NexusShellLauncherTileTextColor">#E8F0FF</Color>
    <Color x:Key="NexusShellLauncherFooterBgColor">#0CFFFFFF</Color>
    <Color x:Key="NexusDesktopVignetteBottomColor">#66020712</Color>
    <Color x:Key="NexusShellDockAmbientGlowPurpleColor">#558A4FFF</Color>
    <Color x:Key="NexusShellDockAmbientGlowCyanColor">#5500D9FF</Color>
    <Color x:Key="NexusShellDockFloorGlowPurpleColor">#708A4FFF</Color>
    <Color x:Key="NexusShellDockFloorGlowCyanColor">#B000D9FF</Color>
    <Color x:Key="NexusShellDockShelfShadowColor">#55000000</Color>
    <Color x:Key="NexusShellDockTileBgColor">#12FFFFFF</Color>
    <Color x:Key="NexusShellDockTileBorderColor">#22FFFFFF</Color>
    <Color x:Key="NexusShellDockTileActiveBgColor">#2200D9FF</Color>
    <Color x:Key="NexusShellDockTileActiveBorderColor">#8800D9FF</Color>
    <Color x:Key="NexusShellDockProfileRingColor">#3300D9FF</Color>
    <Color x:Key="NexusShellDockOnlineRingColor">#071024</Color>
    <Color x:Key="NexusShellButtonHoverBgColor">#2200D9FF</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>

    <Style x:Key="NexusShellStatusPillStyle" TargetType="Border">
        <Setter Property="MinWidth" Value="128"/>
        <Setter Property="Height" Value="40"/>
        <Setter Property="CornerRadius" Value="20"/>
        <Setter Property="Margin" Value="0,0,10,0"/>
        <Setter Property="Padding" Value="12,5"/>
        <Setter Property="Background" Value="{StaticResource NexusShellPillBgBrush}"/>
        <Setter Property="BorderBrush" Value="{StaticResource NexusShellPillBorderBrush}"/>
        <Setter Property="BorderThickness" Value="1"/>
    </Style>

    <sys:String x:Key="NexusLogoTopBarSource">pack://application:,,,/Assets/Images/Lille_nexus_logo.png</sys:String>
    <sys:String x:Key="NexusLogoMediumSource">pack://application:,,,/Assets/Images/Mellem_nexus_logo.png</sys:String>
    <sys:String x:Key="NexusLogoLargeSource">pack://application:,,,/Assets/Images/Stort_nexus_logo.png</sys:String>
    <sys:String x:Key="NexusIconSource">pack://application:,,,/Assets/Images/Nexus_ikon.png</sys:String>
    <BitmapImage x:Key="NexusDockBrandIcon" UriSource="pack://application:,,,/Assets/Images/Nexus_ikon.png"/>
    <BitmapImage x:Key="NexusLauncherLogo" UriSource="pack://application:,,,/Assets/Images/Mellem_nexus_logo.png"/>

    <Style x:Key="NexusShellTopRoundButtonStyle" TargetType="Button">
        <Setter Property="Width" Value="40"/>
        <Setter Property="Height" Value="40"/>
        <Setter Property="Margin" Value="0,0,8,0"/>
        <Setter Property="Cursor" Value="Hand"/>
        <Setter Property="Background" Value="{StaticResource NexusShellPillBgBrush}"/>
        <Setter Property="BorderBrush" Value="{StaticResource NexusShellPillBorderBrush}"/>
        <Setter Property="BorderThickness" Value="1"/>
        <Setter Property="Template">
            <Setter.Value>
                <ControlTemplate TargetType="Button">
                    <Border x:Name="Root" CornerRadius="13"
                            Background="{TemplateBinding Background}"
                            BorderBrush="{TemplateBinding BorderBrush}"
                            BorderThickness="{TemplateBinding BorderThickness}">
                        <ContentPresenter HorizontalAlignment="Center" VerticalAlignment="Center"/>
                    </Border>
                    <ControlTemplate.Triggers>
                        <Trigger Property="IsMouseOver" Value="True">
                            <Setter TargetName="Root" Property="Background" Value="{DynamicResource NexusShellButtonHoverBgBrush}"/>
                            <Setter TargetName="Root" Property="BorderBrush" Value="{DynamicResource NexusShellButtonHoverBorderBrush}"/>
                            <Setter TargetName="Root" Property="Effect">
                                <Setter.Value>
                                    <DropShadowEffect Color="#00D9FF" BlurRadius="18" ShadowDepth="0" Opacity="0.5"/>
                                </Setter.Value>
                            </Setter>
                        </Trigger>
                    </ControlTemplate.Triggers>
                </ControlTemplate>
            </Setter.Value>
        </Setter>
    </Style>

    <Style x:Key="NexusStartMenuLinkStyle" TargetType="Button">
        <Setter Property="Background" Value="Transparent"/>
        <Setter Property="BorderThickness" Value="0"/>
        <Setter Property="Foreground" Value="{StaticResource NexusTextSecondaryBrush}"/>
        <Setter Property="FontSize" Value="12"/>
        <Setter Property="Cursor" Value="Hand"/>
        <Setter Property="Padding" Value="4,2"/>
        <Setter Property="Template">
            <Setter.Value>
                <ControlTemplate TargetType="Button">
                    <TextBlock Text="{TemplateBinding Content}"
                               Foreground="{TemplateBinding Foreground}"
                               FontSize="{TemplateBinding FontSize}"/>
                </ControlTemplate>
            </Setter.Value>
        </Setter>
        <Style.Triggers>
            <Trigger Property="IsMouseOver" Value="True">
                <Setter Property="Foreground" Value="{StaticResource NexusCyanBrush}"/>
            </Trigger>
        </Style.Triggers>
    </Style>

</ResourceDictionary>
