<!DOCTYPE html>
<html lang="id">
<head>
    <meta charset="UTF-8">
    <title>📋 Anggota Baru Menunggu Persetujuan</title>
    <style>
        body {
            font-family: 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
            background-color: #f9fafb;
            color: #333;
            margin: 0;
            padding: 0;
        }
        .email-container {
            max-width: 600px;
            margin: 40px auto;
            background: #ffffff;
            border-radius: 12px;
            overflow: hidden;
            box-shadow: 0 4px 12px rgba(0,0,0,0.08);
            border: 1px solid #f3f4f6;
        }
        .email-header {
            background-color: #f97316; 
            color: white;
            padding: 20px 30px;
            display: flex;
            align-items: center;
            justify-content: center;
            gap: 12px;
        }
        .email-header img {
            width: 42px;
            height: 42px;
            border-radius: 8px;
            object-fit: contain;
            background: white;
            padding: 4px;
        }
        .email-header h1 {
            font-size: 22px;
            margin: 0;
            letter-spacing: 0.5px;
        }
        .email-body {
            padding: 25px 30px;
        }
        .email-body p {
            line-height: 1.6;
            margin: 8px 0;
        }
        .email-body ul {
            list-style-type: none;
            padding: 0;
            margin: 15px 0;
            background: #fff7ed;
            border: 1px solid #fed7aa;
            border-radius: 10px;
        }
        .email-body li {
            padding: 10px 15px;
            border-bottom: 1px solid #fed7aa;
        }
        .email-body li:last-child {
            border-bottom: none;
        }
        .highlight {
            font-weight: 600;
            color: #ea580c;
        }
        .email-footer {
            background: #f3f4f6;
            color: #6b7280;
            text-align: center;
            padding: 15px;
            font-size: 13px;
        }
        .btn {
            display: inline-block;
            background-color: #f97316;
            color: white;
            text-decoration: none;
            padding: 10px 18px;
            border-radius: 8px;
            margin-top: 15px;
            font-weight: 600;
        }
        .btn:hover {
            background-color: #ea580c;
        }
    </style>
</head>
<body>
    <div class="email-container">
        <div class="email-header">
            <img src="{{ asset('images/kartu.png') }}" alt="Logo Pustaka Nawasena">
            <h1>Anggota Baru Menunggu Persetujuan</h1>
        </div>
        <div class="email-body">
            <p>Halo <strong>Admin Pustaka Nawasena</strong>,</p>

            <p>Seorang <span class="highlight">anggota baru</span> telah mendaftar dan menunggu persetujuan Anda.</p>

            <ul>
                <li><strong>👤 Nama:</strong> {{ $anggota->nama }}</li>
                <li><strong>📧 Email:</strong> {{ $anggota->email }}</li>
                <li><strong>📱 No HP:</strong> {{ $anggota->no_hp ?? '-' }}</li>
                <li><strong>🏠 Alamat:</strong> {{ $anggota->alamat }}</li>
                <li><strong>🟠 Status:</strong> {{ ucfirst($anggota->status) }}</li>
            </ul>

            <p>Silakan buka dashboard admin untuk <strong>menyetujui</strong> atau <strong>menolak</strong> pendaftaran ini.</p>

            <a href="{{ url('/admin/anggota') }}" class="btn" target="_blank">Buka Dashboard Admin</a>

            <p style="margin-top: 20px;">Terima kasih atas perhatian dan tanggapannya 🙌</p>
        </div>
        <div class="email-footer">
            <p>📖 Pustaka Nawasena<br>
            Sistem Manajemen Perpustakaan Digital Bakorwil III Malang</p>
        </div>
    </div>
</body>
</html>

