<resources>

    <!-- Base application theme. -->
    <style name="AppTheme" parent="Theme.AppCompat.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:lineSpacingExtra">4sp</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:lineSpacingExtra">4sp</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:letterSpacing">0.04</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:letterSpacing">0.04</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>
        <item name="android:lineSpacingExtra">3sp</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:lineSpacingExtra">2sp</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>
        <item name="android:lineSpacingExtra">2sp</item>
    </style>

    <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>

    <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="AuthenticationLabel" parent="TextAppearance.AppCompat.Medium">
        <item name="android:layout_width">wrap_content</item>
        <item name="android:layout_height">50dp</item>
        <item name="android:layout_marginStart">@dimen/screen_edge_left_and_right_margins</item>
        <item name="android:paddingStart">@dimen/edit_text_margin</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="ChatRooms.Header" parent="TextAppearance.AppCompat.Headline">
        <item name="android:textSize">16sp</item>
    </style>

    <style name="ChatRoom.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="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>

    <style name="Timestamp.TextView" parent="TextAppearance.AppCompat.Caption">
        <item name="android:textSize">10sp</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>
