﻿<UserControl x:Class="EcoRideDB.AddBike"
             xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
             xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
             Height="400" Width="600">

    <Grid>
        <Grid.RowDefinitions>
            <RowDefinition Height="Auto"/>
            <RowDefinition Height="*"/>
            <RowDefinition Height="Auto"/>
        </Grid.RowDefinitions>

        <TextBlock Text="Add New Bike" FontSize="24" HorizontalAlignment="Center" Margin="10" Grid.Row="0" Foreground="White" FontFamily="Segoe UI"/>

        <ScrollViewer VerticalScrollBarVisibility="Auto" Grid.Row="1" Margin="50">
            <StackPanel VerticalAlignment="Top">

                <StackPanel Orientation="Vertical" Margin="0,10">
                    <TextBlock Text="Bike Type" FontWeight="Bold" Foreground="White"/>
                    <TextBox Name="txtBikeType" Background="White" Foreground="Black"/>
                </StackPanel>

                <StackPanel Orientation="Vertical" Margin="0,10">
                    <TextBlock Text="Condition" FontWeight="Bold" Foreground="White"/>
                    <TextBox Name="txtCondition" Background="White" Foreground="Black"/>
                </StackPanel>

                <StackPanel Orientation="Vertical" Margin="0,10">
                    <TextBlock Text="Status" FontWeight="Bold" Foreground="White"/>
                    <ComboBox Name="cmbStatus" Background="White" Foreground="Black">
                        <ComboBoxItem Content="Available" IsSelected="True"/>
                        <ComboBoxItem Content="Rented"/>
                        <ComboBoxItem Content="Maintenance"/>
                        <ComboBoxItem Content="Retired"/>
                    </ComboBox>
                </StackPanel>

                <StackPanel Orientation="Vertical" Margin="0,10">
                    <TextBlock Text="Station ID (optional)" FontWeight="Bold" Foreground="White"/>
                    <TextBox Name="txtStationID" Background="White" Foreground="Black"/>
                </StackPanel>

            </StackPanel>
        </ScrollViewer>

        <Button Content="Add Bike" Click="AddBike_Click" Grid.Row="2" Width="120" HorizontalAlignment="Center" Margin="0,10" Background="#747578"/>
    </Grid>
</UserControl>