<resources>

    <!-- Base application theme. -->
    <style name="AppTheme" parent="Theme.MaterialComponents.Light.NoActionBar">
        <!-- Customize your theme here. -->
        <item name="colorPrimary">@color/colorPrimary</item>
        <item name="colorPrimaryDark">@color/colorPrimaryDark</item>
        <item name="colorAccent">@color/colorAccent</item>
        <item name="windowActionModeOverlay">true</item>
        <item name="searchViewStyle">@style/ChatRoom.SearchView</item>
        <item name="actionModeBackground">@color/colorPrimary</item>
        <item name="android:actionModeBackground">@color/colorPrimary</item>
    </style>

    <!-- Widget styles. -->
    <!-- Authentication -->
    <style name="Authentication.TextView.Headline" parent="TextAppearance.AppCompat">
        <item name="android:layout_width">wrap_content</item>
        <item name="android:layout_height">wrap_content</item>
        <item name="android:textSize">24sp</item>
        <item name="android:fontFamily">sans-serif</item>
        <item name="android:textColor">@color/colorPrimary</item>
        <item name="android:textStyle">bold</item>
    </style>

    <style name="Authentication.TextView.Description" parent="TextAppearance.AppCompat">
        <item name="android:layout_width">wrap_content</item>
        <item name="android:layout_height">wrap_content</item>
        <item name="android:textSize">16sp</item>
        <item name="android:fontFamily">sans-serif</item>
        <item name="android:textColor">#FF54585E</item>
        <item name="android:textStyle">normal</item>
    </style>

    <style name="Authentication.Button.Title" parent="TextAppearance.AppCompat">
        <item name="android:textSize">17sp</item>
        <item name="android:fontFamily">sans-serif</item>
        <item name="android:textStyle">bold</item>
        <item name="android:textColor">@color/colorAccent</item>
        <item name="android:maxLines">1</item>
        <item name="android:ellipsize">end</item>
    </style>

    <style name="Authentication.Button.Title.White" parent="Authentication.Button.Title">
        <item name="android:textColor">@color/colorWhite</item>
    </style>

    <style name="Authentication.Button.Description" parent="TextAppearance.AppCompat">
        <item name="android:textSize">15sp</item>
        <item name="android:fontFamily">sans-serif</item>
        <item name="android:textStyle">normal</item>
        <item name="android:textColor">@color/colorAuthenticationSecondaryText</item>
        <item name="android:maxLines">1</item>
        <item name="android:ellipsize">end</item>
    </style>

    <style name="Authentication.EditText.Hint" parent="TextAppearance.AppCompat">
        <item name="android:textSize">17sp</item>
        <item name="android:fontFamily">sans-serif</item>
        <item name="android:textStyle">normal</item>
        <item name="android:textColorHint">@color/colorAuthenticationSecondaryText</item>
    </style>

    <style name="Authentication.EditText.Border" parent="Widget.AppCompat.EditText">
        <item name="android:layout_width">0dp</item>
        <item name="android:layout_height">48dp</item>
        <item name="android:paddingStart">@dimen/edit_text_margin</item>
        <item name="android:paddingEnd">@dimen/edit_text_margin</item>
        <item name="android:maxLines">1</item>
        <item name="android:drawablePadding">@dimen/edit_text_drawable_padding</item>
        <item name="android:textColor">@color/colorPrimaryText</item>
        <item name="android:textColorHint">@color/colorAuthenticationSecondaryText</item>
        <item name="android:fontFamily">sans-serif</item>
        <item name="android:background">@drawable/rounded_border</item>
    </style>

    <style name="Authentication.Button" parent="Widget.AppCompat.Button.Borderless">
        <item name="android:layout_width">match_parent</item>
        <item name="android:layout_height">48dp</item>
        <item name="android:foreground">?selectableItemBackground</item>
        <item name="android:textSize">18sp</item>
        <item name="android:fontFamily">sans-serif-medium</item>
        <item name="android:textStyle">normal</item>
        <item name="android:textColor">@color/colorWhite</item>
        <item name="android:textAllCaps">false</item>
        <item name="android:background">@drawable/rounded_color_accent</item>
    </style>

    <style name="Authentication.Button.Borderless" parent="Widget.AppCompat.Button.Borderless">
        <item name="android:layout_width">wrap_content</item>
        <item name="android:layout_height">48dp</item>
        <item name="android:textAllCaps">false</item>
        <item name="android:textColor">@color/colorAccent</item>
        <item name="android:textSize">18sp</item>
        <item name="android:textStyle">bold</item>
        <item name="android:fontFamily">sans-serif</item>
    </style>

    // REMARK: To be removed as soon as we have our loading view.
    <style name="Authentication.AVLoadingIndicatorView" parent="AVLoadingIndicatorView">
        <item name="android:layout_width">wrap_content</item>
        <item name="android:layout_height">wrap_content</item>
        <item name="indicatorColor">@color/colorPrimary</item>
        <item name="indicatorName">BallPulseIndicator</item>
    </style>
    <!-- End Authentication -->

    <!-- Chat list -->
    <style name="ChatList.ChatName.TextView" parent="TextAppearance.AppCompat.Title">
        <item name="android:textSize">16sp</item>
        <item name="android:fontFamily">sans-serif-medium</item>
        <item name="android:textStyle">normal</item>
        <item name="android:textColor">@color/colorPrimary</item>
        <item name="android:ellipsize">end</item>
        <item name="android:maxLines">1</item>
    </style>

    <style name="ChatList.ChatName.Unread.TextView" parent="ChatList.ChatName.TextView">
        <item name="android:fontFamily">sans-serif</item>
        <item name="android:textStyle">bold</item>
    </style>

    <style name="ChatList.LastMessage.TextView" parent="TextAppearance.AppCompat.Title">
        <item name="android:textSize">14sp</item>
        <item name="android:fontFamily">sans-serif</item>
        <item name="android:textStyle">normal</item>
        <item name="android:textColor">@color/colorLastMessageText</item>
        <item name="android:ellipsize">end</item>
        <item name="android:maxLines">2</item>
    </style>

    <style name="ChatList.LastMessage.Unread.TextView" parent="ChatList.LastMessage.TextView">
        <item name="android:fontFamily">sans-serif-medium</item>
    </style>

    <style name="ChatList.Timestamp.TextView" parent="TextAppearance.AppCompat.Title">
        <item name="android:textSize">12sp</item>
        <item name="android:fontFamily">sans-serif</item>
        <item name="android:textStyle">normal</item>
        <item name="android:textColor">@color/colorTimestampText</item>
        <item name="android:ellipsize">end</item>
        <item name="android:maxLines">1</item>
    </style>

    <style name="ChatList.Timestamp.Unread.TextView" parent="ChatList.Timestamp.TextView">
        <item name="android:textColor">@color/colorTimestampTextUnread</item>
    </style>

    <style name="ChatList.Badge.TextView" parent="TextAppearance.AppCompat.Title">
        <item name="android:textSize">14sp</item>
        <item name="android:fontFamily">sans-serif-medium</item>
        <item name="android:textStyle">normal</item>
        <item name="android:textColor">@color/colorWhite</item>
        <item name="android:gravity">center</item>
    </style>
    <!-- End chat list -->

    <!-- User details -->
    <style name="UserDetails.TextView.Name" parent="TextAppearance.AppCompat">
        <item name="android:textSize">18sp</item>
        <item name="android:fontFamily">sans-serif</item>
        <item name="android:textStyle">bold</item>
        <item name="android:textColor">@color/colorUserDetailsNameText</item>
    </style>

    <style name="UserDetails.TextView.Username" parent="TextAppearance.AppCompat">
        <item name="android:textSize">14sp</item>
        <item name="android:fontFamily">sans-serif</item>
        <item name="android:textStyle">normal</item>
        <item name="android:textColor">@color/colorUserDetailsUsernameText</item>
    </style>

    <style name="UserDetails.TextView.Actions" parent="TextAppearance.AppCompat">
        <item name="android:textSize">16sp</item>
        <item name="android:fontFamily">sans-serif</item>
        <item name="android:textStyle">normal</item>
        <item name="android:textColor">@color/colorAccent</item>
    </style>

    <style name="UserDetails.TextView.Title" parent="TextAppearance.AppCompat">
        <item name="android:textSize">12sp</item>
        <item name="android:fontFamily">sans-serif</item>
        <item name="android:textStyle">normal</item>
        <item name="android:textColor">@color/colorAuthenticationSecondaryText</item>
    </style>

    <style name="UserDetails.TextView.Description" parent="TextAppearance.AppCompat">
        <item name="android:textSize">16sp</item>
        <item name="android:fontFamily">sans-serif</item>
        <item name="android:textStyle">normal</item>
        <item name="android:textColor">@color/colorPrimary</item>
    </style>
    <!-- End user details-->

    <style name="EditText.Password" parent="TextAppearance.AppCompat">
        <!-- Hint color and label color in FALSE state -->
        <item name="android:textColorHint">@color/colorPrimaryDark</item>
        <item name="colorAccent">@color/colorPrimaryDark</item>
        <item name="colorControlNormal">@color/colorPrimaryDark</item>
        <item name="colorControlActivated">@color/colorPrimaryDark</item>
    </style>

    <style name="ChatRoom.SearchView" parent="Widget.AppCompat.SearchView">
        <item name="queryHint">@string/title_search_message</item>
        <item name="searchIcon">@drawable/ic_search_white_24dp</item>
        <item name="searchHintIcon">@drawable/ic_search_white_24dp</item>
        <item name="closeIcon">@drawable/ic_close_white_24dp</item>
    </style>

    <style name="ChatRoom.Timestamp.TextView" parent="TextAppearance.AppCompat.Caption">
        <item name="android:textSize">10sp</item>
    </style>

    <style name="ChatRooms.Header" parent="TextAppearance.AppCompat.Headline">
        <item name="android:textSize">16sp</item>
    </style>

    <style name="ChatDetails.Title.TextView" parent="TextAppearance.AppCompat.Title">
        <item name="android:textSize">16sp</item>
        <item name="android:textColor">@color/colorPrimary</item>
    </style>

    <style name="ChatDetails.Content.TextView" parent="TextAppearance.AppCompat.Title">
        <item name="android:textSize">12sp</item>
        <item name="android:textColor">@color/colorSecondaryTextLight</item>
    </style>

    <style name="Sender.Name.TextView" parent="TextAppearance.AppCompat.Title">
        <item name="android:ellipsize">end</item>
        <item name="android:maxLines">1</item>
        <item name="android:textSize">16sp</item>
    </style>

    <style name="Message.TextView" parent="android:TextAppearance">
        <item name="android:textSize">15sp</item>
        <item name="android:textColor">@color/colorPrimaryText</item>
    </style>

    <style name="Message.DayMarker" parent="TextAppearance.AppCompat">
        <item name="android:textSize">14sp</item>
        <item name="android:textColor">@color/colorPrimaryText</item>
        <item name="android:fontFamily">@string/font_fontFamily_medium</item>
    </style>

    <style name="Message.Quote.TextView" parent="Message.TextView">
        <item name="android:textColor">@color/colorPrimaryText</item>
    </style>

    // REMARK: To be removed.
    <style name="Profile.EditText" parent="Authentication.EditText.Border">
        <item name="android:background">@drawable/style_edit_text_profile</item>
    </style>

    <style name="ActionModeStyle" parent="ThemeOverlay.AppCompat.Dark.ActionBar">
        <item name="android:actionModeCloseDrawable">@drawable/ic_close_white_24dp</item>
        <item name="actionModeCloseDrawable">@drawable/ic_close_white_24dp</item>
    </style>

</resources>
