<!--
NavisworksTransport 共享样式资源字典 - Navisworks 2026风格
功能说明：
1. 统一管理所有UI组件的样式定义
2. 保持与Navisworks 2026风格一致的设计
3. 简化样式维护和修改

设计原则：蓝色主题配色，现代化布局，统一字体
-->
<ResourceDictionary xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
                    xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml">

    <!-- Navisworks 2026 主要颜色定义 -->
    <Color x:Key="NavisworksPrimaryBlue">#FF2B579A</Color>
    <Color x:Key="NavisworksSecondaryBlue">#FF4472C4</Color>
    <Color x:Key="NavisworksLightBlue">#FFD4E7FF</Color>
    <Color x:Key="NavisworksBackgroundBlue">#FFF8FBFF</Color>
    <Color x:Key="NavisworksButtonBlue">#FFE7F1FF</Color>
    <Color x:Key="NavisworksTextGray">#FF666666</Color>
    <Color x:Key="NavisworksDarkGray">#FF333333</Color>

    <!-- Navisworks 2026 画刷定义 -->
    <SolidColorBrush x:Key="NavisworksPrimaryBrush" Color="{StaticResource NavisworksPrimaryBlue}"/>
    <SolidColorBrush x:Key="NavisworksSecondaryBrush" Color="{StaticResource NavisworksSecondaryBlue}"/>
    <SolidColorBrush x:Key="NavisworksLightBrush" Color="{StaticResource NavisworksLightBlue}"/>
    <SolidColorBrush x:Key="NavisworksBackgroundBrush" Color="{StaticResource NavisworksBackgroundBlue}"/>
    <SolidColorBrush x:Key="NavisworksButtonBrush" Color="{StaticResource NavisworksButtonBlue}"/>
    <SolidColorBrush x:Key="NavisworksTextBrush" Color="{StaticResource NavisworksTextGray}"/>
    <SolidColorBrush x:Key="NavisworksDarkBrush" Color="{StaticResource NavisworksDarkGray}"/>

    <!-- 区域标题样式 -->
    <Style x:Key="SectionHeaderStyle" TargetType="Label">
        <Setter Property="FontWeight" Value="Normal"/>
        <Setter Property="FontSize" Value="12"/>
        <Setter Property="Foreground" Value="{StaticResource NavisworksPrimaryBrush}"/>
        <Setter Property="Padding" Value="0,5,0,2"/>
    </Style>

    <!-- 主要操作按钮样式 -->
    <Style x:Key="ActionButtonStyle" TargetType="Button">
        <Setter Property="Background" Value="{StaticResource NavisworksSecondaryBrush}"/>
        <Setter Property="Foreground" Value="White"/>
        <Setter Property="BorderBrush" Value="{StaticResource NavisworksPrimaryBrush}"/>
        <Setter Property="Padding" Value="10,5"/>
        <Setter Property="Margin" Value="0,0,10,0"/>
        <Setter Property="FontWeight" Value="Normal"/>
        <Setter Property="MinWidth" Value="60"/>
        <Setter Property="Height" Value="28"/>
    </Style>

    <!-- 次要操作按钮样式 -->
    <Style x:Key="SecondaryButtonStyle" TargetType="Button">
        <Setter Property="Background" Value="{StaticResource NavisworksButtonBrush}"/>
        <Setter Property="Foreground" Value="{StaticResource NavisworksPrimaryBrush}"/>
        <Setter Property="BorderBrush" Value="{StaticResource NavisworksSecondaryBrush}"/>
        <Setter Property="Padding" Value="8,4"/>
        <Setter Property="Margin" Value="0,0,8,0"/>
        <Setter Property="MinWidth" Value="60"/>
        <Setter Property="Height" Value="28"/>
    </Style>

    <!-- 状态文本样式 -->
    <Style x:Key="StatusTextStyle" TargetType="TextBlock">
        <Setter Property="FontSize" Value="10"/>
        <Setter Property="Foreground" Value="{StaticResource NavisworksTextBrush}"/>
        <Setter Property="TextWrapping" Value="Wrap"/>
    </Style>

    <!-- 参数标签样式 -->
    <Style x:Key="ParameterLabelStyle" TargetType="Label">
        <Setter Property="Width" Value="80"/>
        <Setter Property="VerticalAlignment" Value="Center"/>
        <Setter Property="Padding" Value="0,0,5,0"/>
    </Style>

    <!-- 参数输入框样式 -->
    <Style x:Key="ParameterInputStyle" TargetType="TextBox">
        <Setter Property="Width" Value="80"/>
        <Setter Property="Margin" Value="5,2"/>
        <Setter Property="VerticalAlignment" Value="Center"/>
    </Style>

    <!-- 单位标签样式 -->
    <Style x:Key="UnitLabelStyle" TargetType="Label">
        <Setter Property="Width" Value="30"/>
        <Setter Property="VerticalAlignment" Value="Center"/>
        <Setter Property="Padding" Value="2,0,0,0"/>
        <Setter Property="FontSize" Value="10"/>
        <Setter Property="Foreground" Value="{StaticResource NavisworksTextBrush}"/>
    </Style>

    <!-- 只读文本框样式 -->
    <Style x:Key="ReadOnlyTextBoxStyle" TargetType="TextBox">
        <Setter Property="IsReadOnly" Value="True"/>
        <Setter Property="Background" Value="#FFF5F5F5"/>
        <Setter Property="BorderBrush" Value="#FFCCCCCC"/>
        <Setter Property="Padding" Value="5,3"/>
        <Setter Property="Margin" Value="5,2"/>
    </Style>

    <!-- TabControl样式定义 -->
    <Style x:Key="NavisworksTabControlStyle" TargetType="TabControl">
        <Setter Property="Background" Value="White"/>
        <Setter Property="BorderBrush" Value="{StaticResource NavisworksLightBrush}"/>
        <Setter Property="BorderThickness" Value="1"/>
    </Style>

    <!-- TabItem样式定义 -->
    <Style x:Key="NavisworksTabItemStyle" TargetType="TabItem">
        <Setter Property="Background" Value="{StaticResource NavisworksBackgroundBrush}"/>
        <Setter Property="BorderBrush" Value="{StaticResource NavisworksLightBrush}"/>
        <Setter Property="BorderThickness" Value="1,1,1,0"/>
        <Setter Property="Margin" Value="0,0,2,0"/>
        <Setter Property="Padding" Value="12,6"/>
        <Setter Property="FontWeight" Value="Normal"/>
        <Setter Property="Foreground" Value="{StaticResource NavisworksPrimaryBrush}"/>
        <Setter Property="Template">
            <Setter.Value>
                <ControlTemplate TargetType="TabItem">
                    <Border Name="Border" 
                            Background="{TemplateBinding Background}"
                            BorderBrush="{TemplateBinding BorderBrush}"
                            BorderThickness="{TemplateBinding BorderThickness}"
                            CornerRadius="0">
                        <ContentPresenter ContentSource="Header" 
                                          Margin="{TemplateBinding Padding}"
                                          HorizontalAlignment="Center"
                                          VerticalAlignment="Center"/>
                    </Border>
                    <ControlTemplate.Triggers>
                        <Trigger Property="IsSelected" Value="True">
                            <Setter TargetName="Border" Property="Background" Value="White"/>
                            <Setter Property="Foreground" Value="{StaticResource NavisworksPrimaryBrush}"/>
                            <Setter Property="FontWeight" Value="Normal"/>
                        </Trigger>
                        <Trigger Property="IsMouseOver" Value="True">
                            <Setter TargetName="Border" Property="Background" Value="{StaticResource NavisworksButtonBrush}"/>
                        </Trigger>
                    </ControlTemplate.Triggers>
                </ControlTemplate>
            </Setter.Value>
        </Setter>
    </Style>

    <!-- 对话框专用样式 -->
    <Style x:Key="DialogTitleStyle" TargetType="Label">
        <Setter Property="FontWeight" Value="Normal"/>
        <Setter Property="FontSize" Value="18"/>
        <Setter Property="Foreground" Value="{StaticResource NavisworksPrimaryBrush}"/>
        <Setter Property="HorizontalAlignment" Value="Center"/>
        <Setter Property="Padding" Value="0,10,0,8"/>
    </Style>

    <Style x:Key="DialogVersionStyle" TargetType="Label">
        <Setter Property="FontWeight" Value="Normal"/>
        <Setter Property="FontSize" Value="14"/>
        <Setter Property="Foreground" Value="{StaticResource NavisworksSecondaryBrush}"/>
        <Setter Property="HorizontalAlignment" Value="Center"/>
        <Setter Property="Padding" Value="0,5,0,5"/>
    </Style>

    <Style x:Key="DialogInfoLabelStyle" TargetType="Label">
        <Setter Property="FontWeight" Value="Normal"/>
        <Setter Property="FontSize" Value="11"/>
        <Setter Property="Foreground" Value="{StaticResource NavisworksPrimaryBrush}"/>
        <Setter Property="Width" Value="80"/>
        <Setter Property="Padding" Value="0,4"/>
    </Style>

    <Style x:Key="DialogInfoTextStyle" TargetType="TextBlock">
        <Setter Property="FontSize" Value="11"/>
        <Setter Property="Foreground" Value="{StaticResource NavisworksDarkBrush}"/>
        <Setter Property="VerticalAlignment" Value="Center"/>
        <Setter Property="TextWrapping" Value="Wrap"/>
        <Setter Property="Margin" Value="10,0"/>
    </Style>

    <Style x:Key="DialogDescriptionStyle" TargetType="TextBlock">
        <Setter Property="FontSize" Value="11"/>
        <Setter Property="Foreground" Value="{StaticResource NavisworksTextBrush}"/>
        <Setter Property="TextWrapping" Value="Wrap"/>
        <Setter Property="TextAlignment" Value="Center"/>
        <Setter Property="LineHeight" Value="16"/>
        <Setter Property="Margin" Value="20,15"/>
    </Style>

    <Style x:Key="DialogContentTextStyle" TargetType="TextBlock">
        <Setter Property="FontSize" Value="11"/>
        <Setter Property="Foreground" Value="{StaticResource NavisworksDarkBrush}"/>
        <Setter Property="TextWrapping" Value="Wrap"/>
        <Setter Property="LineHeight" Value="16"/>
        <Setter Property="Margin" Value="10,2,0,4"/>
    </Style>

</ResourceDictionary>