<?xml version='1.0' encoding='utf-8'?>
<resources xmlns:tools="http://schemas.android.com/tools">

    <style name="Theme.Main.Light" parent="Theme.Material3.Light.NoActionBar">
        <item name="colorPrimary">@color/md_theme_l_primary</item>
        <item name="colorOnPrimary">@color/md_theme_l_onPrimary</item>
        <item name="colorPrimaryContainer">@color/md_theme_l_primaryContainer</item>
        <item name="colorOnPrimaryContainer">@color/md_theme_l_onPrimaryContainer</item>
        <item name="colorSecondary">@color/md_theme_l_secondary</item>
        <item name="colorOnSecondary">@color/md_theme_l_onSecondary</item>
        <item name="colorSecondaryContainer">@color/md_theme_l_secondaryContainer</item>
        <item name="colorOnSecondaryContainer">@color/md_theme_l_onSecondaryContainer</item>
        <item name="colorTertiary">@color/md_theme_l_tertiary</item>
        <item name="colorOnTertiary">@color/md_theme_l_onTertiary</item>
        <item name="colorTertiaryContainer">@color/md_theme_l_tertiaryContainer</item>
        <item name="colorOnTertiaryContainer">@color/md_theme_l_onTertiaryContainer</item>
        <item name="colorError">@color/md_theme_l_error</item>
        <item name="colorOnError">@color/md_theme_l_onError</item>
        <item name="colorErrorContainer">@color/md_theme_l_errorContainer</item>
        <item name="colorOnErrorContainer">@color/md_theme_l_onErrorContainer</item>
        <item name="android:colorBackground">@color/md_theme_l_background</item>
        <item name="colorOnBackground">@color/md_theme_l_onBackground</item>
        <item name="colorSurface">@color/md_theme_l_surface</item>
        <item name="colorOnSurface">@color/md_theme_l_onSurface</item>
        <item name="colorSurfaceVariant">@color/md_theme_l_surfaceVariant</item>
        <item name="colorOnSurfaceVariant">@color/md_theme_l_onSurfaceVariant</item>
        <item name="colorOutline">@color/md_theme_l_outline</item>
        <item name="colorOutlineVariant">@color/md_theme_l_outlineVariant</item>
        <item name="colorSurfaceInverse">@color/md_theme_l_inverseSurface</item>
        <item name="colorOnSurfaceInverse">@color/md_theme_l_inverseOnSurface</item>
        <item name="colorPrimaryInverse">@color/md_theme_l_inversePrimary</item>
        <item name="colorPrimaryFixed">@color/md_theme_l_primaryFixed</item>
        <item name="colorOnPrimaryFixed">@color/md_theme_l_onPrimaryFixed</item>
        <item name="colorPrimaryFixedDim">@color/md_theme_l_primaryFixedDim</item>
        <item name="colorOnPrimaryFixedVariant">@color/md_theme_l_onPrimaryFixedVariant</item>
        <item name="colorSecondaryFixed">@color/md_theme_l_secondaryFixed</item>
        <item name="colorOnSecondaryFixed">@color/md_theme_l_onSecondaryFixed</item>
        <item name="colorSecondaryFixedDim">@color/md_theme_l_secondaryFixedDim</item>
        <item name="colorOnSecondaryFixedVariant">@color/md_theme_l_onSecondaryFixedVariant</item>
        <item name="colorTertiaryFixed">@color/md_theme_l_tertiaryFixed</item>
        <item name="colorOnTertiaryFixed">@color/md_theme_l_onTertiaryFixed</item>
        <item name="colorTertiaryFixedDim">@color/md_theme_l_tertiaryFixedDim</item>
        <item name="colorOnTertiaryFixedVariant">@color/md_theme_l_onTertiaryFixedVariant</item>
        <item name="colorSurfaceDim">@color/md_theme_l_surfaceDim</item>
        <item name="colorSurfaceBright">@color/md_theme_l_surfaceBright</item>
        <item name="colorSurfaceContainerLowest">@color/md_theme_l_surfaceContainerLowest</item>
        <item name="colorSurfaceContainerLow">@color/md_theme_l_surfaceContainerLow</item>
        <item name="colorSurfaceContainer">@color/md_theme_l_surfaceContainer</item>
        <item name="colorSurfaceContainerHigh">@color/md_theme_l_surfaceContainerHigh</item>
        <item name="colorSurfaceContainerHighest">@color/md_theme_l_surfaceContainerHighest</item>
        <item name="android:statusBarColor">?colorSurfaceContainer</item>
        <item name="android:navigationBarColor">?android:colorBackground</item>
        <item name="android:windowLightStatusBar">true</item>
        <item name="android:windowLightNavigationBar" tools:targetApi="o_mr1">true</item>

        <item name="toolbarStyle">@style/Theme.Toolbar</item>
        <item name="textInputStyle">@style/Theme.EditText</item>
        <item name="materialAlertDialogTheme">@style/Theme.Alert</item>
        <item name="appBarLayoutStyle">@style/Theme.AppBarLayout</item>
        <item name="materialCardViewStyle">@style/Theme.Card</item>
        <item name="materialCardViewElevatedStyle">@style/Theme.Card.Elevated</item>
        <item name="textAppearanceHeadlineMedium">@style/HeadlineMedium</item>
        <item name="textAppearanceHeadlineSmall">@style/HeadlineSmall</item>
    </style>

    <style name="Theme.Main.Dark" parent="Theme.Material3.Dark.NoActionBar">
        <item name="colorPrimary">@color/md_theme_d_primary</item>
        <item name="colorOnPrimary">@color/md_theme_d_onPrimary</item>
        <item name="colorPrimaryContainer">@color/md_theme_d_primaryContainer</item>
        <item name="colorOnPrimaryContainer">@color/md_theme_d_onPrimaryContainer</item>
        <item name="colorSecondary">@color/md_theme_d_secondary</item>
        <item name="colorOnSecondary">@color/md_theme_d_onSecondary</item>
        <item name="colorSecondaryContainer">@color/md_theme_d_secondaryContainer</item>
        <item name="colorOnSecondaryContainer">@color/md_theme_d_onSecondaryContainer</item>
        <item name="colorTertiary">@color/md_theme_d_tertiary</item>
        <item name="colorOnTertiary">@color/md_theme_d_onTertiary</item>
        <item name="colorTertiaryContainer">@color/md_theme_d_tertiaryContainer</item>
        <item name="colorOnTertiaryContainer">@color/md_theme_d_onTertiaryContainer</item>
        <item name="colorError">@color/md_theme_d_error</item>
        <item name="colorOnError">@color/md_theme_d_onError</item>
        <item name="colorErrorContainer">@color/md_theme_d_errorContainer</item>
        <item name="colorOnErrorContainer">@color/md_theme_d_onErrorContainer</item>
        <item name="android:colorBackground">@color/md_theme_d_background</item>
        <item name="colorOnBackground">@color/md_theme_d_onBackground</item>
        <item name="colorSurface">@color/md_theme_d_surface</item>
        <item name="colorOnSurface">@color/md_theme_d_onSurface</item>
        <item name="colorSurfaceVariant">@color/md_theme_d_surfaceVariant</item>
        <item name="colorOnSurfaceVariant">@color/md_theme_d_onSurfaceVariant</item>
        <item name="colorOutline">@color/md_theme_d_outline</item>
        <item name="colorOutlineVariant">@color/md_theme_d_outlineVariant</item>
        <item name="colorSurfaceInverse">@color/md_theme_d_inverseSurface</item>
        <item name="colorOnSurfaceInverse">@color/md_theme_d_inverseOnSurface</item>
        <item name="colorPrimaryInverse">@color/md_theme_d_inversePrimary</item>
        <item name="colorPrimaryFixed">@color/md_theme_d_primaryFixed</item>
        <item name="colorOnPrimaryFixed">@color/md_theme_d_onPrimaryFixed</item>
        <item name="colorPrimaryFixedDim">@color/md_theme_d_primaryFixedDim</item>
        <item name="colorOnPrimaryFixedVariant">@color/md_theme_d_onPrimaryFixedVariant</item>
        <item name="colorSecondaryFixed">@color/md_theme_d_secondaryFixed</item>
        <item name="colorOnSecondaryFixed">@color/md_theme_d_onSecondaryFixed</item>
        <item name="colorSecondaryFixedDim">@color/md_theme_d_secondaryFixedDim</item>
        <item name="colorOnSecondaryFixedVariant">@color/md_theme_d_onSecondaryFixedVariant</item>
        <item name="colorTertiaryFixed">@color/md_theme_d_tertiaryFixed</item>
        <item name="colorOnTertiaryFixed">@color/md_theme_d_onTertiaryFixed</item>
        <item name="colorTertiaryFixedDim">@color/md_theme_d_tertiaryFixedDim</item>
        <item name="colorOnTertiaryFixedVariant">@color/md_theme_d_onTertiaryFixedVariant</item>
        <item name="colorSurfaceDim">@color/md_theme_d_surfaceDim</item>
        <item name="colorSurfaceBright">@color/md_theme_d_surfaceBright</item>
        <item name="colorSurfaceContainerLowest">@color/md_theme_d_surfaceContainerLowest</item>
        <item name="colorSurfaceContainerLow">@color/md_theme_d_surfaceContainerLow</item>
        <item name="colorSurfaceContainer">@color/md_theme_d_surfaceContainer</item>
        <item name="colorSurfaceContainerHigh">@color/md_theme_d_surfaceContainerHigh</item>
        <item name="colorSurfaceContainerHighest">@color/md_theme_d_surfaceContainerHighest</item>
        <item name="android:statusBarColor">?colorSurfaceContainer</item>
        <item name="android:navigationBarColor">?android:colorBackground</item>

        <item name="toolbarStyle">@style/Theme.Toolbar</item>
        <item name="textInputStyle">@style/Theme.EditText</item>
        <item name="materialAlertDialogTheme">@style/Theme.Alert</item>
        <item name="appBarLayoutStyle">@style/Theme.AppBarLayout</item>
        <item name="materialCardViewStyle">@style/Theme.Card</item>
        <item name="materialCardViewElevatedStyle">@style/Theme.Card.Elevated</item>
        <item name="textAppearanceHeadlineMedium">@style/HeadlineMedium</item>
        <item name="textAppearanceHeadlineSmall">@style/HeadlineSmall</item>
    </style>

    <style name="Theme.Main.Amoled" parent="Theme.Material3.Dark.NoActionBar">
        <item name="colorPrimary">@color/md_theme_d_primary_mediumContrast</item>
        <item name="colorOnPrimary">@color/md_theme_d_onPrimary_mediumContrast</item>
        <item name="colorPrimaryContainer">@color/md_theme_d_primaryContainer_mediumContrast</item>
        <item name="colorOnPrimaryContainer">@color/md_theme_d_onPrimaryContainer_mediumContrast</item>
        <item name="colorSecondary">@color/md_theme_d_secondary_mediumContrast</item>
        <item name="colorOnSecondary">@color/md_theme_d_onSecondary_mediumContrast</item>
        <item name="colorSecondaryContainer">@color/md_theme_d_secondaryContainer_mediumContrast</item>
        <item name="colorOnSecondaryContainer">@color/md_theme_d_onSecondaryContainer_mediumContrast</item>
        <item name="colorTertiary">@color/md_theme_d_tertiary_mediumContrast</item>
        <item name="colorOnTertiary">@color/md_theme_d_onTertiary_mediumContrast</item>
        <item name="colorTertiaryContainer">@color/md_theme_d_tertiaryContainer_mediumContrast</item>
        <item name="colorOnTertiaryContainer">@color/md_theme_d_onTertiaryContainer_mediumContrast</item>
        <item name="colorError">@color/md_theme_d_error_mediumContrast</item>
        <item name="colorOnError">@color/md_theme_d_onError_mediumContrast</item>
        <item name="colorErrorContainer">@color/md_theme_d_errorContainer_mediumContrast</item>
        <item name="colorOnErrorContainer">@color/md_theme_d_onErrorContainer_mediumContrast</item>
        <!--<item name="android:colorBackground">@color/md_theme_d_background_mediumContrast</item>-->
        <item name="android:colorBackground">@color/pitch_black</item>
        <item name="colorOnBackground">@color/md_theme_d_onBackground_mediumContrast</item>
        <item name="colorSurface">@color/md_theme_d_surface_mediumContrast</item>
        <item name="colorOnSurface">@color/md_theme_d_onSurface_mediumContrast</item>
        <item name="colorSurfaceVariant">@color/md_theme_d_surfaceVariant_mediumContrast</item>
        <item name="colorOnSurfaceVariant">@color/md_theme_d_onSurfaceVariant_mediumContrast</item>
        <item name="colorOutline">@color/md_theme_d_outline_mediumContrast</item>
        <item name="colorOutlineVariant">@color/md_theme_d_outlineVariant_mediumContrast</item>
        <item name="colorSurfaceInverse">@color/md_theme_d_inverseSurface_mediumContrast</item>
        <item name="colorOnSurfaceInverse">@color/md_theme_d_inverseOnSurface_mediumContrast</item>
        <item name="colorPrimaryInverse">@color/md_theme_d_inversePrimary_mediumContrast</item>
        <item name="colorPrimaryFixed">@color/md_theme_d_primaryFixed_mediumContrast</item>
        <item name="colorOnPrimaryFixed">@color/md_theme_d_onPrimaryFixed_mediumContrast</item>
        <item name="colorPrimaryFixedDim">@color/md_theme_d_primaryFixedDim_mediumContrast</item>
        <item name="colorOnPrimaryFixedVariant">@color/md_theme_d_onPrimaryFixedVariant_mediumContrast</item>
        <item name="colorSecondaryFixed">@color/md_theme_d_secondaryFixed_mediumContrast</item>
        <item name="colorOnSecondaryFixed">@color/md_theme_d_onSecondaryFixed_mediumContrast</item>
        <item name="colorSecondaryFixedDim">@color/md_theme_d_secondaryFixedDim_mediumContrast</item>
        <item name="colorOnSecondaryFixedVariant">@color/md_theme_d_onSecondaryFixedVariant_mediumContrast</item>
        <item name="colorTertiaryFixed">@color/md_theme_d_tertiaryFixed_mediumContrast</item>
        <item name="colorOnTertiaryFixed">@color/md_theme_d_onTertiaryFixed_mediumContrast</item>
        <item name="colorTertiaryFixedDim">@color/md_theme_d_tertiaryFixedDim_mediumContrast</item>
        <item name="colorOnTertiaryFixedVariant">@color/md_theme_d_onTertiaryFixedVariant_mediumContrast</item>
        <item name="colorSurfaceDim">@color/md_theme_d_surfaceDim_mediumContrast</item>
        <item name="colorSurfaceBright">@color/md_theme_d_surfaceBright_mediumContrast</item>
        <item name="colorSurfaceContainerLowest">@color/md_theme_d_surfaceContainerLowest_mediumContrast</item>
        <item name="colorSurfaceContainerLow">@color/md_theme_d_surfaceContainerLow_mediumContrast</item>
        <item name="colorSurfaceContainer">@color/md_theme_d_surfaceContainer_mediumContrast</item>
        <item name="colorSurfaceContainerHigh">@color/md_theme_d_surfaceContainerHigh_mediumContrast</item>
        <item name="colorSurfaceContainerHighest">@color/md_theme_d_surfaceContainerHighest_mediumContrast</item>
        <item name="android:statusBarColor">?colorSurfaceContainer</item>
        <item name="android:navigationBarColor">?android:colorBackground</item>

        <item name="toolbarStyle">@style/Theme.Toolbar</item>
        <item name="textInputStyle">@style/Theme.EditText</item>
        <item name="materialAlertDialogTheme">@style/Theme.Alert</item>
        <item name="appBarLayoutStyle">@style/Theme.AppBarLayout</item>
        <item name="materialCardViewStyle">@style/Theme.Card</item>
        <item name="materialCardViewElevatedStyle">@style/Theme.Card.Elevated</item>
        <item name="textAppearanceHeadlineMedium">@style/HeadlineMedium</item>
        <item name="textAppearanceHeadlineSmall">@style/HeadlineSmall</item>
    </style>

    <style name="HeadlineMedium" parent="TextAppearance.Material3.HeadlineMedium">
        <item name="android:textStyle">bold</item>
        <item name="android:textSize">24sp</item>
        <item name="android:letterSpacing">0</item>
        <item name="lineHeight">32sp</item>
        <item name="android:textAllCaps">false</item>
    </style>

    <style name="HeadlineSmall" parent="TextAppearance.Material3.HeadlineSmall">
        <item name="android:textStyle">normal</item>
        <item name="android:textSize">18sp</item>
        <item name="android:letterSpacing">0</item>
        <item name="lineHeight">32sp</item>
        <item name="android:textAllCaps">false</item>
    </style>

    <style name="Theme.AppBarLayout" parent="Widget.Material3.AppBarLayout">
        <item name="android:fitsSystemWindows">true</item>
    </style>

    <style name="Theme.Toolbar" parent="Widget.Material3.Toolbar.Surface">
        <item name="layout_collapseMode">pin</item>
    </style>

    <style name="Theme.Alert" parent="ThemeOverlay.Material3.MaterialAlertDialog.Centered">
        <item name="android:dialogCornerRadius" tools:targetApi="p">@dimen/shape_large_corner</item>
    </style>

    <style name="Theme.EditText" parent="Widget.Material3.TextInputLayout.FilledBox">
        <item name="boxBackgroundColor">?attr/colorSurfaceContainerHighest</item>
        <item name="boxStrokeWidth">0dp</item>
        <item name="boxStrokeWidthFocused">0dp</item>
        <item name="boxCornerRadiusBottomEnd">@dimen/shape_medium_corner</item>
        <item name="boxCornerRadiusBottomStart">@dimen/shape_medium_corner</item>
        <item name="boxCornerRadiusTopEnd">@dimen/shape_medium_corner</item>
        <item name="boxCornerRadiusTopStart">@dimen/shape_medium_corner</item>
        <item name="hintTextColor">?attr/colorPrimary</item>
        <item name="android:textColorHint">?attr/colorPrimary</item>
    </style>

    <style name="Theme.Progress" parent="Widget.Material3.LinearProgressIndicator">
        <item name="trackThickness">8dp</item>
        <item name="trackCornerRadius">4dp</item>
    </style>

    <style name="FavouriteTheme" parent="Widget.Material3.Button.IconButton">
        <item name="backgroundTint">?colorSurface</item>
        <item name="android:backgroundTint">?colorSurface</item>
        <item name="iconTint">@color/favourite_icon_color</item>
        <item name="android:iconTint" tools:targetApi="o">@color/favourite_icon_color</item>
    </style>

    <style name="Theme.Card" parent="Widget.Material3.CardView.Filled">
        <item name="cardBackgroundColor">@android:color/transparent</item>
        <item name="cardCornerRadius">@dimen/shape_large_corner</item>
    </style>

    <style name="Theme.Card.Elevated" parent="Widget.Material3.CardView.Elevated">
        <item name="cardCornerRadius">@dimen/shape_large_corner</item>
    </style>

    <style name="Shape.Small" parent="ShapeAppearance.Material3.SmallComponent">
        <item name="cornerSize">@dimen/shape_small_corner</item>
    </style>

    <style name="Shape.Medium" parent="ShapeAppearance.Material3.MediumComponent">
        <item name="cornerSize">@dimen/shape_medium_corner</item>
    </style>

    <style name="Shape.Large" parent="ShapeAppearance.Material3.LargeComponent">
        <item name="cornerSize">@dimen/shape_large_corner</item>
    </style>

    <style name="PillShapeAppearance">
        <item name="cornerFamily">rounded</item>
        <item name="cornerSize">50%</item>
    </style>

</resources>
