@props([
    'size' => 'md',
    'showText' => true
])

@php
$sizes = [
    'sm' => 'h-8 w-8',      // 32px - Small
    'md' => 'h-10 w-10',    // 40px - Default
    'lg' => 'h-12 w-12',    // 48px - Large
];
$sizeClass = $sizes[$size] ?? $sizes['md'];
@endphp

<div {{ $attributes->merge(['class' => 'flex items-center gap-2']) }}>
    <img
        src="{{ asset('images/logo.png') }}"
        alt="{{ __('LIBRA for Rights') }}"
        class="{{ $sizeClass }} object-contain"
    />
    @if($showText)
        <span class="font-semibold text-sm truncate">{{ __('LIBRA for Rights') }}</span>
    @endif
</div>
