<?xml version="1.0" encoding="utf-8"?>
<resources>

    <!--========-->
    <!--Toolbars-->
    <!--========-->

    <style name="Theme.ActionBar.Dark.DayNight" parent="@style/ThemeOverlay.MaterialComponents.Dark.ActionBar">
        <item name="popupTheme">@style/ThemeOverlay.MaterialComponents.Light</item>
    </style>

    <!--====-->
    <!--Tabs-->
    <!--====-->

    <style name="CustomActionModeStyle" parent="Base.Widget.AppCompat.ActionMode">
        <item name="android:statusBarColor">@android:color/transparent</item>
        <item name="background">@drawable/action_mode_bg</item>
    </style>

    <!--===========-->
    <!--AlertDialog-->
    <!--===========-->

    <!--===============-->
    <!--Text Appearance-->
    <!--===============-->
    <style name="TextAppearance" parent="@android:style/TextAppearance">
        <item name="android:textColor">?android:attr/textColorPrimary</item>
    </style>

    <style name="TextAppearance.Regular">
        <item name="android:fontFamily">sans-serif</item>
    </style>

    <style name="TextAppearance.Regular.Body1">
        <item name="android:textSize">14sp</item>
    </style>

    <style name="TextAppearance.Regular.Body1.Bold">
        <item name="android:textStyle">bold</item>
    </style>

    <style name="TextAppearance.Regular.Body1.SemiBold">
        <item name="android:fontFamily">sans-serif-medium</item>
    </style>

    <style name="TextAppearance.Regular.Body1.Light">
        <item name="android:textColor">?android:attr/textColorPrimary</item>
    </style>

    <style name="TextAppearance.Regular.Body1.Secondary">
        <item name="android:textColor">?android:attr/textColorSecondary</item>
    </style>

    <style name="TextAppearance.Regular.Caption">
        <item name="android:textSize">12sp</item>
    </style>

    <style name="TextAppearance.Regular.Caption.Light">
        <item name="android:textColor">?android:attr/textColorPrimary</item>
    </style>

    <style name="TextAppearance.Regular.Caption.Hint">
        <item name="android:textColor">?android:attr/textColorHint</item>
    </style>

    <style name="TextAppearance.Regular.SubHeading">
        <item name="android:textSize">16sp</item>
    </style>

    <style name="TextAppearance.Regular.SubHeading.Secondary">
        <item name="android:textColor">?android:attr/textColorSecondary</item>
    </style>

    <style name="TextAppearance.Regular.SubHeading.Light">
        <item name="android:textColor">?android:attr/textColorPrimary</item>
    </style>

    <style name="TextAppearance.Regular.SubHeading.Light.Bold">
        <item name="android:textStyle">bold</item>
    </style>

    <style name="TextAppearance.Medium">
        <item name="android:fontFamily">sans-serif-medium</item>
    </style>

    <style name="TextAppearance.Medium.Body2">
        <item name="android:textSize">14sp</item>
    </style>

    <style name="TextAppearance.Medium.Body2.Hint">
        <item name="android:textColor">?android:attr/textColorHint</item>
    </style>

    <style name="TextAppearance.Widget.Tab" parent="TextAppearance.MaterialComponents.Button">
        <item name="android:textAllCaps">false</item>
        <item name="android:letterSpacing">0</item>
    </style>

    <!--=======-->
    <!--Widgets-->
    <!--=======-->
    <style name="Theme.Widget" />

    <style name="Theme.Widget.FAB" parent="@style/Widget.MaterialComponents.ExtendedFloatingActionButton.Icon">
        <item name="android:layout_height">wrap_content</item>
        <item name="android:layout_width">wrap_content</item>
        <item name="fabCustomSize">@dimen/fab_size</item>
        <item name="android:minWidth">@dimen/fab_size</item>
        <item name="android:layout_gravity">bottom|end</item>
        <item name="android:layout_margin">@dimen/fab_margin</item>
        <item name="android:scaleType">fitCenter</item>
        <item name="layout_anchorGravity">bottom|right|end</item>
        <item name="tint">?attr/colorOnAccent</item>
        <item name="backgroundTint">?attr/colorAccent</item>
        <item name="android:tint">?attr/colorOnAccent</item>
        <item name="iconTint">?attr/colorOnAccent</item>
        <item name="textAllCaps">false</item>
        <item name="android:textColor">?attr/colorOnAccent</item>
    </style>

    <style name="Theme.Widget.CardView" parent="Widget.MaterialComponents.CardView">
        <item name="android:layout_width">match_parent</item>
        <item name="android:layout_height">wrap_content</item>
        <item name="android:padding">@dimen/material_component_cards_top_and_bottom_padding</item>
        <item name="android:layout_marginTop">@dimen/material_component_cards_space_between_cards
        </item>
        <item name="android:layout_marginBottom">
            @dimen/material_component_cards_space_between_cards
        </item>
        <item name="android:layout_marginStart">
            @dimen/material_component_cards_space_between_cards
        </item>
        <item name="android:layout_marginEnd">@dimen/material_component_cards_space_between_cards
        </item>
        <item name="cardCornerRadius">@dimen/rounded_radius</item>
        <item name="cardBackgroundColor">?md_background_color</item>
        <item name="cardElevation">4dp</item>
    </style>

    <style name="Theme.Widget.CardView.Item">
        <item name="android:layout_marginTop">@dimen/space_between_cards</item>
        <item name="android:layout_marginBottom">@dimen/space_between_cards</item>
    </style>

    <style name="Theme.Widget.GridView">
        <item name="android:smoothScrollbar">true</item>
        <item name="android:numColumns">auto_fit</item>
        <item name="android:stretchMode">columnWidth</item>
        <item name="android:scrollbarStyle">outsideOverlay</item>
    </style>

    <style name="Theme.Widget.GridView.Catalogue">
        <item name="android:gravity">top|left</item>
        <item name="android:smoothScrollbar">true</item>
        <item name="android:cacheColorHint">?android:attr/textColorHint</item>
        <item name="android:fastScrollEnabled">true</item>
        <item name="android:horizontalSpacing">0dp</item>
        <item name="android:verticalSpacing">0dp</item>
    </style>


    <style name="Theme.Widget.SpinnerItem" parent="Widget.AppCompat.DropDownItem.Spinner">
        <item name="android:textColor">?android:textColorPrimary</item>
        <item name="android:background">@drawable/list_item_selector</item>
    </style>

    <style name="FloatingTextView" parent="TextAppearance.AppCompat">
        <item name="android:paddingStart">12dp</item>
        <item name="android:paddingEnd">12dp</item>
        <item name="android:paddingTop">8dp</item>
        <item name="android:paddingBottom">8dp</item>
        <item name="android:layout_height">wrap_content</item>
        <item name="android:layout_width">wrap_content</item>
        <item name="android:background">@drawable/bubble_drawable</item>
        <item name="android:textColor">?actionBarTintColor</item>
        <item name="android:textSize">15sp</item>
        <item name="android:elevation">5dp</item>
    </style>

    <!-- set the rounded drawable as background to your bottom sheet -->

    <style name="BottomSheetDialogTheme" parent="@style/Theme.MaterialComponents.BottomSheetDialog">
        <item name="android:windowIsFloating">false</item>
        <item name="android:colorBackground">@android:color/transparent</item>
        <item name="android:statusBarColor">@android:color/transparent</item>
        <item name="enableEdgeToEdge">true</item>
    </style>

    <style name="OverflowDialogTheme" parent="BottomSheetDialogTheme">
        <item name="android:windowAnimationStyle">@style/Theme.Widget.Animation.DropFromAbove</item>
    </style>

    <style name="Theme.Widget.Animation.DropFromAbove" parent="android:Animation">
        <item name="android:windowEnterAnimation">@anim/fade_in_grow_from_top</item>
        <item name="android:windowExitAnimation">@anim/fade_out_short</item>
    </style>

    <style name="Theme.Widget.TextInputLayout.OutlinedBox.Dense" parent="Widget.MaterialComponents.TextInputLayout.OutlinedBox.Dense">
        <item name="boxStrokeColor">@color/text_input_stroke</item>
        <item name="hintTextColor">?colorAccent</item>
        <item name="android:textColorHint">?android:attr/textColorHint</item>
    </style>

    <!--=================-->
    <!--Widgets.TabLayout-->
    <!--=================-->
    <style name="Theme.Widget.Tabs" parent="Widget.MaterialComponents.TabLayout.Colored">
        <item name="tabGravity">center</item>
        <item name="tabIndicator">@drawable/tab_indicator</item>
        <item name="tabIndicatorColor">?attr/colorAccent</item>
        <item name="tabTextColor">@color/tabs_selector</item>
        <item name="tabRippleColor">@color/rippleColor</item>
        <item name="tabIndicatorFullWidth">false</item>
        <item name="tabInlineLabel">true</item>
        <item name="tabMinWidth">75dp</item>
        <item name="tabMode">scrollable</item>
        <item name="tabTextAppearance">@style/TextAppearance.Widget.Tab</item>
    </style>

    <style name="Theme.Widget.Tabs.Highlight" parent="Theme.Widget.Tabs">
        <item name="android:background">@android:color/transparent</item>
        <item name="tabIndicatorGravity">center</item>
        <item name="tabTextColor">@color/tabs_selector_alt</item>
        <item name="tabRippleColor">@android:color/transparent</item>
        <item name="tabIndicator">@drawable/tab_highlight_indicator</item>
        <item name="tabIndicatorColor">?tabHighlightBackground</item>
        <item name="tabMaxWidth">0dp</item>
        <item name="tabMode">fixed</item>
        <item name="tabIndicatorAnimationMode">elastic</item>
        <item name="tabIndicatorFullWidth">true</item>
    </style>

    <!--==============-->
    <!--Widgets.Button-->
    <!--==============-->
    <style name="Theme.Widget.Button" parent="Widget.AppCompat.Button" />

    <style name="Theme.Widget.Button.Colored" parent="Widget.MaterialComponents.Button">
        <item name="backgroundTint">?attr/colorAccent</item>
    </style>

    <style name="Theme.Widget.Button.Borderless" parent="Widget.MaterialComponents.Button.TextButton">
        <item name="android:textAllCaps">false</item>
        <item name="android:textColor">?attr/colorAccent</item>
        <item name="rippleColor">@color/fullRippleColor</item>
    </style>

    <style name="Theme.Widget.Button.OutlinedButtonAccent" parent="Widget.MaterialComponents.Button.OutlinedButton">
        <item name="strokeColor">@android:color/transparent</item>
        <item name="backgroundTint">@color/ext_bg_selector</item>
        <item name="android:textColor">@color/ext_button_text_selector</item>
        <item name="rippleColor">@color/fullRippleColor</item>
    </style>


    <style name="Theme.Widget.Button.Borderless.Small">
        <item name="android:minHeight">48dip</item>
        <item name="android:minWidth">48dip</item>
    </style>

    <style name="Theme.Widget.Button.RoundedOutline" parent="Widget.MaterialComponents.Button.OutlinedButton.Icon">
        <item name="android:layout_width">wrap_content</item>
        <item name="android:textAllCaps">false</item>
        <item name="android:letterSpacing">0.0</item>
        <item name="android:layout_height">40dp</item>
        <item name="iconTint">?colorAccent</item>
        <item name="rippleColor">@color/fullRippleColor</item>
        <item name="android:textColor">?android:attr/textColorPrimary</item>
        <item name="cornerRadius">20dp</item>
    </style>

    <style name="Theme.Widget.Button.Primary" parent="Widget.MaterialComponents.Button">
        <item name="android:textAllCaps">false</item>
        <item name="backgroundTint">@color/mtrl_btn_bg_selector</item>
        <item name="android:textColor">@color/primary_button_text_color_selector</item>
        <item name="android:letterSpacing">0.0</item>
    </style>

    <style name="Theme.Widget.Button.TextButton" parent="Widget.MaterialComponents.Button.TextButton">
        <item name="android:textAllCaps">false</item>
        <item name="android:letterSpacing">0.0</item>
        <item name="android:textColor">?colorAccent</item>
    </style>

    <style name="Theme.Widget.ImageBorderless" parent="Widget.AppCompat.ImageButton">
        <item name="android:background">?selectableItemBackgroundBorderless</item>
        <item name="android:tint">?colorAccent</item>
        <item name="rippleColor">@color/fullRippleColor</item>
    </style>

    <style name="Theme.Widget.CustomImageButton">
        <item name="android:background">@drawable/round_ripple</item>
        <item name="android:clickable">true</item>
        <item name="android:focusable">true</item>
        <item name="android:tint">?colorAccent</item>
    </style>


    <!--===-->
    <!--OLD-->
    <!--===-->

    <style name="FilePickerTheme" parent="NNF_BaseTheme.Light">
        <item name="colorPrimary">@color/colorPrimary</item>
        <item name="colorPrimaryDark">@color/colorPrimaryDark</item>
        <item name="colorAccent">@color/colorAccent</item>
        <item name="colorButtonNormal">@color/colorPrimary</item>
        <item name="android:textSize">14sp</item>

        <item name="alertDialogTheme">@style/FilePickerAlertDialogTheme</item>

        <item name="nnf_toolbarTheme">@style/ThemeOverlay.AppCompat.Dark.ActionBar</item>
    </style>

    <style name="FilePickerAlertDialogTheme" parent="Theme.AppCompat.Light.Dialog.Alert"></style>

</resources>
