@props([ 'type' => 'submit', 'variant' => 'primary', // primary, secondary, outline, danger 'full' => false, 'loading' => true, 'target' => null, ]) @php $baseClasses = 'inline-flex items-center justify-center gap-2 px-6 py-3.5 rounded-xl font-bold transition-all duration-300 disabled:opacity-70 disabled:cursor-not-allowed transform active:scale-95 text-lg'; $variants = [ 'primary' => 'text-white shadow-lg shadow-red-500/30 hover:-translate-y-1', 'secondary' => 'bg-gray-100 text-gray-700 hover:bg-gray-200', 'outline' => 'bg-transparent border-2 border-gray-200 text-gray-600 hover:border-wareed-red hover:text-wareed-red', 'danger' => 'bg-red-100 text-red-600 hover:bg-red-200', ]; // Inline style for primary to ensure color loading $style = $variant === 'primary' ? 'background-color: #DC2626 !important;' : ''; $classes = "{$baseClasses} {$variants[$variant]} " . ($full ? 'w-full' : ''); @endphp