<resources xmlns:tools="http://schemas.android.com/tools">

	<!--Toolbars-->

	<style name="Theme.Kotatsu.ActionMode.CloseButton" parent="Widget.AppCompat.ActionButton.CloseMode">
		<item name="android:tint">?colorControlNormal</item>
	</style>

	<!--Navigation Views-->

	<style name="Widget.Kotatsu.BottomNavigationView" parent="Widget.Material3.BottomNavigationView">
		<item name="labelVisibilityMode">labeled</item>
	</style>

	<style name="Widget.Kotatsu.BottomNavigationView.ColoredIndicators">
		<item name="itemActiveIndicatorStyle">@style/Widget.Kotatsu.BottomNavigationView.ActiveIndicator</item>
		<item name="itemIconTint">@color/bottom_menu_active_item</item>
	</style>

	<style name="Widget.Kotatsu.BottomNavigationView.ActiveIndicator" parent="Widget.Material3.BottomNavigationView.ActiveIndicator">
		<item name="android:color">@color/bottom_menu_active_indicator</item>
	</style>

	<style name="Widget.Kotatsu.ActionMode" parent="Base.Widget.Material3.ActionMode">
		<!--<item name="titleTextStyle">@style/TextAppearance.Kotatsu.ActionBar.Title</item>-->
		<item name="theme">@style/ThemeOverlay.Kotatsu.ActionMode</item>
	</style>

	<!--AlertDialog-->

	<style name="ThemeOverlay.Kotatsu.MaterialAlertDialog" parent="ThemeOverlay.Material3.MaterialAlertDialog">
		<item name="android:layout">@layout/m3_alert_dialog</item>
		<item name="android:background">@drawable/m3_popup_background</item>
		<item name="dialogCornerRadius">@dimen/m3_alert_dialog_corner_size</item>
	</style>

	<!-- Bottom sheet -->

	<style name="ThemeOverlay.Kotatsu.BottomSheetDialog" parent="ThemeOverlay.Material3.BottomSheetDialog">
		<item name="bottomSheetStyle">@style/Widget.Kotatsu.BottomSheet.Modal</item>
		<item name="android:windowAnimationStyle">@style/Animation.Kotatsu.BottomSheetDialog</item>
	</style>

	<style name="Widget.Kotatsu.BottomSheet.Modal" parent="Widget.Material3.BottomSheet.Modal">
		<item name="shapeAppearanceOverlay">@style/ShapeAppearanceOverlay.Kotatsu.BottomSheet</item>
	</style>

	<style name="ShapeAppearanceOverlay.Kotatsu.BottomSheet" parent="">
		<item name="cornerFamily">rounded</item>
		<item name="cornerSizeTopRight">@dimen/dialog_radius</item>
		<item name="cornerSizeTopLeft">@dimen/dialog_radius</item>
		<item name="cornerSizeBottomRight">0dp</item>
		<item name="cornerSizeBottomLeft">0dp</item>
	</style>

	<style name="Animation.Kotatsu.BottomSheetDialog" parent="Animation.AppCompat.Dialog">
		<item name="android:windowEnterAnimation">@anim/bottom_sheet_slide_in</item>
		<item name="android:windowExitAnimation">@anim/bottom_sheet_slide_out</item>
	</style>

	<!-- Widget styles -->

	<style name="Widget.Kotatsu.Tabs" parent="@style/Widget.Material3.TabLayout">
		<item name="tabGravity">center</item>
		<item name="tabInlineLabel">true</item>
		<item name="tabMinWidth">75dp</item>
		<item name="tabMode">scrollable</item>
		<item name="tabRippleColor">@color/ripple_toolbar</item>
	</style>

	<style name="Widget.Kotatsu.SuperTabs" parent="Widget.Material3.TabLayout">
		<item name="tabGravity">center</item>
		<item name="tabIndicator">@drawable/tab_selector_drawable</item>
		<item name="tabIndicatorColor">@color/tab_indicator_foreground</item>
		<item name="tabIndicatorFullWidth">true</item>
		<item name="tabIndicatorGravity">center</item>
		<item name="tabMinWidth">75dp</item>
		<item name="tabMode">scrollable</item>
		<item name="tabRippleColor">@color/ripple_toolbar</item>
		<item name="tabPaddingStart">8dp</item>
		<item name="tabPaddingEnd">8dp</item>
		<item name="dividerThickness">0dp</item>
		<item name="android:clipChildren">false</item>
	</style>

	<style name="Widget.Kotatsu.SearchView" parent="@style/Widget.AppCompat.SearchView">
		<item name="iconifiedByDefault">false</item>
		<item name="searchIcon">@null</item>
		<item name="hintTextAppearance">?textAppearanceBodyMedium</item>
		<item name="queryBackground">@null</item>
		<item name="android:textColorHint">?attr/colorControlNormal</item>
		<item name="android:textSize">18sp</item>
	</style>

	<style name="Widget.Kotatsu.Chip" parent="Widget.Material3.Chip.Suggestion">
		<item name="chipSurfaceColor">?attr/colorSurface</item>
		<item name="android:textColor">?attr/colorOnSurfaceVariant</item>
		<item name="strokeColor">?attr/colorOutline</item>
		<item name="rippleColor">?attr/colorControlHighlight</item>

		<!-- Custom chip states -->
		<item name="android:clickable">true</item>
		<item name="android:focusable">true</item>

		<!-- Smaller text/height -->
		<item name="chipMinHeight">28dp</item>

		<!-- Collapse horizontal margin -->
		<item name="chipMinTouchTargetSize">28dp</item>
	</style>

	<style name="Widget.Kotatsu.ToggleButton" parent="Widget.Material3.Button.OutlinedButton">
		<item name="android:checkable">true</item>
		<item name="android:textAlignment">textStart</item>
		<item name="iconPadding">16dp</item>
	</style>

	<style name="Widget.Kotatsu.ToggleButton.Vertical">
		<item name="android:textAlignment">center</item>
		<item name="iconPadding">2dp</item>
		<item name="android:singleLine">false</item>
		<item name="android:lines">2</item>
		<item name="android:maxLines">2</item>
		<item name="iconGravity">top</item>
		<item name="android:paddingTop">12dp</item>
		<item name="android:paddingBottom">10dp</item>
		<item name="android:paddingStart">6dp</item>
		<item name="android:paddingEnd">6dp</item>
		<item name="android:elegantTextHeight">false</item>
		<item name="shapeAppearance">?shapeAppearanceCornerMedium</item>
	</style>

	<style name="Widget.Kotatsu.RecyclerView" parent="">
		<item name="android:scrollbarStyle">outsideOverlay</item>
	</style>

	<style name="Widget.Kotatsu.FastScroller" parent="">
		<item name="thumbColor">?colorTertiary</item>
		<item name="bubbleColor">?colorTertiary</item>
		<item name="bubbleTextColor">?colorOnTertiary</item>
		<item name="trackColor">?colorOutline</item>
		<item name="bubbleSize">normal</item>
	</style>

	<style name="Widget.Kotatsu.ListItemTextView" parent="">
		<item name="android:textColor">@color/list_item_text_color</item>
		<item name="backgroundFillColor">@color/list_item_background_color</item>
		<item name="checkedDrawableStart">@drawable/ic_check</item>
		<item name="shapeAppearanceOverlay">@style/ShapeAppearanceOverlay.Material3.NavigationView.Item</item>
		<item name="android:gravity">center_vertical|start</item>
		<item name="android:insetRight">6dp</item>
		<item name="android:insetLeft">6dp</item>
		<item name="android:insetTop">2dp</item>
		<item name="android:insetBottom">2dp</item>
	</style>

	<style name="Widget.Kotatsu.ExploreButton" parent="Widget.Material3.Button.TonalButton.Icon">
		<item name="android:minHeight">58dp</item>
		<item name="android:textColor">?attr/colorOnSurface</item>
		<item name="android:singleLine">true</item>
		<item name="shapeAppearance">?shapeAppearanceCornerLarge</item>
		<item name="iconSize">22dp</item>
		<item name="iconPadding">16dp</item>
		<item name="iconGravity">start</item>
		<item name="android:insetTop">2dp</item>
		<item name="android:insetBottom">2dp</item>
		<item name="iconTint">?attr/colorSecondary</item>
		<item name="android:gravity">start|center_vertical</item>
		<item name="android:textAppearance">?textAppearanceButton</item>
	</style>

	<style name="Widget.Kotatsu.TextView.Indicator" parent="Widget.MaterialComponents.TextView">
		<item name="android:drawablePadding">12dp</item>
		<item name="android:gravity">center_vertical</item>
		<item name="android:textAppearance">?textAppearanceLabelMedium</item>
	</style>

	<style name="ThemeOverlay.Kotatsu.MainToolbar" parent="">
		<item name="colorControlHighlight">@color/selector_overlay</item>
	</style>

	<style name="ThemeOverlay.Kotatsu.ActionMode" parent="">
		<item name="colorOnSurface">?colorPrimary</item>
		<item name="colorControlNormal">?colorPrimary</item>
	</style>

	<!-- TextAppearance -->

	<style name="TextAppearance.Widget.Menu" parent="TextAppearance.AppCompat.Menu">
		<item name="android:textColor">?attr/colorOnBackground</item>
	</style>

	<style name="TextAppearance.Kotatsu.Button" parent="TextAppearance.Material3.TitleSmall" />

	<style name="TextAppearance.Kotatsu.Preference.Secondary" parent="TextAppearance.Material3.BodySmall" />

	<style name="TextAppearance.Kotatsu.Menu" parent="TextAppearance.Material3.BodyLarge" />

	<style name="TextAppearance.Kotatsu.SectionHeader" parent="TextAppearance.Material3.LabelLarge">
		<item name="android:textColor">?android:attr/textColorSecondary</item>
	</style>

	<style name="TextAppearance.Kotatsu.SectionHeader2" parent="TextAppearance.Material3.LabelSmall">
		<item name="android:textColor">?colorPrimary</item>
		<item name="android:textAllCaps">true</item>
	</style>

	<style name="TextAppearance.Kotatsu.ActionBar.Title" parent="TextAppearance.Material3.TitleLarge">
		<item name="android:textColor">?attr/colorPrimary</item>
	</style>

	<style name="TextAppearance.Kotatsu.GridTitle" parent="TextAppearance.Material3.TitleSmall" />

	<style name="TextAppearance.Kotatsu.GridTitle.Small" parent="TextAppearance.Material3.TitleSmall">
		<item name="android:textSize">12sp</item>
		<item name="android:letterSpacing">0.00714286</item>
		<item name="lineHeight">14sp</item>
		<item name="android:lineHeight" tools:ignore="NewApi">14sp</item>
	</style>

	<!-- Shapes -->

	<style name="ShapeAppearanceOverlay.Kotatsu.Cover" parent="">
		<item name="cornerSize">16dp</item>
	</style>

	<style name="ShapeAppearanceOverlay.Kotatsu.Cover.Small" parent="">
		<item name="cornerSize">6dp</item>
	</style>

	<style name="ShapeAppearanceOverlay.Kotatsu.Circle" parent="">
		<item name="cornerFamily">rounded</item>
		<item name="cornerSize">50%</item>
	</style>

	<!--Preferences-->

	<style name="PreferenceThemeOverlay.Kotatsu">
		<item name="preferenceCategoryTitleTextAppearance">?attr/textAppearanceBodyMedium</item>
		<item name="singleLineTitle">false</item>
	</style>

	<style name="Preference.Slider" parent="Preference.SeekBarPreference.Material">
		<item name="android:layout">@layout/preference_slider</item>
	</style>

	<style name="Preference.MultiAutoCompleteTextView" parent="Preference.DialogPreference.EditTextPreference.Material">
		<item name="android:dialogLayout">@layout/preference_dialog_multiautocompletetextview</item>
	</style>

	<style name="Preference.AutoCompleteTextView" parent="Preference.DialogPreference.EditTextPreference.Material">
		<item name="android:dialogLayout">@layout/preference_dialog_autocompletetextview</item>
	</style>

	<style name="Preference.SwitchPreferenceCompat.M3" parent="Preference.SwitchPreferenceCompat.Material">
		<item name="android:widgetLayout">@layout/preference_widget_material_switch</item>
	</style>

	<style name="Preference.ThemeChooser" parent="Preference.Material">
		<item name="android:layout">@layout/preference_theme</item>
		<item name="android:selectable">false</item>
	</style>

	<!-- Progress drawable -->

	<style name="ProgressDrawable">
		<item name="android:fillAlpha">1</item>
		<item name="android:fillColor">?attr/colorPrimary</item>
		<item name="android:strokeColor">?attr/colorSurfaceVariant</item>
		<item name="android:textColor">?attr/colorOnPrimary</item>
		<item name="strokeWidth">4dp</item>
		<item name="android:textSize">9sp</item>
		<item name="autoFitTextSize">true</item>
	</style>

</resources>
