<div class="rounded-lg p-4 {{ $success ? 'bg-green-50 border border-green-200' : 'bg-red-50 border border-red-200' }}">
    <div class="flex items-center">
        @if($success)
            <svg class="w-5 h-5 text-green-500 mr-2" fill="currentColor" viewBox="0 0 20 20">
                <path fill-rule="evenodd" d="M10 18a8 8 0 100-16 8 8 0 000 16zm3.707-9.293a1 1 0 00-1.414-1.414L9 10.586 7.707 9.293a1 1 0 00-1.414 1.414l2 2a1 1 0 001.414 0l4-4z" clip-rule="evenodd"/>
            </svg>
        @else
            <svg class="w-5 h-5 text-red-500 mr-2" fill="currentColor" viewBox="0 0 20 20">
                <path fill-rule="evenodd" d="M10 18a8 8 0 100-16 8 8 0 000 16zM8.707 7.293a1 1 0 00-1.414 1.414L8.586 10l-1.293 1.293a1 1 0 101.414 1.414L10 11.414l1.293 1.293a1 1 0 001.414-1.414L11.414 10l1.293-1.293a1 1 0 00-1.414-1.414L10 8.586 8.707 7.293z" clip-rule="evenodd"/>
            </svg>
        @endif
        <span class="font-medium {{ $success ? 'text-green-800' : 'text-red-800' }}">{{ $message }}</span>
    </div>

    @if($success && isset($data))
        <div class="mt-4 grid grid-cols-2 md:grid-cols-4 gap-4">
            <div class="bg-white rounded p-3">
                <div class="text-xs text-gray-500">전체</div>
                <div class="text-lg font-bold">{{ $data['total'] }}</div>
            </div>
            <div class="bg-white rounded p-3">
                <div class="text-xs text-gray-500">성공</div>
                <div class="text-lg font-bold text-green-600">{{ $data['success'] }}</div>
            </div>
            <div class="bg-white rounded p-3">
                <div class="text-xs text-gray-500">실패</div>
                <div class="text-lg font-bold text-red-600">{{ $data['failure'] }}</div>
            </div>
            <div class="bg-white rounded p-3">
                <div class="text-xs text-gray-500">성공률</div>
                <div class="text-lg font-bold">{{ $data['success_rate'] }}%</div>
            </div>
        </div>
        @if($data['invalid_tokens'] > 0)
            <div class="mt-2 text-sm text-orange-600">
                무효 토큰 {{ $data['invalid_tokens'] }}개가 비활성화되었습니다.
            </div>
        @endif
    @endif
</div>
