<div class="p-6">
    <div class="flex items-start gap-4 mb-5">
        <div class="w-10 h-10 rounded-full bg-red/10 flex items-center justify-center flex-shrink-0">
            <svg class="w-5 h-5 text-red" fill="none" viewBox="0 0 20 20" stroke="currentColor" stroke-width="1.5">
                <path stroke-linecap="round" stroke-linejoin="round" d="M10 9V5m0 8h.01M4.93 4.93l10.14 10.14M10 18a8 8 0 100-16 8 8 0 000 16z"/>
            </svg>
        </div>
        <div class="flex-1 min-w-0">
            <h3 class="text-base font-semibold text-t1">Delete Workspace</h3>
            <p class="mt-1.5 text-sm text-t2">
                This permanently deletes <span class="text-t1 font-medium">{{ $workspaceName }}</span> and all its links, analytics, domains, and members. This action cannot be undone.
            </p>
        </div>
    </div>

    <div>
        <label class="block text-xs font-medium text-t2 mb-1.5">
            Type <span class="text-t1 font-mono">{{ $workspaceName }}</span> to confirm
        </label>
        <input wire:model="confirmation" type="text"
            class="block w-full px-3 py-2.5 bg-s2 border border-white/[.06] rounded-lg text-sm text-t1 placeholder-t3 focus:outline-none focus:ring-1 focus:ring-red/50 focus:border-red/50">
        @error('confirmation') <p class="mt-1 text-xs text-red">{{ $message }}</p> @enderror
    </div>

    <div class="flex gap-3 mt-6 justify-end">
        <button wire:click="closeModal"
            class="px-4 py-2 bg-s2 text-t2 text-sm font-medium rounded-lg hover:text-t1 transition-colors border border-white/[.06]">
            Cancel
        </button>
        <button wire:click="delete"
            class="px-4 py-2 bg-red text-white text-sm font-medium rounded-lg hover:opacity-90 transition-opacity">
            Delete Workspace
        </button>
    </div>
</div>
