<?xml version="1.0" encoding="utf-8"?>
<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
    android:layout_width="match_parent"
    android:layout_height="match_parent"
    android:orientation="vertical"
    android:background="#FFF8E1"
    android:padding="20dp"
    android:gravity="center_horizontal">

    <ScrollView
        android:layout_width="match_parent"
        android:layout_height="0dp"
        android:layout_weight="1"
        android:fillViewport="true"
        android:scrollbars="none">

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

            <LinearLayout
                android:layout_width="match_parent"
                android:layout_height="wrap_content"
                android:orientation="horizontal"
                android:gravity="center_vertical"
                android:layout_marginTop="10dp"
                android:layout_marginBottom="24dp">

                <TextView
                    android:layout_width="wrap_content"
                    android:layout_height="wrap_content"
                    android:text="🆕"
                    android:textSize="36sp"
                    android:layout_marginEnd="12dp" />

                <TextView
                    android:layout_width="wrap_content"
                    android:layout_height="wrap_content"
                    android:text="Yeni Tarif Ekle"
                    android:textSize="24sp"
                    android:textStyle="bold"
                    android:textColor="#D84315" />
            </LinearLayout>

            <!-- Yemek Adı -->
            <TextView
                android:layout_width="match_parent"
                android:layout_height="wrap_content"
                android:text="Yemeğin Adı"
                android:textColor="#5D4037"
                android:textSize="14sp"
                android:textStyle="bold"
                android:layout_marginBottom="6dp" />

            <EditText
                android:id="@+id/etYemekAd"
                android:layout_width="match_parent"
                android:layout_height="wrap_content"
                android:hint="Örn: Mercimek Çorbası"
                android:inputType="text"
                android:background="@drawable/custom_input"
                android:textColor="#3E2723"
                android:textColorHint="#BCAAA4"
                android:layout_marginBottom="16dp" />

            <!-- Kategori Seçimi -->
            <TextView
                android:layout_width="match_parent"
                android:layout_height="wrap_content"
                android:text="Yemek Kategorisi"
                android:textColor="#5D4037"
                android:textSize="14sp"
                android:textStyle="bold"
                android:layout_marginBottom="6dp" />

            <Spinner
                android:id="@+id/spnKategori"
                android:layout_width="match_parent"
                android:layout_height="52dp"
                android:background="@drawable/custom_input"
                android:layout_marginBottom="16dp" />

            <!-- Resim URL (İsteğe Bağlı) -->
            <TextView
                android:layout_width="match_parent"
                android:layout_height="wrap_content"
                android:text="Yemek Resim URL (İsteğe bağlı)"
                android:textColor="#5D4037"
                android:textSize="14sp"
                android:textStyle="bold"
                android:layout_marginBottom="6dp" />

            <EditText
                android:id="@+id/etResimUrl"
                android:layout_width="match_parent"
                android:layout_height="wrap_content"
                android:hint="https://resimlinki.com/gorsel.jpg"
                android:inputType="textUri"
                android:background="@drawable/custom_input"
                android:textColor="#3E2723"
                android:textColorHint="#BCAAA4"
                android:layout_marginBottom="16dp" />

            <!-- Malzemeler -->
            <TextView
                android:layout_width="match_parent"
                android:layout_height="wrap_content"
                android:text="Gerekli Malzemeler"
                android:textColor="#5D4037"
                android:textSize="14sp"
                android:textStyle="bold"
                android:layout_marginBottom="6dp" />

            <EditText
                android:id="@+id/etMalzemeler"
                android:layout_width="match_parent"
                android:layout_height="wrap_content"
                android:hint="Örn: 1 su bardağı mercimek, 1 soğan..."
                android:inputType="textMultiLine"
                android:minLines="3"
                android:gravity="top|start"
                android:background="@drawable/custom_input"
                android:textColor="#3E2723"
                android:textColorHint="#BCAAA4"
                android:layout_marginBottom="16dp" />

            <!-- Yapılışı -->
            <TextView
                android:layout_width="match_parent"
                android:layout_height="wrap_content"
                android:text="Tarifin Hazırlanışı"
                android:textColor="#5D4037"
                android:textSize="14sp"
                android:textStyle="bold"
                android:layout_marginBottom="6dp" />

            <EditText
                android:id="@+id/etYapilis"
                android:layout_width="match_parent"
                android:layout_height="wrap_content"
                android:hint="Örn: Soğanları pembeleşinceye kadar kavurun..."
                android:inputType="textMultiLine"
                android:minLines="4"
                android:gravity="top|start"
                android:background="@drawable/custom_input"
                android:textColor="#3E2723"
                android:textColorHint="#BCAAA4"
                android:layout_marginBottom="24dp" />

            <!-- Kaydet Butonu -->
            <Button
                android:id="@+id/btnKaydet"
                android:layout_width="match_parent"
                android:layout_height="55dp"
                android:text="TARİFİ KAYDET ✨"
                android:textSize="16sp"
                android:textColor="#FFFFFF"
                android:textStyle="bold"
                android:background="@drawable/custom_button"
                android:elevation="4dp"
                android:layout_marginBottom="12dp" />

            <!-- Vazgeç Butonu -->
            <Button
                android:id="@+id/btnGeri"
                android:layout_width="match_parent"
                android:layout_height="55dp"
                android:text="VAZGEÇ / GERİ"
                android:textSize="16sp"
                android:textColor="#E64A19"
                android:textStyle="bold"
                android:background="@android:color/transparent"
                android:layout_marginBottom="20dp" />

        </LinearLayout>
    </ScrollView>
</LinearLayout>