<?xml version="1.0" encoding="utf-8"?>
<ScrollView xmlns:android="http://schemas.android.com/apk/res/android"
    xmlns:app="http://schemas.android.com/apk/res-auto"
    android:layout_width="match_parent"
    android:layout_height="match_parent"
    android:background="@color/arka_plan"
    android:fillViewport="true">

    <LinearLayout
        android:layout_width="match_parent"
        android:layout_height="wrap_content"
        android:orientation="vertical"
        android:padding="24dp">

        <TextView
            android:id="@+id/textSettingsTitle"
            android:layout_width="wrap_content"
            android:layout_height="wrap_content"
            android:text="@string/settings_title"
            android:textColor="@color/ana_renk"
            android:textSize="26sp"
            android:fontFamily="sans-serif-medium"
            android:layout_marginBottom="20dp" />

        <TextView
            android:layout_width="wrap_content"
            android:layout_height="wrap_content"
            android:text="@string/settings_language_title"
            android:textColor="@color/text_secondary"
            android:textSize="14sp"
            android:layout_marginBottom="10dp" />

        <RadioGroup
            android:id="@+id/rgLanguage"
            android:layout_width="match_parent"
            android:layout_height="wrap_content">

            <RadioButton
                android:id="@+id/rbEnglish"
                android:layout_width="wrap_content"
                android:layout_height="wrap_content"
                android:text="@string/settings_language_english"
                android:textColor="@color/text_secondary" />

            <RadioButton
                android:id="@+id/rbTurkish"
                android:layout_width="wrap_content"
                android:layout_height="wrap_content"
                android:text="@string/settings_language_turkish"
                android:textColor="@color/text_secondary" />
        </RadioGroup>

        <com.google.android.material.button.MaterialButton
            android:id="@+id/btnApplyLanguage"
            android:layout_width="match_parent"
            android:layout_height="56dp"
            android:layout_marginTop="14dp"
            android:text="@string/action_apply"
            android:textAllCaps="false"
            app:cornerRadius="14dp" />

        <TextView
            android:layout_width="wrap_content"
            android:layout_height="wrap_content"
            android:text="@string/settings_login_title"
            android:textColor="@color/text_secondary"
            android:textSize="14sp"
            android:layout_marginTop="22dp"
            android:layout_marginBottom="10dp" />

        <TextView
            android:id="@+id/textLoginStatus"
            android:layout_width="wrap_content"
            android:layout_height="wrap_content"
            android:text="@string/login_status_logged_out"
            android:textColor="@color/text_secondary"
            android:textSize="14sp"
            android:layout_marginBottom="12dp" />

        <com.google.android.material.button.MaterialButton
            android:id="@+id/btnLoginOrLogout"
            android:layout_width="match_parent"
            android:layout_height="56dp"
            android:text="@string/action_login"
            android:textAllCaps="false"
            app:cornerRadius="14dp" />

        <Button
            android:id="@+id/btnBack"
            android:layout_width="wrap_content"
            android:layout_height="wrap_content"
            android:layout_marginTop="14dp"
            android:text="@string/action_back" />
    </LinearLayout>
</ScrollView>

