<?xml version="1.0" encoding="utf-8"?>
<ui:UXML xmlns:ui="UnityEngine.UIElements" xmlns:uie="UnityEditor.UIElements" editor-extension-mode="True">
    <Style src="FrameDoctorWindow.uss" />

    <ui:VisualElement class="root">
        <!-- Header -->
        <ui:VisualElement class="header">
            <ui:Label text="FrameDoctor" class="title" />
            <ui:Label text="Profiler Capture &amp; Export" class="subtitle" />
        </ui:VisualElement>

        <!-- Status Section -->
        <ui:VisualElement name="status-container" class="status-container hidden">
            <ui:VisualElement class="status-indicator" />
            <ui:Label name="status-label" text="Capturing..." class="status-label" />
        </ui:VisualElement>

        <!-- Capture Controls -->
        <ui:VisualElement class="section">
            <ui:Label text="Capture" class="section-title" />
            <ui:Button name="start-capture-btn" text="&#x25B6; Play &amp; Capture" class="button primary full-width" />
            <ui:VisualElement class="button-row capture-buttons hidden" name="capture-buttons">
                <ui:Button name="stop-capture-btn" text="Stop Capture &amp; Export" class="button primary" />
                <ui:Button name="cancel-capture-btn" text="Cancel" class="button secondary" />
            </ui:VisualElement>
        </ui:VisualElement>

        <!-- Export Info -->
        <ui:VisualElement name="export-info" class="section export-info hidden">
            <ui:Label text="Last Export" class="section-title" />
            <ui:VisualElement class="export-path-container">
                <ui:Label name="export-path" text="" class="export-path" />
            </ui:VisualElement>
            <ui:Button name="open-folder-btn" text="Open Export Folder" class="button small" />
        </ui:VisualElement>

        <!-- Footer -->
        <ui:VisualElement class="footer">
            <ui:Button name="settings-btn" text="&#x2699;" class="icon-button" tooltip="Open Settings" />
            <ui:VisualElement class="footer-center">
                <ui:Button name="website-btn" text="framedoctor.dev" class="link-button" tooltip="Visit Website" />
            </ui:VisualElement>
            <ui:VisualElement class="footer-right">
                <ui:Button name="docs-btn" text="&#x1F4D6;" class="icon-button" tooltip="Documentation" />
                <ui:Label text="v1.0.1" class="version" />
            </ui:VisualElement>
        </ui:VisualElement>
    </ui:VisualElement>
</ui:UXML>
