Repository navigation
Expand file tree
/
Copy pathMaterial3ExpressiveStyles.axaml
More file actions
958 lines (914 loc) · 54.1 KB
/
Copy pathMaterial3ExpressiveStyles.axaml
File metadata and controls
958 lines (914 loc) · 54.1 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
610
611
612
613
614
615
616
617
618
619
620
621
622
623
624
625
626
627
628
629
630
631
632
633
634
635
636
637
638
639
640
641
642
643
644
645
646
647
648
649
650
651
652
653
654
655
656
657
658
659
660
661
662
663
664
665
666
667
668
669
670
671
672
673
674
675
676
677
678
679
680
681
682
683
684
685
686
687
688
689
690
691
692
693
694
695
696
697
698
699
700
701
702
703
704
705
706
707
708
709
710
711
712
713
714
715
716
717
718
719
720
721
722
723
724
725
726
727
728
729
730
731
732
733
734
735
736
737
738
739
740
741
742
743
744
745
746
747
748
749
750
751
752
753
754
755
756
757
758
759
760
761
762
763
764
765
766
767
768
769
770
771
772
773
774
775
776
777
778
779
780
781
782
783
784
785
786
787
788
789
790
791
792
793
794
795
796
797
798
799
800
801
802
803
804
805
806
807
808
809
810
811
812
813
814
815
816
817
818
819
820
821
822
823
824
825
826
827
828
829
830
831
832
833
834
835
836
837
838
839
840
841
842
843
844
845
846
847
848
849
850
851
852
853
854
855
856
857
858
859
860
861
862
863
864
865
866
867
868
869
870
871
872
873
874
875
876
877
878
879
880
881
882
883
884
885
886
887
888
889
890
891
892
893
894
895
896
897
898
899
900
901
902
903
904
905
906
907
908
909
910
911
912
913
914
915
916
917
918
919
920
921
922
923
924
925
926
927
928
929
930
931
932
933
934
935
936
937
938
939
940
941
942
943
944
945
946
947
948
949
950
951
952
953
954
955
956
957
958
<Styles xmlns="https://github.com/avaloniaui"
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
xmlns:materialIcons="clr-namespace:Material.Icons.Avalonia;assembly=Material.Icons.Avalonia">
<!-- =================================================================== -->
<!-- Google Material Design 3 Expressive (M3 Expressive) Component Suite -->
<!-- =================================================================== -->
<Styles.Resources>
<!-- M3 Expressive Compact RepeatButton for ButtonSpinner -->
<ControlTheme x:Key="M3ButtonSpinnerRepeatButton" TargetType="RepeatButton">
<Setter Property="Background" Value="Transparent" />
<Setter Property="BorderThickness" Value="0" />
<Setter Property="Padding" Value="0" />
<Setter Property="Margin" Value="0,0.5" />
<Setter Property="Cursor" Value="Hand" />
<Setter Property="HorizontalAlignment" Value="Stretch" />
<Setter Property="VerticalAlignment" Value="Stretch" />
<Setter Property="HorizontalContentAlignment" Value="Center" />
<Setter Property="VerticalContentAlignment" Value="Center" />
<Setter Property="CornerRadius" Value="{StaticResource M3ShapeCornerSmall}" />
<Setter Property="Template">
<ControlTemplate>
<Border Name="PART_ButtonBorder"
Background="{TemplateBinding Background}"
BorderBrush="{TemplateBinding BorderBrush}"
BorderThickness="{TemplateBinding BorderThickness}"
CornerRadius="{TemplateBinding CornerRadius}">
<ContentPresenter Name="PART_ContentPresenter"
Content="{TemplateBinding Content}"
ContentTemplate="{TemplateBinding ContentTemplate}"
HorizontalAlignment="{TemplateBinding HorizontalContentAlignment}"
VerticalAlignment="{TemplateBinding VerticalContentAlignment}"
Padding="{TemplateBinding Padding}" />
</Border>
</ControlTemplate>
</Setter>
<Style Selector="^:pointerover /template/ Border#PART_ButtonBorder">
<Setter Property="Background" Value="{DynamicResource M3SurfaceContainerHighestBrush}" />
</Style>
<Style Selector="^:pressed /template/ Border#PART_ButtonBorder">
<Setter Property="Background" Value="{DynamicResource M3PrimaryContainerBrush}" />
</Style>
<Style Selector="^:disabled">
<Setter Property="Opacity" Value="0.35" />
</Style>
</ControlTheme>
<!-- M3 Expressive ButtonSpinner ControlTheme (Compact Vertical Chevrons) -->
<ControlTheme x:Key="{x:Type ButtonSpinner}" TargetType="ButtonSpinner">
<Setter Property="Foreground" Value="{DynamicResource M3OnSurfaceBrush}" />
<Setter Property="Background" Value="{DynamicResource M3SurfaceContainerLowestBrush}" />
<Setter Property="BorderBrush" Value="{DynamicResource M3OutlineVariantBrush}" />
<Setter Property="BorderThickness" Value="1" />
<Setter Property="CornerRadius" Value="{StaticResource M3ShapeCornerMedium}" />
<Setter Property="MinHeight" Value="26" />
<Setter Property="HorizontalContentAlignment" Value="Stretch" />
<Setter Property="VerticalContentAlignment" Value="Center" />
<Setter Property="Focusable" Value="False" />
<Setter Property="Template">
<ControlTemplate>
<DataValidationErrors>
<Border Name="PART_SpinnerBorder"
Background="{TemplateBinding Background}"
BorderBrush="{TemplateBinding BorderBrush}"
BorderThickness="{TemplateBinding BorderThickness}"
CornerRadius="{TemplateBinding CornerRadius}"
MinHeight="{TemplateBinding MinHeight}"
ClipToBounds="True">
<DockPanel>
<!-- Vertical Chevrons Spinner Container (Fixed 18px compact width) -->
<Border Name="PART_SpinnerContainer"
DockPanel.Dock="Right"
Width="18"
Margin="0,1,2,1"
IsVisible="{TemplateBinding ShowButtonSpinner}">
<Grid RowDefinitions="*,*">
<RepeatButton Name="PART_IncreaseButton"
Grid.Row="0"
Theme="{StaticResource M3ButtonSpinnerRepeatButton}"
IsTabStop="False"
Focusable="False"
ToolTip.Tip="Increase">
<Path Data="M 1 4.5 L 4.5 1 L 8 4.5"
Stroke="{DynamicResource M3OnSurfaceVariantBrush}"
StrokeThickness="1.4"
StrokeLineCap="Round"
StrokeJoin="Round"
Width="9" Height="5.5"
HorizontalAlignment="Center"
VerticalAlignment="Center" />
</RepeatButton>
<RepeatButton Name="PART_DecreaseButton"
Grid.Row="1"
Theme="{StaticResource M3ButtonSpinnerRepeatButton}"
IsTabStop="False"
Focusable="False"
ToolTip.Tip="Decrease">
<Path Data="M 1 1 L 4.5 4.5 L 8 1"
Stroke="{DynamicResource M3OnSurfaceVariantBrush}"
StrokeThickness="1.4"
StrokeLineCap="Round"
StrokeJoin="Round"
Width="9" Height="5.5"
HorizontalAlignment="Center"
VerticalAlignment="Center" />
</RepeatButton>
</Grid>
</Border>
<ContentPresenter Name="PART_ContentPresenter"
Content="{TemplateBinding Content}"
ContentTemplate="{TemplateBinding ContentTemplate}"
HorizontalContentAlignment="{TemplateBinding HorizontalContentAlignment}"
VerticalContentAlignment="{TemplateBinding VerticalContentAlignment}"
Padding="{TemplateBinding Padding}" />
</DockPanel>
</Border>
</DataValidationErrors>
</ControlTemplate>
</Setter>
<Style Selector="^:left /template/ Border#PART_SpinnerContainer">
<Setter Property="DockPanel.Dock" Value="Left" />
<Setter Property="Margin" Value="2,1,0,1" />
</Style>
<Style Selector="^:pointerover /template/ Border#PART_SpinnerBorder">
<Setter Property="BorderBrush" Value="{DynamicResource M3OutlineBrush}" />
</Style>
<Style Selector="^:focus-within /template/ Border#PART_SpinnerBorder">
<Setter Property="BorderBrush" Value="{DynamicResource M3PrimaryBrush}" />
</Style>
</ControlTheme>
<!-- M3 Expressive NumericUpDown ControlTheme -->
<ControlTheme x:Key="{x:Type NumericUpDown}" TargetType="NumericUpDown">
<Setter Property="Foreground" Value="{DynamicResource M3OnSurfaceBrush}" />
<Setter Property="Background" Value="{DynamicResource M3SurfaceContainerLowestBrush}" />
<Setter Property="PlaceholderForeground" Value="{DynamicResource M3OnSurfaceVariantBrush}" />
<Setter Property="BorderThickness" Value="1" />
<Setter Property="BorderBrush" Value="{DynamicResource M3OutlineVariantBrush}" />
<Setter Property="MinHeight" Value="26" />
<Setter Property="Height" Value="28" />
<Setter Property="Padding" Value="7,0,2,0" />
<Setter Property="CornerRadius" Value="{StaticResource M3ShapeCornerMedium}" />
<Setter Property="VerticalContentAlignment" Value="Center" />
<Setter Property="HorizontalContentAlignment" Value="Left" />
<Setter Property="FontSize" Value="11.5" />
<Setter Property="ClipToBounds" Value="True" />
<Setter Property="Template">
<ControlTemplate>
<DataValidationErrors>
<ButtonSpinner Name="PART_Spinner"
Background="{TemplateBinding Background}"
BorderThickness="{TemplateBinding BorderThickness}"
BorderBrush="{TemplateBinding BorderBrush}"
CornerRadius="{TemplateBinding CornerRadius}"
IsTabStop="False"
Padding="0"
MinWidth="0"
HorizontalContentAlignment="Stretch"
VerticalContentAlignment="Stretch"
AllowSpin="{TemplateBinding AllowSpin}"
ShowButtonSpinner="{TemplateBinding ShowButtonSpinner}"
ButtonSpinnerLocation="{TemplateBinding ButtonSpinnerLocation}">
<TextBox Name="PART_TextBox"
Background="Transparent"
BorderBrush="Transparent"
BorderThickness="0"
Margin="0"
Padding="{TemplateBinding Padding}"
MinWidth="0"
Foreground="{TemplateBinding Foreground}"
PlaceholderText="{TemplateBinding PlaceholderText}"
PlaceholderForeground="{TemplateBinding PlaceholderForeground}"
IsReadOnly="{TemplateBinding IsReadOnly}"
VerticalContentAlignment="{TemplateBinding VerticalContentAlignment}"
HorizontalContentAlignment="{TemplateBinding HorizontalContentAlignment}"
Text="{TemplateBinding Text}"
TextAlignment="{TemplateBinding TextAlignment}"
AcceptsReturn="False"
TextWrapping="NoWrap"
FontSize="{TemplateBinding FontSize}"
FontWeight="{TemplateBinding FontWeight}"
CornerRadius="0"
InnerLeftContent="{Binding InnerLeftContent, RelativeSource={RelativeSource TemplatedParent}}"
InnerRightContent="{Binding InnerRightContent, RelativeSource={RelativeSource TemplatedParent}}" />
</ButtonSpinner>
</DataValidationErrors>
</ControlTemplate>
</Setter>
<Style Selector="^:pointerover">
<Setter Property="BorderBrush" Value="{DynamicResource M3OutlineBrush}" />
</Style>
<Style Selector="^:focus-within">
<Setter Property="BorderBrush" Value="{DynamicResource M3PrimaryBrush}" />
</Style>
</ControlTheme>
</Styles.Resources>
<!-- Global Application Typography -->
<Style Selector="TextBlock">
<Setter Property="FontFamily" Value="{StaticResource M3FontFamily}" />
</Style>
<!-- M3 NumericUpDown Embedded TextBox & Border Seamless Integration -->
<Style Selector="NumericUpDown /template/ TextBox#PART_TextBox">
<Setter Property="Background" Value="Transparent" />
<Setter Property="BorderBrush" Value="Transparent" />
<Setter Property="BorderThickness" Value="0" />
<Setter Property="CornerRadius" Value="0" />
<Setter Property="Margin" Value="0" />
<Setter Property="SelectionBrush" Value="{DynamicResource M3PrimaryBrush}" />
</Style>
<Style Selector="NumericUpDown /template/ TextBox#PART_TextBox /template/ Border#PART_BorderElement">
<Setter Property="Background" Value="Transparent" />
<Setter Property="BorderBrush" Value="Transparent" />
<Setter Property="BorderThickness" Value="0" />
<Setter Property="CornerRadius" Value="0" />
</Style>
<Style Selector="NumericUpDown /template/ TextBox#PART_TextBox:pointerover /template/ Border#PART_BorderElement">
<Setter Property="Background" Value="Transparent" />
<Setter Property="BorderBrush" Value="Transparent" />
<Setter Property="BorderThickness" Value="0" />
</Style>
<Style Selector="NumericUpDown /template/ TextBox#PART_TextBox:focus /template/ Border#PART_BorderElement">
<Setter Property="Background" Value="Transparent" />
<Setter Property="BorderBrush" Value="Transparent" />
<Setter Property="BorderThickness" Value="0" />
</Style>
<!-- =================================================================== -->
<!-- 1. BUTTONS SUITE (M3 Expressive Pill & Tactile Hierarchy) -->
<!-- =================================================================== -->
<!-- M3 Filled Button (High Emphasis) -->
<Style Selector="Button.m3-filled-btn">
<Setter Property="Background" Value="{DynamicResource M3PrimaryBrush}" />
<Setter Property="Foreground" Value="{DynamicResource M3OnPrimaryBrush}" />
<Setter Property="BorderThickness" Value="0" />
<Setter Property="CornerRadius" Value="{StaticResource M3ShapeCornerFull}" />
<Setter Property="Padding" Value="16,8" />
<Setter Property="FontSize" Value="13" />
<Setter Property="FontWeight" Value="SemiBold" />
<Setter Property="Height" Value="36" />
<Setter Property="Cursor" Value="Hand" />
<Setter Property="HorizontalContentAlignment" Value="Center" />
<Setter Property="VerticalContentAlignment" Value="Center" />
<Setter Property="Transitions">
<Transitions>
<TransformOperationsTransition Property="RenderTransform" Duration="0:0:0.18" Easing="CubicEaseOut" />
<BrushTransition Property="Background" Duration="0:0:0.15" />
</Transitions>
</Setter>
</Style>
<Style Selector="Button.m3-filled-btn:pointerover">
<Setter Property="Background" Value="{DynamicResource WinAccentHoverBrush}" />
<Setter Property="RenderTransform" Value="scale(1.02)" />
</Style>
<Style Selector="Button.m3-filled-btn:pressed">
<Setter Property="RenderTransform" Value="scale(0.97)" />
</Style>
<!-- M3 Filled Tonal Button (Medium Emphasis) -->
<Style Selector="Button.m3-tonal-btn">
<Setter Property="Background" Value="{DynamicResource M3SecondaryContainerBrush}" />
<Setter Property="Foreground" Value="{DynamicResource M3OnSecondaryContainerBrush}" />
<Setter Property="BorderThickness" Value="0" />
<Setter Property="CornerRadius" Value="{StaticResource M3ShapeCornerFull}" />
<Setter Property="Padding" Value="16,7" />
<Setter Property="FontSize" Value="12.5" />
<Setter Property="FontWeight" Value="SemiBold" />
<Setter Property="Height" Value="34" />
<Setter Property="Cursor" Value="Hand" />
<Setter Property="HorizontalContentAlignment" Value="Center" />
<Setter Property="VerticalContentAlignment" Value="Center" />
<Setter Property="Transitions">
<Transitions>
<TransformOperationsTransition Property="RenderTransform" Duration="0:0:0.18" Easing="CubicEaseOut" />
<BrushTransition Property="Background" Duration="0:0:0.15" />
</Transitions>
</Setter>
</Style>
<Style Selector="Button.m3-tonal-btn:pointerover">
<Setter Property="Background" Value="{DynamicResource M3SurfaceContainerHighestBrush}" />
<Setter Property="RenderTransform" Value="scale(1.015)" />
</Style>
<Style Selector="Button.m3-tonal-btn:pressed">
<Setter Property="RenderTransform" Value="scale(0.97)" />
</Style>
<!-- M3 Elevated Button -->
<Style Selector="Button.m3-elevated-btn">
<Setter Property="Background" Value="{DynamicResource M3SurfaceContainerLowBrush}" />
<Setter Property="Foreground" Value="{DynamicResource M3PrimaryBrush}" />
<Setter Property="BorderThickness" Value="0" />
<Setter Property="CornerRadius" Value="{StaticResource M3ShapeCornerFull}" />
<Setter Property="Padding" Value="16,7" />
<Setter Property="FontSize" Value="12.5" />
<Setter Property="FontWeight" Value="SemiBold" />
<Setter Property="Height" Value="34" />
<Setter Property="Cursor" Value="Hand" />
<Setter Property="HorizontalContentAlignment" Value="Center" />
<Setter Property="VerticalContentAlignment" Value="Center" />
<Setter Property="Transitions">
<Transitions>
<TransformOperationsTransition Property="RenderTransform" Duration="0:0:0.18" Easing="CubicEaseOut" />
<BrushTransition Property="Background" Duration="0:0:0.15" />
</Transitions>
</Setter>
</Style>
<Style Selector="Button.m3-elevated-btn:pointerover">
<Setter Property="Background" Value="{DynamicResource M3SurfaceContainerHighBrush}" />
<Setter Property="RenderTransform" Value="scale(1.02)" />
</Style>
<Style Selector="Button.m3-elevated-btn:pressed">
<Setter Property="RenderTransform" Value="scale(0.97)" />
</Style>
<!-- M3 Outlined Button -->
<Style Selector="Button.m3-outlined-btn">
<Setter Property="Background" Value="Transparent" />
<Setter Property="Foreground" Value="{DynamicResource M3PrimaryBrush}" />
<Setter Property="BorderBrush" Value="{DynamicResource M3OutlineVariantBrush}" />
<Setter Property="BorderThickness" Value="1" />
<Setter Property="CornerRadius" Value="{StaticResource M3ShapeCornerFull}" />
<Setter Property="Padding" Value="14,6" />
<Setter Property="FontSize" Value="12.5" />
<Setter Property="FontWeight" Value="Medium" />
<Setter Property="Height" Value="34" />
<Setter Property="Cursor" Value="Hand" />
<Setter Property="HorizontalContentAlignment" Value="Center" />
<Setter Property="VerticalContentAlignment" Value="Center" />
<Setter Property="Transitions">
<Transitions>
<TransformOperationsTransition Property="RenderTransform" Duration="0:0:0.15" Easing="CubicEaseOut" />
<BrushTransition Property="Background" Duration="0:0:0.15" />
<BrushTransition Property="BorderBrush" Duration="0:0:0.15" />
</Transitions>
</Setter>
</Style>
<Style Selector="Button.m3-outlined-btn:pointerover">
<Setter Property="Background" Value="{DynamicResource M3SurfaceContainerLowBrush}" />
<Setter Property="BorderBrush" Value="{DynamicResource M3PrimaryBrush}" />
</Style>
<Style Selector="Button.m3-outlined-btn:pressed">
<Setter Property="RenderTransform" Value="scale(0.97)" />
</Style>
<!-- M3 Text Button -->
<Style Selector="Button.m3-text-btn">
<Setter Property="Background" Value="Transparent" />
<Setter Property="Foreground" Value="{DynamicResource M3PrimaryBrush}" />
<Setter Property="BorderThickness" Value="0" />
<Setter Property="CornerRadius" Value="{StaticResource M3ShapeCornerMedium}" />
<Setter Property="Padding" Value="12,6" />
<Setter Property="FontSize" Value="12.5" />
<Setter Property="FontWeight" Value="SemiBold" />
<Setter Property="Height" Value="32" />
<Setter Property="Cursor" Value="Hand" />
<Setter Property="HorizontalContentAlignment" Value="Center" />
<Setter Property="VerticalContentAlignment" Value="Center" />
<Setter Property="Transitions">
<Transitions>
<BrushTransition Property="Background" Duration="0:0:0.15" />
</Transitions>
</Setter>
</Style>
<Style Selector="Button.m3-text-btn:pointerover">
<Setter Property="Background" Value="{DynamicResource M3SurfaceContainerLowBrush}" />
</Style>
<!-- M3 Header Interactive Item (Brand & Document Title) -->
<Style Selector="Button.m3-header-btn">
<Setter Property="Background" Value="Transparent" />
<Setter Property="Foreground" Value="{DynamicResource M3OnSurfaceBrush}" />
<Setter Property="BorderThickness" Value="0" />
<Setter Property="CornerRadius" Value="{StaticResource M3ShapeCornerMedium}" />
<Setter Property="Padding" Value="6,3" />
<Setter Property="Height" Value="32" />
<Setter Property="Cursor" Value="Hand" />
<Setter Property="HorizontalContentAlignment" Value="Center" />
<Setter Property="VerticalContentAlignment" Value="Center" />
<Setter Property="Transitions">
<Transitions>
<BrushTransition Property="Background" Duration="0:0:0.15" />
<TransformOperationsTransition Property="RenderTransform" Duration="0:0:0.12" Easing="CubicEaseOut" />
</Transitions>
</Setter>
</Style>
<Style Selector="Button.m3-header-btn:pointerover">
<Setter Property="Background" Value="{DynamicResource M3SurfaceContainerHighBrush}" />
<Setter Property="RenderTransform" Value="scale(1.015)" />
</Style>
<Style Selector="Button.m3-header-btn:pressed">
<Setter Property="RenderTransform" Value="scale(0.98)" />
</Style>
<!-- M3 Floating Action Button (Standard FAB) -->
<Style Selector="Button.m3-fab">
<Setter Property="Background" Value="{DynamicResource M3PrimaryContainerBrush}" />
<Setter Property="Foreground" Value="{DynamicResource M3OnPrimaryContainerBrush}" />
<Setter Property="BorderThickness" Value="0" />
<Setter Property="CornerRadius" Value="{StaticResource M3ShapeCornerLarge}" />
<Setter Property="Width" Value="56" />
<Setter Property="Height" Value="56" />
<Setter Property="Padding" Value="0" />
<Setter Property="Cursor" Value="Hand" />
<Setter Property="HorizontalContentAlignment" Value="Center" />
<Setter Property="VerticalContentAlignment" Value="Center" />
<Setter Property="Transitions">
<Transitions>
<TransformOperationsTransition Property="RenderTransform" Duration="0:0:0.2" Easing="CubicEaseOut" />
<BrushTransition Property="Background" Duration="0:0:0.15" />
</Transitions>
</Setter>
</Style>
<Style Selector="Button.m3-fab:pointerover">
<Setter Property="RenderTransform" Value="scale(1.04)" />
</Style>
<Style Selector="Button.m3-fab:pressed">
<Setter Property="RenderTransform" Value="scale(0.95)" />
</Style>
<!-- M3 Extended FAB -->
<Style Selector="Button.m3-fab-extended">
<Setter Property="Background" Value="{DynamicResource M3PrimaryContainerBrush}" />
<Setter Property="Foreground" Value="{DynamicResource M3OnPrimaryContainerBrush}" />
<Setter Property="BorderThickness" Value="0" />
<Setter Property="CornerRadius" Value="{StaticResource M3ShapeCornerFull}" />
<Setter Property="Height" Value="48" />
<Setter Property="Padding" Value="18,10" />
<Setter Property="FontSize" Value="13.5" />
<Setter Property="FontWeight" Value="SemiBold" />
<Setter Property="Cursor" Value="Hand" />
<Setter Property="HorizontalContentAlignment" Value="Center" />
<Setter Property="VerticalContentAlignment" Value="Center" />
<Setter Property="Transitions">
<Transitions>
<TransformOperationsTransition Property="RenderTransform" Duration="0:0:0.2" Easing="CubicEaseOut" />
<BrushTransition Property="Background" Duration="0:0:0.15" />
</Transitions>
</Setter>
</Style>
<Style Selector="Button.m3-fab-extended:pointerover">
<Setter Property="RenderTransform" Value="scale(1.03)" />
</Style>
<Style Selector="Button.m3-fab-extended:pressed">
<Setter Property="RenderTransform" Value="scale(0.96)" />
</Style>
<!-- M3 Circular Icon Button -->
<Style Selector="Button.m3-icon-btn">
<Setter Property="Background" Value="Transparent" />
<Setter Property="Foreground" Value="{DynamicResource M3OnSurfaceVariantBrush}" />
<Setter Property="BorderThickness" Value="0" />
<Setter Property="CornerRadius" Value="{StaticResource M3ShapeCornerFull}" />
<Setter Property="Width" Value="32" />
<Setter Property="Height" Value="32" />
<Setter Property="Padding" Value="0" />
<Setter Property="Cursor" Value="Hand" />
<Setter Property="HorizontalContentAlignment" Value="Center" />
<Setter Property="VerticalContentAlignment" Value="Center" />
<Setter Property="Transitions">
<Transitions>
<BrushTransition Property="Background" Duration="0:0:0.15" />
<TransformOperationsTransition Property="RenderTransform" Duration="0:0:0.12" Easing="CubicEaseOut" />
</Transitions>
</Setter>
</Style>
<Style Selector="Button.m3-icon-btn:pointerover">
<Setter Property="Background" Value="{DynamicResource M3SurfaceContainerHighBrush}" />
<Setter Property="Foreground" Value="{DynamicResource M3OnSurfaceBrush}" />
<Setter Property="RenderTransform" Value="scale(1.06)" />
</Style>
<Style Selector="Button.m3-icon-btn:pressed">
<Setter Property="RenderTransform" Value="scale(0.93)" />
</Style>
<Style Selector="Button.m3-icon-btn.active">
<Setter Property="Background" Value="{DynamicResource M3SecondaryContainerBrush}" />
<Setter Property="Foreground" Value="{DynamicResource M3OnSecondaryContainerBrush}" />
</Style>
<!-- =================================================================== -->
<!-- 2. SEGMENTED BUTTONS & CAPSULES -->
<!-- =================================================================== -->
<!-- M3 Segmented Capsule Container -->
<Style Selector="Border.m3-segmented-container">
<Setter Property="Background" Value="{DynamicResource M3SurfaceContainerLowBrush}" />
<Setter Property="BorderBrush" Value="{DynamicResource M3OutlineVariantBrush}" />
<Setter Property="BorderThickness" Value="1" />
<Setter Property="CornerRadius" Value="{StaticResource M3ShapeCornerFull}" />
<Setter Property="Padding" Value="3" />
</Style>
<!-- M3 Segment Button Item -->
<Style Selector="Button.m3-segment-btn, RadioButton.m3-segment-btn, ToggleButton.m3-segment-btn">
<Setter Property="Background" Value="Transparent" />
<Setter Property="Foreground" Value="{DynamicResource M3OnSurfaceVariantBrush}" />
<Setter Property="BorderThickness" Value="0" />
<Setter Property="CornerRadius" Value="{StaticResource M3ShapeCornerFull}" />
<Setter Property="Padding" Value="12,5" />
<Setter Property="Height" Value="28" />
<Setter Property="FontSize" Value="12" />
<Setter Property="FontWeight" Value="Medium" />
<Setter Property="Cursor" Value="Hand" />
<Setter Property="HorizontalContentAlignment" Value="Center" />
<Setter Property="VerticalContentAlignment" Value="Center" />
<Setter Property="Transitions">
<Transitions>
<BrushTransition Property="Background" Duration="0:0:0.15" />
<BrushTransition Property="Foreground" Duration="0:0:0.15" />
</Transitions>
</Setter>
</Style>
<Style Selector="Button.m3-segment-btn:pointerover, RadioButton.m3-segment-btn:pointerover, ToggleButton.m3-segment-btn:pointerover">
<Setter Property="Background" Value="{DynamicResource M3SurfaceContainerHighBrush}" />
<Setter Property="Foreground" Value="{DynamicResource M3OnSurfaceBrush}" />
</Style>
<Style Selector="Button.m3-segment-btn.active, RadioButton.m3-segment-btn:checked, ToggleButton.m3-segment-btn:checked">
<Setter Property="Background" Value="{DynamicResource M3SecondaryContainerBrush}" />
<Setter Property="Foreground" Value="{DynamicResource M3OnSecondaryContainerBrush}" />
<Setter Property="FontWeight" Value="SemiBold" />
</Style>
<!-- =================================================================== -->
<!-- 3. CHIPS SUITE (M3 Filter, Assist, Suggestion) -->
<!-- =================================================================== -->
<Style Selector="Button.m3-chip, Button.m3-filter-chip, ToggleButton.m3-chip, ToggleButton.m3-filter-chip">
<Setter Property="Background" Value="{DynamicResource M3SurfaceContainerLowBrush}" />
<Setter Property="Foreground" Value="{DynamicResource M3OnSurfaceVariantBrush}" />
<Setter Property="BorderBrush" Value="{DynamicResource M3OutlineVariantBrush}" />
<Setter Property="BorderThickness" Value="1" />
<Setter Property="CornerRadius" Value="{StaticResource M3ShapeCornerSmall}" />
<Setter Property="Padding" Value="12,4" />
<Setter Property="Height" Value="30" />
<Setter Property="FontSize" Value="11.5" />
<Setter Property="FontWeight" Value="Medium" />
<Setter Property="Cursor" Value="Hand" />
<Setter Property="Transitions">
<Transitions>
<BrushTransition Property="Background" Duration="0:0:0.15" />
<BrushTransition Property="Foreground" Duration="0:0:0.15" />
<BrushTransition Property="BorderBrush" Duration="0:0:0.15" />
</Transitions>
</Setter>
</Style>
<Style Selector="Button.m3-chip:pointerover, Button.m3-filter-chip:pointerover, ToggleButton.m3-chip:pointerover, ToggleButton.m3-filter-chip:pointerover">
<Setter Property="Background" Value="{DynamicResource M3SurfaceContainerHighBrush}" />
<Setter Property="Foreground" Value="{DynamicResource M3OnSurfaceBrush}" />
</Style>
<Style Selector="Button.m3-chip.active, Button.m3-filter-chip.active, ToggleButton.m3-chip:checked, ToggleButton.m3-filter-chip:checked">
<Setter Property="Background" Value="{DynamicResource M3SecondaryContainerBrush}" />
<Setter Property="Foreground" Value="{DynamicResource M3OnSecondaryContainerBrush}" />
<Setter Property="BorderBrush" Value="{DynamicResource M3SecondaryContainerBrush}" />
<Setter Property="FontWeight" Value="SemiBold" />
</Style>
<Style Selector="Button.m3-chip.pill, Button.m3-filter-chip.pill, ToggleButton.m3-chip.pill, ToggleButton.m3-filter-chip.pill">
<Setter Property="CornerRadius" Value="{StaticResource M3ShapeCornerFull}" />
</Style>
<!-- M3 Compact Preset Pill Chip (Tactile Studio Presets) -->
<Style Selector="Button.m3-preset-chip">
<Setter Property="Background" Value="{DynamicResource M3SurfaceContainerLowBrush}" />
<Setter Property="Foreground" Value="{DynamicResource M3OnSurfaceBrush}" />
<Setter Property="BorderBrush" Value="{DynamicResource M3OutlineVariantBrush}" />
<Setter Property="BorderThickness" Value="1" />
<Setter Property="CornerRadius" Value="{StaticResource M3ShapeCornerFull}" />
<Setter Property="Padding" Value="8,2,9,2" />
<Setter Property="Height" Value="26" />
<Setter Property="FontSize" Value="10.5" />
<Setter Property="FontWeight" Value="Medium" />
<Setter Property="Cursor" Value="Hand" />
<Setter Property="HorizontalContentAlignment" Value="Center" />
<Setter Property="VerticalContentAlignment" Value="Center" />
<Setter Property="Transitions">
<Transitions>
<TransformOperationsTransition Property="RenderTransform" Duration="0:0:0.12" Easing="CubicEaseOut" />
<BrushTransition Property="Background" Duration="0:0:0.12" />
<BrushTransition Property="Foreground" Duration="0:0:0.12" />
<BrushTransition Property="BorderBrush" Duration="0:0:0.12" />
</Transitions>
</Setter>
</Style>
<Style Selector="Button.m3-preset-chip:pointerover">
<Setter Property="Background" Value="{DynamicResource M3SurfaceContainerHighBrush}" />
<Setter Property="BorderBrush" Value="{DynamicResource M3PrimaryBrush}" />
<Setter Property="RenderTransform" Value="scale(1.03)" />
</Style>
<Style Selector="Button.m3-preset-chip:pressed">
<Setter Property="RenderTransform" Value="scale(0.96)" />
</Style>
<Style Selector="Button.m3-preset-chip.active">
<Setter Property="Background" Value="{DynamicResource M3SecondaryContainerBrush}" />
<Setter Property="Foreground" Value="{DynamicResource M3OnSecondaryContainerBrush}" />
<Setter Property="BorderBrush" Value="{DynamicResource M3SecondaryContainerBrush}" />
<Setter Property="FontWeight" Value="SemiBold" />
</Style>
<!-- M3 Expressive Inspector Section Header Toggle Button (Full-width expandable category bar) -->
<Style Selector="Button.m3-section-toggle">
<Setter Property="Background" Value="Transparent" />
<Setter Property="Foreground" Value="{DynamicResource M3OnSurfaceBrush}" />
<Setter Property="BorderThickness" Value="0" />
<Setter Property="Padding" Value="6,4" />
<Setter Property="CornerRadius" Value="{StaticResource M3ShapeCornerSmall}" />
<Setter Property="Cursor" Value="Hand" />
<Setter Property="HorizontalAlignment" Value="Stretch" />
<Setter Property="HorizontalContentAlignment" Value="Stretch" />
<Setter Property="VerticalAlignment" Value="Center" />
<Setter Property="Transitions">
<Transitions>
<BrushTransition Property="Background" Duration="0:0:0.12" />
</Transitions>
</Setter>
</Style>
<Style Selector="Button.m3-section-toggle:pointerover">
<Setter Property="Background" Value="{DynamicResource M3SurfaceContainerHighBrush}" />
</Style>
<Style Selector="Button.m3-section-toggle:pressed">
<Setter Property="Background" Value="{DynamicResource M3SurfaceContainerHighestBrush}" />
</Style>
<Style Selector="Button.m3-section-toggle TextBlock.inspector-label">
<Setter Property="Margin" Value="0" />
<Setter Property="FontWeight" Value="SemiBold" />
<Setter Property="Foreground" Value="{DynamicResource M3OnSurfaceBrush}" />
</Style>
<Style Selector="Button.m3-section-toggle:pointerover TextBlock.inspector-label">
<Setter Property="Foreground" Value="{DynamicResource M3PrimaryBrush}" />
</Style>
<Style Selector="Button.m3-section-toggle:pointerover materialIcons|MaterialIcon">
<Setter Property="Foreground" Value="{DynamicResource M3PrimaryBrush}" />
</Style>
<!-- =================================================================== -->
<!-- 4. CARDS SUITE (Elevated, Filled, Outlined, Interactive Action Wrappers) -->
<!-- =================================================================== -->
<!-- Card Action Button Wrapper (Zero-leak transparent interactive container for elevated cards and page sheets) -->
<Style Selector="Button.card-action-wrapper, Button.pdf-tool-btn, Button.template-card-btn, Button.workflow-banner-btn, Button.card-btn, Button.thumbnail-item-btn">
<Setter Property="Background" Value="Transparent" />
<Setter Property="BorderBrush" Value="Transparent" />
<Setter Property="BorderThickness" Value="0" />
<Setter Property="Padding" Value="0,3,0,1" />
<Setter Property="ClipToBounds" Value="False" />
<Setter Property="Cursor" Value="Hand" />
<Setter Property="HorizontalAlignment" Value="Stretch" />
<Setter Property="HorizontalContentAlignment" Value="Stretch" />
<Setter Property="VerticalAlignment" Value="Stretch" />
<Setter Property="VerticalContentAlignment" Value="Stretch" />
</Style>
<Style Selector="Button.card-action-wrapper /template/ ContentPresenter#PART_ContentPresenter,
Button.pdf-tool-btn /template/ ContentPresenter#PART_ContentPresenter,
Button.template-card-btn /template/ ContentPresenter#PART_ContentPresenter,
Button.workflow-banner-btn /template/ ContentPresenter#PART_ContentPresenter,
Button.card-btn /template/ ContentPresenter#PART_ContentPresenter,
Button.thumbnail-item-btn /template/ ContentPresenter#PART_ContentPresenter">
<Setter Property="ClipToBounds" Value="False" />
</Style>
<Style Selector="Button.card-action-wrapper:pointerover /template/ ContentPresenter#PART_ContentPresenter,
Button.pdf-tool-btn:pointerover /template/ ContentPresenter#PART_ContentPresenter,
Button.template-card-btn:pointerover /template/ ContentPresenter#PART_ContentPresenter,
Button.workflow-banner-btn:pointerover /template/ ContentPresenter#PART_ContentPresenter,
Button.card-btn:pointerover /template/ ContentPresenter#PART_ContentPresenter,
Button.thumbnail-item-btn:pointerover /template/ ContentPresenter#PART_ContentPresenter">
<Setter Property="Background" Value="Transparent" />
<Setter Property="BorderBrush" Value="Transparent" />
</Style>
<Style Selector="Button.card-action-wrapper:pressed /template/ ContentPresenter#PART_ContentPresenter,
Button.pdf-tool-btn:pressed /template/ ContentPresenter#PART_ContentPresenter,
Button.template-card-btn:pressed /template/ ContentPresenter#PART_ContentPresenter,
Button.workflow-banner-btn:pressed /template/ ContentPresenter#PART_ContentPresenter,
Button.card-btn:pressed /template/ ContentPresenter#PART_ContentPresenter,
Button.thumbnail-item-btn:pressed /template/ ContentPresenter#PART_ContentPresenter">
<Setter Property="Background" Value="Transparent" />
<Setter Property="BorderBrush" Value="Transparent" />
</Style>
<Style Selector="Border.m3-card-elevated">
<Setter Property="Background" Value="{DynamicResource M3SurfaceContainerLowestBrush}" />
<Setter Property="CornerRadius" Value="{StaticResource M3ShapeCornerLarge}" />
<Setter Property="BoxShadow" Value="{StaticResource M3ElevationLevel1}" />
<Setter Property="Transitions">
<Transitions>
<TransformOperationsTransition Property="RenderTransform" Duration="0:0:0.2" Easing="CubicEaseOut" />
<BoxShadowsTransition Property="BoxShadow" Duration="0:0:0.2" Easing="CubicEaseOut" />
<BrushTransition Property="BorderBrush" Duration="0:0:0.18" />
</Transitions>
</Setter>
</Style>
<Style Selector="Border.m3-card-elevated:pointerover">
<Setter Property="RenderTransform" Value="translateY(-2px)" />
<Setter Property="BoxShadow" Value="{StaticResource M3ElevationLevel2}" />
<Setter Property="BorderBrush" Value="{DynamicResource M3PrimaryBrush}" />
</Style>
<Style Selector="Border.m3-card-elevated:pressed">
<Setter Property="RenderTransform" Value="scale(0.99)" />
<Setter Property="BoxShadow" Value="{StaticResource M3ElevationLevel1}" />
</Style>
<Style Selector="Border.m3-card-filled">
<Setter Property="Background" Value="{DynamicResource M3SurfaceContainerHighBrush}" />
<Setter Property="CornerRadius" Value="{StaticResource M3ShapeCornerLarge}" />
<Setter Property="BorderThickness" Value="0" />
</Style>
<Style Selector="Border.m3-card-outlined">
<Setter Property="Background" Value="{DynamicResource M3SurfaceContainerLowestBrush}" />
<Setter Property="BorderBrush" Value="{DynamicResource M3OutlineVariantBrush}" />
<Setter Property="BorderThickness" Value="1" />
<Setter Property="CornerRadius" Value="{StaticResource M3ShapeCornerLarge}" />
<Setter Property="Transitions">
<Transitions>
<BrushTransition Property="BorderBrush" Duration="0:0:0.18" />
<TransformOperationsTransition Property="RenderTransform" Duration="0:0:0.2" Easing="CubicEaseOut" />
<BoxShadowsTransition Property="BoxShadow" Duration="0:0:0.2" Easing="CubicEaseOut" />
</Transitions>
</Setter>
</Style>
<Style Selector="Border.m3-card-outlined:pointerover">
<Setter Property="BorderBrush" Value="{DynamicResource M3PrimaryBrush}" />
<Setter Property="RenderTransform" Value="translateY(-2px)" />
<Setter Property="BoxShadow" Value="{StaticResource M3ElevationLevel1}" />
</Style>
<Style Selector="Border.m3-card-outlined:pressed">
<Setter Property="RenderTransform" Value="scale(0.99)" />
</Style>
<!-- =================================================================== -->
<!-- 5. INPUTS & FORM CONTROLS -->
<!-- =================================================================== -->
<Style Selector="TextBox.m3-outlined">
<Setter Property="Background" Value="{DynamicResource M3SurfaceContainerLowestBrush}" />
<Setter Property="Foreground" Value="{DynamicResource M3OnSurfaceBrush}" />
<Setter Property="BorderBrush" Value="{DynamicResource M3OutlineVariantBrush}" />
<Setter Property="BorderThickness" Value="1" />
<Setter Property="CornerRadius" Value="{StaticResource M3ShapeCornerMedium}" />
<Setter Property="Padding" Value="10,6" />
<Setter Property="MinHeight" Value="32" />
<Setter Property="VerticalContentAlignment" Value="Center" />
<Setter Property="Transitions">
<Transitions>
<BrushTransition Property="BorderBrush" Duration="0:0:0.15" />
</Transitions>
</Setter>
</Style>
<Style Selector="TextBox.m3-outlined:focus">
<Setter Property="BorderBrush" Value="{DynamicResource M3PrimaryBrush}" />
<Setter Property="BorderThickness" Value="2" />
</Style>
<!-- M3 Resizable Editor Container (Multi-line text editor with tactile drag resize grip) -->
<Style Selector="Border.m3-resizable-editor">
<Setter Property="Background" Value="{DynamicResource M3SurfaceContainerLowestBrush}" />
<Setter Property="BorderBrush" Value="{DynamicResource M3OutlineVariantBrush}" />
<Setter Property="BorderThickness" Value="1" />
<Setter Property="CornerRadius" Value="{StaticResource M3ShapeCornerMedium}" />
<Setter Property="ClipToBounds" Value="True" />
<Setter Property="Transitions">
<Transitions>
<BrushTransition Property="BorderBrush" Duration="0:0:0.15" />
</Transitions>
</Setter>
</Style>
<Style Selector="Border.m3-resizable-editor:focus-within">
<Setter Property="BorderBrush" Value="{DynamicResource M3PrimaryBrush}" />
</Style>
<Style Selector="Border.m3-resizable-editor:pointerover">
<Setter Property="BorderBrush" Value="{DynamicResource M3OutlineBrush}" />
</Style>
<!-- M3 Tactile Bottom Resize Grip -->
<Style Selector="Border.m3-resize-grip">
<Setter Property="Background" Value="{DynamicResource M3SurfaceContainerLowBrush}" />
<Setter Property="Cursor" Value="SizeNorthSouth" />
<Setter Property="Transitions">
<Transitions>
<BrushTransition Property="Background" Duration="0:0:0.12" />
</Transitions>
</Setter>
</Style>
<Style Selector="Border.m3-resize-grip:pointerover">
<Setter Property="Background" Value="{DynamicResource M3SurfaceContainerHighBrush}" />
</Style>
<Style Selector="Border.m3-grip-pill">
<Setter Property="Background" Value="{DynamicResource M3OutlineVariantBrush}" />
<Setter Property="Transitions">
<Transitions>
<BrushTransition Property="Background" Duration="0:0:0.12" />
</Transitions>
</Setter>
</Style>
<Style Selector="Border.m3-resize-grip:pointerover Border.m3-grip-pill">
<Setter Property="Background" Value="{DynamicResource M3PrimaryBrush}" />
</Style>
<!-- M3 Search Bar (Full Pill) -->
<Style Selector="TextBox.m3-search">
<Setter Property="Background" Value="{DynamicResource M3SurfaceContainerHighBrush}" />
<Setter Property="Foreground" Value="{DynamicResource M3OnSurfaceBrush}" />
<Setter Property="BorderThickness" Value="0" />
<Setter Property="CornerRadius" Value="{StaticResource M3ShapeCornerFull}" />
<Setter Property="Padding" Value="14,6" />
<Setter Property="MinHeight" Value="34" />
<Setter Property="VerticalContentAlignment" Value="Center" />
<Setter Property="Transitions">
<Transitions>
<BrushTransition Property="Background" Duration="0:0:0.15" />
</Transitions>
</Setter>
</Style>
<Style Selector="TextBox.m3-search:focus">
<Setter Property="Background" Value="{DynamicResource M3SurfaceContainerHighestBrush}" />
</Style>
<!-- =================================================================== -->
<!-- 6. DIALOGS, MODALS & FLOATING HUDS -->
<!-- =================================================================== -->
<!-- M3 Modal Scrim (Full-bleed edge-to-edge overlay with smooth fade) -->
<Style Selector="Grid.m3-dialog-scrim">
<Setter Property="Background" Value="{DynamicResource M3ScrimBrush}" />
<Setter Property="HorizontalAlignment" Value="Stretch" />
<Setter Property="VerticalAlignment" Value="Stretch" />
<Setter Property="Transitions">
<Transitions>
<BrushTransition Property="Background" Duration="0:0:0.2" />
</Transitions>
</Setter>
</Style>
<Style Selector="Border.m3-dialog-scrim">
<Setter Property="Background" Value="{DynamicResource M3ScrimBrush}" />
<Setter Property="HorizontalAlignment" Value="Stretch" />
<Setter Property="VerticalAlignment" Value="Stretch" />
<Setter Property="Transitions">
<Transitions>
<BrushTransition Property="Background" Duration="0:0:0.2" />
</Transitions>
</Setter>
</Style>
<Style Selector="Border.m3-dialog-card">
<Setter Property="Background" Value="{DynamicResource M3SurfaceContainerHighBrush}" />
<Setter Property="CornerRadius" Value="{StaticResource M3ShapeCornerExtraLarge}" />
<Setter Property="BoxShadow" Value="{StaticResource M3ElevationModalDialog}" />
</Style>
<Style Selector="Border.m3-floating-hud">
<Setter Property="Background" Value="{DynamicResource M3SurfaceContainerHighBrush}" />
<Setter Property="CornerRadius" Value="{StaticResource M3ShapeCornerFull}" />
<Setter Property="BoxShadow" Value="{StaticResource M3ElevationLevel3}" />
<Setter Property="Padding" Value="8,4" />
</Style>
<!-- M3 Expressive Badges -->
<Style Selector="Border.m3-badge">
<Setter Property="Background" Value="{DynamicResource M3PrimaryContainerBrush}" />
<Setter Property="CornerRadius" Value="{StaticResource M3ShapeCornerFull}" />
<Setter Property="Padding" Value="8,2" />
</Style>
<Style Selector="Border.m3-badge-tertiary">
<Setter Property="Background" Value="{DynamicResource M3TertiaryContainerBrush}" />
<Setter Property="CornerRadius" Value="{StaticResource M3ShapeCornerFull}" />
<Setter Property="Padding" Value="8,2" />
</Style>
<!-- =================================================================== -->
<!-- 8. M3 TOOL SIDEBAR SUITE (Progress, Alerts, Dropzones, Cards) -->
<!-- =================================================================== -->
<!-- M3 Expressive Tactile Progress Bar -->
<Style Selector="ProgressBar, ProgressBar.m3-progress">
<Setter Property="Height" Value="8" />
<Setter Property="MinHeight" Value="8" />
<Setter Property="CornerRadius" Value="{StaticResource M3ShapeCornerFull}" />
<Setter Property="Foreground" Value="{DynamicResource M3PrimaryBrush}" />
<Setter Property="Background" Value="{DynamicResource M3SurfaceContainerHighestBrush}" />
<Setter Property="Transitions">
<Transitions>
<DoubleTransition Property="Value" Duration="0:0:0.25" Easing="CubicEaseOut" />
</Transitions>
</Setter>
</Style>
<!-- M3 Tool Alert Banners -->
<Style Selector="Border.m3-tool-alert-error">
<Setter Property="Background" Value="{DynamicResource M3ErrorContainerBrush}" />
<Setter Property="BorderBrush" Value="{DynamicResource M3ErrorBrush}" />
<Setter Property="BorderThickness" Value="1" />
<Setter Property="CornerRadius" Value="{StaticResource M3ShapeCornerMedium}" />
<Setter Property="Padding" Value="14,12" />
<Setter Property="BoxShadow" Value="{StaticResource M3ElevationLevel1}" />
</Style>
<Style Selector="Border.m3-tool-alert-success">
<Setter Property="Background" Value="{DynamicResource M3SuccessContainerBrush}" />
<Setter Property="BorderBrush" Value="{DynamicResource M3SuccessBrush}" />
<Setter Property="BorderThickness" Value="1" />
<Setter Property="CornerRadius" Value="{StaticResource M3ShapeCornerLarge}" />
<Setter Property="Padding" Value="16,14" />
<Setter Property="BoxShadow" Value="{StaticResource M3ElevationLevel1}" />
</Style>
<Style Selector="Border.m3-tool-alert-info">
<Setter Property="Background" Value="{DynamicResource M3PrimaryContainerBrush}" />
<Setter Property="BorderBrush" Value="{DynamicResource M3PrimaryBrush}" />
<Setter Property="BorderThickness" Value="1" />
<Setter Property="CornerRadius" Value="{StaticResource M3ShapeCornerMedium}" />
<Setter Property="Padding" Value="14,12" />
<Setter Property="BoxShadow" Value="{StaticResource M3ElevationLevel1}" />
</Style>
<!-- M3 Tool Dropzone & Document Selection -->
<Style Selector="Border.m3-tool-dropzone">
<Setter Property="Background" Value="{DynamicResource M3SurfaceContainerLowestBrush}" />
<Setter Property="BorderBrush" Value="{DynamicResource M3OutlineVariantBrush}" />
<Setter Property="BorderThickness" Value="2" />
<Setter Property="CornerRadius" Value="{StaticResource M3ShapeCornerLarge}" />
<Setter Property="Padding" Value="20,24" />
<Setter Property="BoxShadow" Value="{StaticResource M3ElevationLevel1}" />
<Setter Property="Transitions">
<Transitions>
<BrushTransition Property="BorderBrush" Duration="0:0:0.18" />
<BoxShadowsTransition Property="BoxShadow" Duration="0:0:0.18" />
</Transitions>
</Setter>
</Style>
<Style Selector="Border.m3-tool-dropzone:pointerover">
<Setter Property="BorderBrush" Value="{DynamicResource M3PrimaryBrush}" />
<Setter Property="BoxShadow" Value="{StaticResource M3ElevationLevel2}" />
</Style>
<!-- M3 Tool Document Card -->
<Style Selector="Border.m3-tool-doc-card">
<Setter Property="Background" Value="{DynamicResource M3SurfaceContainerLowestBrush}" />
<Setter Property="BorderBrush" Value="{DynamicResource M3OutlineVariantBrush}" />
<Setter Property="BorderThickness" Value="1" />
<Setter Property="CornerRadius" Value="{StaticResource M3ShapeCornerMedium}" />
<Setter Property="Padding" Value="12,10" />
<Setter Property="BoxShadow" Value="{StaticResource M3ElevationLevel1}" />
<Setter Property="Transitions">
<Transitions>
<BrushTransition Property="BorderBrush" Duration="0:0:0.15" />
</Transitions>
</Setter>
</Style>
<Style Selector="Border.m3-tool-doc-card:pointerover">
<Setter Property="BorderBrush" Value="{DynamicResource M3PrimaryBrush}" />
</Style>
<!-- M3 Empty State Card -->
<Style Selector="Border.m3-empty-state">
<Setter Property="Background" Value="{DynamicResource M3SurfaceContainerLowestBrush}" />
<Setter Property="BorderBrush" Value="{DynamicResource M3OutlineVariantBrush}" />
<Setter Property="BorderThickness" Value="1" />
<Setter Property="CornerRadius" Value="{StaticResource M3ShapeCornerLarge}" />
<Setter Property="Padding" Value="24,20" />
</Style>
</Styles>