<Window 
    xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
    xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
    Title="514 MSG SCO Administration Tool" Height="1000" Width="900" WindowStartupLocation="CenterScreen" Background="#F0F0F0">
    <Grid Margin="10">
        <TabControl Name="MainTabControl" Background="White">
            
            <TabItem Header="Computer Management" Name="TabComputer">
                <Grid Margin="15">
                    <Grid.ColumnDefinitions>
                        <ColumnDefinition Width="220"/>
                        <ColumnDefinition Width="*"/>
                    </Grid.ColumnDefinitions>
                    <Grid.RowDefinitions>
                        <RowDefinition Height="*"/>
                        <RowDefinition Height="Auto"/>
                        <RowDefinition Height="180"/>
                    </Grid.RowDefinitions>

                    <!-- LEFT COLUMN: ACTIONS -->
                    <GroupBox Header="Select Action" Grid.Column="0" Grid.Row="0" Margin="0,0,15,0" FontWeight="Bold">
                        <StackPanel Margin="10" TextElement.FontWeight="Normal">
                            <RadioButton Name="RadGet" Content="Get Computer Info" IsChecked="True" Margin="0,8"/>
                            <RadioButton Name="RadEnable" Content="Enable Computer" Margin="0,8"/>
                            <RadioButton Name="RadDisable" Content="Disable Computer" Margin="0,8"/>
                            <RadioButton Name="RadReset" Content="Reset Computer" Margin="0,8"/>
                            <Separator Margin="0,10"/>
                            <RadioButton Name="RadNew" Content="Create New Computer" Margin="0,8"/>
                            <RadioButton Name="RadRemove" Content="Remove Computer" Margin="0,8" Foreground="DarkRed"/>
                            <CheckBox Name="ChkRecycleBin" Content="Include Recycle Bin" Margin="20,0,0,0" IsEnabled="False" FontStyle="Italic"/>
                        </StackPanel>
                    </GroupBox>

                    <!-- RIGHT COLUMN: INPUTS -->
                    <Grid Grid.Column="1" Grid.Row="0">
                        <Grid.RowDefinitions>
                            <RowDefinition Height="Auto"/>
                            <RowDefinition Height="*"/>
                            <RowDefinition Height="Auto"/>
                        </Grid.RowDefinitions>

                        <!-- Naming Convention Settings -->
                        <GroupBox Header="Naming Convention &amp; Import" Grid.Row="0" FontWeight="Bold" Margin="0,0,0,10">
                            <StackPanel Margin="10" TextElement.FontWeight="Normal">
                                <Grid>
                                    <Grid.ColumnDefinitions>
                                        <ColumnDefinition Width="Auto"/>
                                        <ColumnDefinition Width="50"/>
                                        <ColumnDefinition Width="Auto"/>
                                        <ColumnDefinition Width="130"/>
                                        <ColumnDefinition Width="Auto"/>
                                        <ColumnDefinition Width="40"/>
                                    </Grid.ColumnDefinitions>
                                    
                                    <TextBlock Text="Prefix:" Grid.Column="0" VerticalAlignment="Center" Margin="0,0,5,0"/>
                                    <TextBox Name="TxtPrefix" Grid.Column="1" Margin="0,0,10,0"/>
                                    
                                    <TextBlock Text="Type:" Grid.Column="2" VerticalAlignment="Center" Margin="0,0,5,0"/>
                                    <ComboBox Name="CmbDeviceType" Grid.Column="3" Margin="0,0,10,0">
                                        <ComboBoxItem Content="W - Workstation"/>
                                        <ComboBoxItem Content="L - Laptop"/>
                                        <ComboBoxItem Content="T - Tablet"/>
                                        <ComboBoxItem Content="V - Virtual Machine"/>
                                    </ComboBox>
                                    
                                    <TextBlock Text="SN Digits:" Grid.Column="4" VerticalAlignment="Center" Margin="0,0,5,0"/>
                                    <TextBox Name="TxtSnDigits" Grid.Column="5"/>
                                </Grid>
                                <Button Name="BtnImport" Content="Import File (.txt, .csv, .xlsx)" Margin="0,10,0,0" Height="25"/>
                            </StackPanel>
                        </GroupBox>

						<!-- Target Computers -->
						<GroupBox Header="Target Computer(s)" Grid.Row="1" FontWeight="Bold">
							<Grid Margin="10" TextElement.FontWeight="Normal">
								<Grid.RowDefinitions>
									<RowDefinition Height="Auto"/>
									<RowDefinition Height="*"/>
								</Grid.RowDefinitions>
								<TextBlock Text="Enter serials/names (Press ENTER to format):" Foreground="Gray" Margin="0,0,0,5" Grid.Row="0"/>
								<TextBox Name="TxtComputerNames" MinHeight="180" TextWrapping="Wrap" AcceptsReturn="True" VerticalScrollBarVisibility="Auto" VerticalContentAlignment="Top" Grid.Row="1"/>
							</Grid>
						</GroupBox>

                        <!-- New Computer Details -->
                        <GroupBox Name="GrpNewDetails" Header="New Computer Details" Grid.Row="2" Margin="0,10,0,0" FontWeight="Bold" IsEnabled="False">
                            <Grid Margin="10" TextElement.FontWeight="Normal">
                                <Grid.ColumnDefinitions>
                                    <ColumnDefinition Width="Auto"/>
                                    <ColumnDefinition Width="*"/>
                                </Grid.ColumnDefinitions>
                                <Grid.RowDefinitions>
                                    <RowDefinition Height="Auto"/>
                                    <RowDefinition Height="Auto"/>
                                    <RowDefinition Height="Auto"/>
                                    <RowDefinition Height="Auto"/>
                                    <RowDefinition Height="Auto"/>
                                    <RowDefinition Height="Auto"/>
                                    <RowDefinition Height="Auto"/>
                                </Grid.RowDefinitions>

                                <TextBlock Text="OS:" Grid.Row="0" Grid.Column="0" VerticalAlignment="Center" Margin="0,3,10,3"/>
                                <TextBox Name="TxtOS" Grid.Row="0" Grid.Column="1" Margin="0,3"/>

                                <TextBlock Text="Computer Model:" Grid.Row="1" Grid.Column="0" VerticalAlignment="Center" Margin="0,3,10,3"/>
                                <TextBox Name="TxtModel" Grid.Row="1" Grid.Column="1" Margin="0,3"/>

                                <TextBlock Text="Organization:" Grid.Row="2" Grid.Column="0" VerticalAlignment="Center" Margin="0,3,10,3"/>
                                <TextBox Name="TxtOrg" Grid.Row="2" Grid.Column="1" Margin="0,3"/>

                                <TextBlock Text="Building Number:" Grid.Row="3" Grid.Column="0" VerticalAlignment="Center" Margin="0,3,10,3"/>
                                <TextBox Name="TxtBldg" Grid.Row="3" Grid.Column="1" Margin="0,3"/>

                                <TextBlock Text="Room Number:" Grid.Row="4" Grid.Column="0" VerticalAlignment="Center" Margin="0,3,10,3"/>
                                <TextBox Name="TxtRoom" Grid.Row="4" Grid.Column="1" Margin="0,3"/>
                                
                                <TextBlock Text="Extension:" Grid.Row="5" Grid.Column="0" VerticalAlignment="Center" Margin="0,3,10,3"/>
                                <TextBox Name="TxtExt" Grid.Row="5" Grid.Column="1" Margin="0,3"/>

                                <TextBlock Text="Description:" Grid.Row="6" Grid.Column="0" VerticalAlignment="Center" Margin="0,3,10,3" FontWeight="Bold"/>
                                <TextBox Name="TxtDesc" Grid.Row="6" Grid.Column="1" Margin="0,3" Background="#E8E8E8"/>
                            </Grid>
                        </GroupBox>
                    </Grid>

                    <!-- BOTTOM MIDDLE: EXECUTE & PROGRESS -->
                    <Grid Grid.Column="0" Grid.ColumnSpan="2" Grid.Row="1" Margin="0,15">
                        <Grid.ColumnDefinitions>
                            <ColumnDefinition Width="*"/>
                            <ColumnDefinition Width="Auto"/>
                        </Grid.ColumnDefinitions>
                        <ProgressBar Name="ProgBar" Grid.Column="0" Height="25" Margin="0,0,15,0" Minimum="0" Maximum="100"/>
                        <Button Name="BtnExecute" Grid.Column="1" Content="Execute Action" Width="150" Height="35" FontWeight="Bold" Background="#005A9C" Foreground="White"/>
                    </Grid>

                    <!-- BOTTOM: OUTPUT CONSOLE -->
                    <GroupBox Header="Output / Logs" Grid.Column="0" Grid.ColumnSpan="2" Grid.Row="2" FontWeight="Bold">
                        <TextBox Name="TxtOutput" Margin="5" IsReadOnly="True" TextWrapping="Wrap" VerticalScrollBarVisibility="Auto" FontFamily="Consolas" FontWeight="Normal" Background="#1E1E1E" Foreground="#D4D4D4"/>
                    </GroupBox>
                </Grid>
            </TabItem>
            
            <TabItem Header="User Management" Name="TabUser" IsEnabled="False">
                <TextBlock Text="User Management Module Coming Soon..." HorizontalAlignment="Center" VerticalAlignment="Center" FontSize="18" Foreground="Gray"/>
            </TabItem>
            
        </TabControl>
    </Grid>
</Window>
