<div class="max-w-2xl">
    <div class="mb-6">
        <h1 class="text-2xl font-semibold text-t1">Profile</h1>
        <nav class="flex gap-1 mt-4">
            <a href="{{ route('profile.personal') }}" wire:navigate class="px-3 py-1.5 text-sm rounded-lg bg-blue/10 text-blue font-medium">Personal Info</a>
            <a href="{{ route('profile.preferences') }}" wire:navigate class="px-3 py-1.5 text-sm rounded-lg text-t2 hover:text-t1 hover:bg-s2">Preferences</a>
            <a href="{{ route('profile.security') }}" wire:navigate class="px-3 py-1.5 text-sm rounded-lg text-t2 hover:text-t1 hover:bg-s2">Security</a>
        </nav>
    </div>

    @if(session('status'))
    <div class="mb-4 p-3 rounded-lg bg-green/10 border border-green/20 text-sm text-green">{{ session('status') }}</div>
    @endif

    <div class="bg-s1 border border-white/[.06] rounded-xl p-6">
        <h3 class="text-sm font-medium text-t1 mb-5">Personal Information</h3>
        <div class="space-y-4 max-w-sm">
            <div>
                <label class="block text-xs font-medium text-t2 mb-1.5">Name</label>
                <input wire:model="name" type="text"
                    class="block w-full px-3 py-2.5 bg-s2 border border-white/[.06] rounded-lg text-sm text-t1 focus:outline-none focus:ring-1 focus:ring-blue/50">
                @error('name') <p class="mt-1 text-xs text-red">{{ $message }}</p> @enderror
            </div>
            <div>
                <label class="block text-xs font-medium text-t2 mb-1.5">Email</label>
                <input wire:model="email" type="email"
                    class="block w-full px-3 py-2.5 bg-s2 border border-white/[.06] rounded-lg text-sm text-t1 focus:outline-none focus:ring-1 focus:ring-blue/50">
                @error('email') <p class="mt-1 text-xs text-red">{{ $message }}</p> @enderror
            </div>
            <button wire:click="save"
                class="px-4 py-2.5 bg-accent-gradient text-white text-sm font-medium rounded-lg hover:opacity-90 transition-opacity">
                Save Changes
            </button>
        </div>
    </div>
</div>
