namespace Contime.view {
    partial class MainForm {
        /// <summary>
        /// Required designer variable.
        /// </summary>
        private System.ComponentModel.IContainer components = null;

        /// <summary>
        /// Clean up any resources being used.
        /// </summary>
        /// <param name="disposing">true if managed resources should be disposed; otherwise, false.</param>
        protected override void Dispose(bool disposing) {
            if (disposing && (components != null)) {
                components.Dispose();
            }
            base.Dispose(disposing);
        }

        #region Windows Form Designer generated code

        /// <summary>
        /// Required method for Designer support - do not modify
        /// the contents of this method with the code editor.
        /// </summary>
        private void InitializeComponent() {
            this.components = new System.ComponentModel.Container();
            System.ComponentModel.ComponentResourceManager resources = new System.ComponentModel.ComponentResourceManager(typeof(MainForm));
            this.SuspendLayout();
            // 
            // MainForm
            // 
            this.Text = "Contime - Your Contextual Timer";
            this.Size = new System.Drawing.Size(550, 700);
            this.FormBorderStyle = System.Windows.Forms.FormBorderStyle.FixedSingle;
            this.MaximizeBox = false;
            this.StartPosition = System.Windows.Forms.FormStartPosition.CenterScreen;
            this.BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(45)))), ((int)(((byte)(45)))), ((int)(((byte)(48)))));
            this.ForeColor = System.Drawing.Color.White;
            this.Font = new System.Drawing.Font("Segoe UI", 10F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0)));

            // --- Controls ---
            this.lblStatus = new System.Windows.Forms.Label();
            this.lblWorkdayTimer = new System.Windows.Forms.Label();
            this.lblTaskTimer = new System.Windows.Forms.Label();
            this.lblSelectedTaskHeader = new System.Windows.Forms.Label();
            this.lblSelectedTask = new System.Windows.Forms.Label();
            this.lblSelectedTaskTotalTime = new System.Windows.Forms.Label();
            this.btnWorkdayStartStop = new System.Windows.Forms.Button();
            this.btnTaskStartStop = new System.Windows.Forms.Button();
            this.btnGoOutOfContext = new System.Windows.Forms.Button();
            this.btnToggleTaskStatus = new System.Windows.Forms.Button();
            this.grpCreateTask = new System.Windows.Forms.GroupBox();
            this.txtNewTask = new System.Windows.Forms.TextBox();
            this.btnAddTask = new System.Windows.Forms.Button();
            this.lstTasks = new System.Windows.Forms.ListView();
            this.txtContext = new System.Windows.Forms.TextBox();
            this.btnSaveContext = new System.Windows.Forms.Button();
            this.grpSummary = new System.Windows.Forms.GroupBox();
            this.lblDayTotal = new System.Windows.Forms.Label();
            this.lblWeekTotal = new System.Windows.Forms.Label();
            this.btnExport = new System.Windows.Forms.Button();
            this.notifyIcon = new System.Windows.Forms.NotifyIcon(this.components);


            // --- Column 1: Workday Controls ---
            var lblStatusHeader = new System.Windows.Forms.Label { Text = "Current Status", Location = new System.Drawing.Point(20, 20), AutoSize = true };
            this.Controls.Add(lblStatusHeader);
            lblStatus.Text = "Idle";
            lblStatus.Location = new System.Drawing.Point(20, 45);
            lblStatus.AutoSize = true;
            lblStatus.Font = new System.Drawing.Font("Segoe UI", 12F, System.Drawing.FontStyle.Bold);
            this.Controls.Add(lblStatus);

            var lblWorkdayTimerHeader = new System.Windows.Forms.Label { Text = "Workday Timer", Location = new System.Drawing.Point(20, 90), AutoSize = true };
            this.Controls.Add(lblWorkdayTimerHeader);
            lblWorkdayTimer.Text = "00:00:00";
            lblWorkdayTimer.Location = new System.Drawing.Point(20, 115);
            lblWorkdayTimer.AutoSize = true;
            lblWorkdayTimer.Font = new System.Drawing.Font("Consolas", 18F, System.Drawing.FontStyle.Bold);
            this.Controls.Add(lblWorkdayTimer);

            btnWorkdayStartStop.Text = "Start Workday";
            btnWorkdayStartStop.Location = new System.Drawing.Point(20, 160);
            btnWorkdayStartStop.Size = new System.Drawing.Size(240, 30);
            btnWorkdayStartStop.BackColor = System.Drawing.Color.FromArgb(0, 122, 204);
            btnWorkdayStartStop.FlatStyle = System.Windows.Forms.FlatStyle.Flat;
            btnWorkdayStartStop.FlatAppearance.BorderSize = 0;
            btnWorkdayStartStop.Click += (s, e) => WorkdayStartStopClicked?.Invoke();
            this.Controls.Add(btnWorkdayStartStop);

            btnGoOutOfContext.Text = "Go Out of Context";
            btnGoOutOfContext.Location = new System.Drawing.Point(20, 200);
            btnGoOutOfContext.Size = new System.Drawing.Size(240, 30);
            btnGoOutOfContext.BackColor = System.Drawing.Color.FromArgb(80, 80, 80);
            btnGoOutOfContext.FlatStyle = System.Windows.Forms.FlatStyle.Flat;
            btnGoOutOfContext.Enabled = false;
            btnGoOutOfContext.FlatAppearance.BorderSize = 0;
            btnGoOutOfContext.Click += (s, e) => GoOutOfContextClicked?.Invoke();
            this.Controls.Add(btnGoOutOfContext);

            // --- Column 2: Task Controls ---
            lblSelectedTaskHeader.Text = "Selected Task";
            lblSelectedTaskHeader.Location = new System.Drawing.Point(280, 20);
            lblSelectedTaskHeader.AutoSize = true;
            this.Controls.Add(lblSelectedTaskHeader);

            lblSelectedTask.Text = "None";
            lblSelectedTask.Location = new System.Drawing.Point(280, 45);
            lblSelectedTask.Size = new System.Drawing.Size(240, 20);
            lblSelectedTask.Font = new System.Drawing.Font("Segoe UI", 12F, System.Drawing.FontStyle.Bold);
            lblSelectedTask.ForeColor = System.Drawing.Color.LightSkyBlue;
            this.Controls.Add(lblSelectedTask);

            var lblTaskTimerHeader = new System.Windows.Forms.Label { Text = "Task Timer", Location = new System.Drawing.Point(280, 90), AutoSize = true };
            this.Controls.Add(lblTaskTimerHeader);
            lblTaskTimer.Text = "00:00:00";
            lblTaskTimer.Location = new System.Drawing.Point(280, 115);
            lblTaskTimer.AutoSize = true;
            lblTaskTimer.Font = new System.Drawing.Font("Consolas", 18F, System.Drawing.FontStyle.Bold);
            this.Controls.Add(lblTaskTimer);

            var lblSelectedTaskTotalTimeHeader = new System.Windows.Forms.Label { Text = "Total Task Time", Location = new System.Drawing.Point(280, 145), AutoSize = true, Font = new System.Drawing.Font("Segoe UI", 8F) };
            this.Controls.Add(lblSelectedTaskTotalTimeHeader);
            lblSelectedTaskTotalTime.Text = "00:00:00";
            lblSelectedTaskTotalTime.Location = new System.Drawing.Point(400, 145);
            lblSelectedTaskTotalTime.AutoSize = true;
            lblSelectedTaskTotalTime.Font = new System.Drawing.Font("Consolas", 10F);
            this.Controls.Add(lblSelectedTaskTotalTime);


            btnTaskStartStop.Text = "Start Task";
            btnTaskStartStop.Location = new System.Drawing.Point(280, 160);
            btnTaskStartStop.Size = new System.Drawing.Size(240, 30);
            btnTaskStartStop.BackColor = System.Drawing.Color.FromArgb(40, 167, 69);
            btnTaskStartStop.FlatStyle = System.Windows.Forms.FlatStyle.Flat;
            btnTaskStartStop.Enabled = false;
            btnTaskStartStop.FlatAppearance.BorderSize = 0;
            btnTaskStartStop.Click += (s, e) => TaskStartStopClicked?.Invoke();
            this.Controls.Add(btnTaskStartStop);

            btnToggleTaskStatus.Text = "Mark as Finished";
            btnToggleTaskStatus.Location = new System.Drawing.Point(280, 200);
            btnToggleTaskStatus.Size = new System.Drawing.Size(240, 30);
            btnToggleTaskStatus.BackColor = System.Drawing.Color.FromArgb(80, 80, 80);
            btnToggleTaskStatus.FlatStyle = System.Windows.Forms.FlatStyle.Flat;
            btnToggleTaskStatus.Enabled = false;
            btnToggleTaskStatus.FlatAppearance.BorderSize = 0;
            btnToggleTaskStatus.Click += (s, e) => ToggleTaskStatusClicked?.Invoke();
            this.Controls.Add(btnToggleTaskStatus);

            // --- Task List ---
            lstTasks.Location = new System.Drawing.Point(20, 245);
            lstTasks.Size = new System.Drawing.Size(500, 200);
            lstTasks.View = System.Windows.Forms.View.Details;
            lstTasks.BackColor = System.Drawing.Color.FromArgb(30, 30, 30);
            lstTasks.ForeColor = System.Drawing.Color.White;
            lstTasks.BorderStyle = System.Windows.Forms.BorderStyle.FixedSingle;
            lstTasks.FullRowSelect = true;
            lstTasks.HeaderStyle = System.Windows.Forms.ColumnHeaderStyle.Nonclickable;
            lstTasks.MultiSelect = false;
            lstTasks.HideSelection = false;
            lstTasks.Columns.Add("Task", 240, System.Windows.Forms.HorizontalAlignment.Left);
            lstTasks.Columns.Add("Total Time", 120, System.Windows.Forms.HorizontalAlignment.Left);
            lstTasks.Columns.Add("Status", 120, System.Windows.Forms.HorizontalAlignment.Left);
            lstTasks.SelectedIndexChanged += new System.EventHandler(this.LstTasks_SelectedIndexChanged);
            lstTasks.MouseDoubleClick += new System.Windows.Forms.MouseEventHandler(this.LstTasks_MouseDoubleClick);
            this.Controls.Add(lstTasks);

            // --- Create Task ---
            grpCreateTask.Text = "Create Task";
            grpCreateTask.Location = new System.Drawing.Point(20, 455);
            grpCreateTask.Size = new System.Drawing.Size(500, 70);
            grpCreateTask.ForeColor = System.Drawing.Color.White;
            this.Controls.Add(grpCreateTask);

            txtNewTask.Location = new System.Drawing.Point(15, 30);
            txtNewTask.Size = new System.Drawing.Size(350, 25);
            txtNewTask.TextChanged += (s, e) => { btnAddTask.Enabled = !string.IsNullOrWhiteSpace(txtNewTask.Text); };
            grpCreateTask.Controls.Add(txtNewTask);

            btnAddTask.Text = "Add Task";
            btnAddTask.Location = new System.Drawing.Point(375, 29);
            btnAddTask.Size = new System.Drawing.Size(110, 27);
            btnAddTask.BackColor = System.Drawing.Color.FromArgb(80, 80, 80);
            btnAddTask.FlatStyle = System.Windows.Forms.FlatStyle.Flat;
            btnAddTask.FlatAppearance.BorderSize = 0;
            btnAddTask.Click += (s, e) => { AddTaskClicked?.Invoke(); txtNewTask.Clear(); };
            grpCreateTask.Controls.Add(btnAddTask);

            // --- Summary and Export ---
            grpSummary.Text = "Summary";
            grpSummary.Location = new System.Drawing.Point(20, 535);
            grpSummary.Size = new System.Drawing.Size(500, 110);
            grpSummary.ForeColor = System.Drawing.Color.White;
            this.Controls.Add(grpSummary);

            lblDayTotal.Text = "Today: 00:00:00";
            lblDayTotal.Location = new System.Drawing.Point(15, 30);
            lblDayTotal.AutoSize = true;
            lblDayTotal.Font = new System.Drawing.Font("Segoe UI", 10F);
            grpSummary.Controls.Add(lblDayTotal);

            lblWeekTotal.Text = "This Week: 00:00:00";
            lblWeekTotal.Location = new System.Drawing.Point(15, 60);
            lblWeekTotal.AutoSize = true;
            lblWeekTotal.Font = new System.Drawing.Font("Segoe UI", 10F);
            grpSummary.Controls.Add(lblWeekTotal);

            btnExport.Text = "Export to Excel";
            btnExport.Location = new System.Drawing.Point(320, 40);
            btnExport.Size = new System.Drawing.Size(165, 40);
            btnExport.BackColor = System.Drawing.Color.FromArgb(10, 100, 10);
            btnExport.FlatStyle = System.Windows.Forms.FlatStyle.Flat;
            btnExport.FlatAppearance.BorderSize = 0;
            btnExport.Click += new System.EventHandler(this.BtnExport_Click);
            grpSummary.Controls.Add(btnExport);

            // --- Context Input (Hidden by default) ---
            txtContext.Location = new System.Drawing.Point(20, 650); // Moved down
            txtContext.Size = new System.Drawing.Size(390, 25);
            txtContext.Visible = false;
            this.Controls.Add(txtContext);
            btnSaveContext.Text = "Save Context";
            btnSaveContext.Location = new System.Drawing.Point(420, 649); // Moved down
            btnSaveContext.Size = new System.Drawing.Size(100, 27);
            btnSaveContext.BackColor = System.Drawing.Color.FromArgb(80, 80, 80);
            btnSaveContext.FlatStyle = System.Windows.Forms.FlatStyle.Flat;
            btnSaveContext.Visible = false;
            btnSaveContext.FlatAppearance.BorderSize = 0;
            btnSaveContext.Click += (s, e) => SaveContextClicked?.Invoke();
            this.Controls.Add(btnSaveContext);

            // --- Notify Icon ---
            this.notifyIcon.Icon = ((System.Drawing.Icon)(resources.GetObject("$this.Icon")));
            this.notifyIcon.Text = "Contime";
            this.notifyIcon.Visible = true;

            this.ResumeLayout(false);
            this.PerformLayout();
        }

        #endregion

        private System.Windows.Forms.Label lblStatus;
        private System.Windows.Forms.Label lblWorkdayTimer;
        private System.Windows.Forms.Label lblTaskTimer;
        private System.Windows.Forms.Label lblSelectedTaskHeader;
        private System.Windows.Forms.Label lblSelectedTask;
        private System.Windows.Forms.Label lblSelectedTaskTotalTime;
        private System.Windows.Forms.Button btnWorkdayStartStop;
        private System.Windows.Forms.Button btnTaskStartStop;
        private System.Windows.Forms.Button btnGoOutOfContext;
        private System.Windows.Forms.Button btnToggleTaskStatus;
        private System.Windows.Forms.GroupBox grpCreateTask;
        private System.Windows.Forms.TextBox txtNewTask;
        private System.Windows.Forms.Button btnAddTask;
        private System.Windows.Forms.ListView lstTasks;
        private System.Windows.Forms.TextBox txtContext;
        private System.Windows.Forms.Button btnSaveContext;
        private System.Windows.Forms.GroupBox grpSummary;
        private System.Windows.Forms.Label lblDayTotal;
        private System.Windows.Forms.Label lblWeekTotal;
        private System.Windows.Forms.Button btnExport;
        private System.Windows.Forms.NotifyIcon notifyIcon;
    }
}

