namespace TravelAgencyWinForms.Forms;

partial class MainForm
{
    private System.ComponentModel.IContainer components = null;
    private Panel menuPanel;
    private Panel menuHeaderPanel;
    private FlowLayoutPanel menuItemsPanel;
    private Label appTitleLabel;
    private Label modeLabel;
    private Label loginLabel;
    private Label userNameLabel;
    private Panel contentPanel;
    private Panel heroPanel;
    private PictureBox bannerPictureBox;
    private Label heroTitleLabel;
    private Label heroSubtitleLabel;
    private FlowLayoutPanel statsPanel;
    private TableLayoutPanel dashboardTablesPanel;
    private GroupBox upcomingGroupBox;
    private GroupBox bookingsGroupBox;
    private DataGridView upcomingGrid;
    private DataGridView bookingsGrid;

    protected override void Dispose(bool disposing)
    {
        if (disposing && components != null)
            components.Dispose();

        base.Dispose(disposing);
    }

    private void InitializeComponent()
    {
        components = new System.ComponentModel.Container();
        menuPanel = new Panel();
        menuHeaderPanel = new Panel();
        menuItemsPanel = new FlowLayoutPanel();
        appTitleLabel = new Label();
        modeLabel = new Label();
        loginLabel = new Label();
        userNameLabel = new Label();
        contentPanel = new Panel();
        heroPanel = new Panel();
        bannerPictureBox = new PictureBox();
        heroTitleLabel = new Label();
        heroSubtitleLabel = new Label();
        statsPanel = new FlowLayoutPanel();
        dashboardTablesPanel = new TableLayoutPanel();
        upcomingGroupBox = new GroupBox();
        bookingsGroupBox = new GroupBox();
        upcomingGrid = new DataGridView();
        bookingsGrid = new DataGridView();

        SuspendLayout();

        Text = "Турагентство";
        StartPosition = FormStartPosition.CenterScreen;
        WindowState = FormWindowState.Maximized;
        MinimumSize = new Size(1200, 760);

        menuPanel.Dock = DockStyle.Left;
        menuPanel.Width = 260;

        menuHeaderPanel.Dock = DockStyle.Top;
        menuHeaderPanel.Height = 140;
        menuHeaderPanel.Padding = new Padding(18, 18, 18, 12);

        appTitleLabel.Dock = DockStyle.Top;
        appTitleLabel.Height = 34;
        appTitleLabel.Font = new Font("Segoe UI Semibold", 18F);

        modeLabel.Dock = DockStyle.Top;
        modeLabel.Height = 24;
        modeLabel.Font = new Font("Segoe UI", 10F);

        loginLabel.Dock = DockStyle.Bottom;
        loginLabel.Height = 20;
        loginLabel.Font = new Font("Segoe UI", 9F);

        userNameLabel.Dock = DockStyle.Bottom;
        userNameLabel.Height = 24;
        userNameLabel.Font = new Font("Segoe UI Semibold", 11F);

        menuHeaderPanel.Controls.Add(loginLabel);
        menuHeaderPanel.Controls.Add(userNameLabel);
        menuHeaderPanel.Controls.Add(modeLabel);
        menuHeaderPanel.Controls.Add(appTitleLabel);

        menuItemsPanel.Dock = DockStyle.Fill;
        menuItemsPanel.Padding = new Padding(12, 8, 12, 12);
        menuItemsPanel.FlowDirection = FlowDirection.TopDown;
        menuItemsPanel.WrapContents = false;
        menuItemsPanel.AutoScroll = true;

        menuPanel.Controls.Add(menuItemsPanel);
        menuPanel.Controls.Add(menuHeaderPanel);

        contentPanel.Dock = DockStyle.Fill;
        contentPanel.Padding = new Padding(18);

        heroPanel.Dock = DockStyle.Top;
        heroPanel.Height = 260;
        heroPanel.Padding = new Padding(24);
        heroPanel.BorderStyle = BorderStyle.FixedSingle;

        bannerPictureBox.Dock = DockStyle.Right;
        bannerPictureBox.Width = 650;
        bannerPictureBox.SizeMode = PictureBoxSizeMode.Zoom;

        heroTitleLabel.Dock = DockStyle.Top;
        heroTitleLabel.Height = 46;
        heroTitleLabel.Font = new Font("Segoe UI Semibold", 22F);

        heroSubtitleLabel.Dock = DockStyle.Top;
        heroSubtitleLabel.Height = 28;
        heroSubtitleLabel.Font = new Font("Segoe UI", 10F);

        heroPanel.Controls.Add(heroSubtitleLabel);
        heroPanel.Controls.Add(heroTitleLabel);
        heroPanel.Controls.Add(bannerPictureBox);

        statsPanel.Dock = DockStyle.Top;
        statsPanel.Height = 130;
        statsPanel.FlowDirection = FlowDirection.LeftToRight;
        statsPanel.WrapContents = false;
        statsPanel.AutoScroll = true;
        statsPanel.Padding = new Padding(0, 14, 0, 10);

        dashboardTablesPanel.Dock = DockStyle.Fill;
        dashboardTablesPanel.ColumnCount = 2;
        dashboardTablesPanel.RowCount = 1;
        dashboardTablesPanel.ColumnStyles.Add(new ColumnStyle(SizeType.Percent, 50));
        dashboardTablesPanel.ColumnStyles.Add(new ColumnStyle(SizeType.Percent, 50));

        upcomingGroupBox.Text = "Ближайшие туры";
        upcomingGroupBox.Dock = DockStyle.Fill;
        upcomingGroupBox.Padding = new Padding(10);

        bookingsGroupBox.Text = "Последние бронирования";
        bookingsGroupBox.Dock = DockStyle.Fill;
        bookingsGroupBox.Padding = new Padding(10);

        upcomingGrid.Dock = DockStyle.Fill;
        upcomingGrid.AutoSizeColumnsMode = DataGridViewAutoSizeColumnsMode.Fill;

        bookingsGrid.Dock = DockStyle.Fill;
        bookingsGrid.AutoSizeColumnsMode = DataGridViewAutoSizeColumnsMode.Fill;

        upcomingGroupBox.Controls.Add(upcomingGrid);
        bookingsGroupBox.Controls.Add(bookingsGrid);

        dashboardTablesPanel.Controls.Add(upcomingGroupBox, 0, 0);
        dashboardTablesPanel.Controls.Add(bookingsGroupBox, 1, 0);

        contentPanel.Controls.Add(dashboardTablesPanel);
        contentPanel.Controls.Add(statsPanel);
        contentPanel.Controls.Add(heroPanel);

        Controls.Add(contentPanel);
        Controls.Add(menuPanel);

        ResumeLayout(false);
    }
}
