<?php

namespace Database\Seeders;

use App\Models\SystemSetting;
use Illuminate\Database\Seeder;

class SystemSettingSeeder extends Seeder
{
    public function run(): void
    {
        $settings = [
            0 => [
                'key' => 'app_logo',
                'value' => 'assets/img/logo.png',
                'type' => 'image_path',
                'group' => 'branding',
                'is_public' => true,
                'description' => 'Application logo path',
            ],
            1 => [
                'key' => 'app_favicon',
                'value' => 'assets/img/favicon.png',
                'type' => 'image_path',
                'group' => 'branding',
                'is_public' => true,
                'description' => 'Application favicon path',
            ],
            2 => [
                'key' => 'regional_timezone',
                'value' => 'Asia/Jakarta',
                'type' => 'string',
                'group' => 'regional',
                'is_public' => true,
                'description' => 'System default timezone',
            ],
            3 => [
                'key' => 'regional_date_format',
                'value' => 'Y-m-d',
                'type' => 'string',
                'group' => 'regional',
                'is_public' => true,
                'description' => 'Date display format',
            ],
            4 => [
                'key' => 'regional_time_format',
                'value' => 'H:i',
                'type' => 'string',
                'group' => 'regional',
                'is_public' => true,
                'description' => 'Time display format (12/24 hour)',
            ],
            5 => [
                'key' => 'feature_facebook_oauth',
                'value' => '0',
                'type' => 'bool',
                'group' => 'feature_flags',
                'is_public' => false,
                'description' => 'Toggle Facebook OAuth login',
            ],
            6 => [
                'key' => 'feature_github_oauth',
                'value' => '0',
                'type' => 'bool',
                'group' => 'feature_flags',
                'is_public' => false,
                'description' => 'Toggle GitHub OAuth login',
            ],
            7 => [
                'key' => 'social_login_callback_url',
                'value' => '/auth/callback',
                'type' => 'string',
                'group' => 'feature_flags',
                'is_public' => false,
                'description' => 'Global Social Login Callback URL',
            ],
            8 => [
                'key' => 'login_max_attempts',
                'value' => '5',
                'type' => 'int',
                'group' => 'login_security',
                'is_public' => false,
                'description' => 'Maximum Login Attempts',
            ],
            9 => [
                'key' => 'login_lockout_duration',
                'value' => '15',
                'type' => 'int',
                'group' => 'login_security',
                'is_public' => false,
                'description' => 'Lockout Duration (Minutes)',
            ],
            10 => [
                'key' => 'login_lockout_notify',
                'value' => '0',
                'type' => 'bool',
                'group' => 'login_security',
                'is_public' => false,
                'description' => 'Notify upon Lockout',
            ],
            11 => [
                'key' => 'two_factor_auth',
                'value' => '0',
                'type' => 'bool',
                'group' => 'login_security',
                'is_public' => false,
                'description' => 'Enable 2FA',
            ],
            12 => [
                'key' => 'two_factor_method',
                'value' => 'app',
                'type' => 'string',
                'group' => 'login_security',
                'is_public' => false,
                'description' => '2FA Method',
            ],
            13 => [
                'key' => 'captcha_enabled',
                'value' => '0',
                'type' => 'bool',
                'group' => 'login_security',
                'is_public' => true,
                'description' => 'Enable Captcha',
            ],
            14 => [
                'key' => 'captcha_version',
                'value' => 'v3',
                'type' => 'string',
                'group' => 'login_security',
                'is_public' => true,
                'description' => 'reCAPTCHA Version',
            ],
            15 => [
                'key' => 'login_log_enabled',
                'value' => '0',
                'type' => 'bool',
                'group' => 'login_security',
                'is_public' => false,
                'description' => 'Log Login Activity',
            ],
            16 => [
                'key' => 'password_min_length',
                'value' => '12',
                'type' => 'int',
                'group' => 'password_policy',
                'is_public' => true,
                'description' => 'Minimum Password Length',
            ],
            17 => [
                'key' => 'password_max_length',
                'value' => '30',
                'type' => 'int',
                'group' => 'password_policy',
                'is_public' => true,
                'description' => 'Maximum Password Length',
            ],
            18 => [
                'key' => 'password_expiry_days',
                'value' => '0',
                'type' => 'int',
                'group' => 'password_policy',
                'is_public' => false,
                'description' => 'Password Validity (Days)',
            ],
            19 => [
                'key' => 'password_reset_link_expiry',
                'value' => '60',
                'type' => 'int',
                'group' => 'password_policy',
                'is_public' => false,
                'description' => 'Password Reset Link Expiry (Minutes)',
            ],
            20 => [
                'key' => 'session_lifetime',
                'value' => '120',
                'type' => 'int',
                'group' => 'session_security',
                'is_public' => false,
                'description' => 'Session Lifetime / Idle Timeout (Minutes)',
            ],
            21 => [
                'key' => 'session_single_session',
                'value' => '0',
                'type' => 'bool',
                'group' => 'session_security',
                'is_public' => false,
                'description' => 'Only allow 1 active session per user',
            ],
            22 => [
                'key' => 'session_auto_logout_idle',
                'value' => '30',
                'type' => 'int',
                'group' => 'session_security',
                'is_public' => false,
                'description' => 'Auto Logout Idle (Minutes)',
            ],
            23 => [
                'key' => 'session_allow_remember_me',
                'value' => '0',
                'type' => 'bool',
                'group' => 'session_security',
                'is_public' => true,
                'description' => 'Allow Remember Me on Login',
            ],
            24 => [
                'key' => 'session_remember_me_duration',
                'value' => '30',
                'type' => 'int',
                'group' => 'session_security',
                'is_public' => false,
                'description' => 'Remember Me Duration (Days)',
            ],
            25 => [
                'key' => 'session_secure_cookie',
                'value' => '0',
                'type' => 'bool',
                'group' => 'session_security',
                'is_public' => true,
                'description' => 'Secure Cookie (HTTPS Only)',
            ],
            26 => [
                'key' => 'session_encrypt',
                'value' => '0',
                'type' => 'bool',
                'group' => 'session_security',
                'is_public' => false,
                'description' => 'Encrypt Session Data',
            ],
            27 => [
                'key' => 'session_concurrent_limit',
                'value' => '0',
                'type' => 'int',
                'group' => 'session_security',
                'is_public' => false,
                'description' => 'Concurrent Session Limit (Per User)',
            ],
            28 => [
                'key' => 'two_factor_trust_days',
                'value' => '30',
                'type' => 'int',
                'group' => 'login_security',
                'is_public' => false,
                'description' => 'Remember Trusted Devices (Days)',
            ],
            29 => [
                'key' => 'webauthn_enabled',
                'value' => '0',
                'type' => 'bool',
                'group' => 'login_security',
                'is_public' => true,
                'description' => 'Enable Passkeys (Biometric/FIDO2)',
            ],
            30 => [
                'key' => 'rate_limit_per_ip',
                'value' => '60',
                'type' => 'int',
                'group' => 'ip_access',
                'is_public' => false,
                'description' => 'Max requests per minute per IP',
            ],
            31 => [
                'key' => 'auto_block_ip',
                'value' => '0',
                'type' => 'bool',
                'group' => 'ip_access',
                'is_public' => false,
                'description' => 'Automatically block suspicious IPs',
            ],
            32 => [
                'key' => 'threshold_auto_block',
                'value' => '100',
                'type' => 'int',
                'group' => 'ip_access',
                'is_public' => false,
                'description' => 'Hits threshold before auto-block',
            ],
            33 => [
                'key' => 'force_https',
                'value' => '0',
                'type' => 'bool',
                'group' => 'ip_access',
                'is_public' => true,
                'description' => 'Force HTTPS redirection',
            ],
            34 => [
                'key' => 'github_client_id',
                'value' => '',
                'type' => 'string',
                'group' => 'feature_flags',
                'is_public' => false,
                'description' => 'GitHub Client ID',
            ],
            35 => [
                'key' => 'github_client_secret',
                'value' => '',
                'type' => 'string',
                'group' => 'feature_flags',
                'is_public' => false,
                'description' => 'GitHub Client Secret',
            ],
            36 => [
                'key' => 'captcha_site_key',
                'value' => '6LdPs7ssAAAAAGMvwfGmadPEyKDrWD2pEhsbZigh',
                'type' => 'string',
                'group' => 'login_security',
                'is_public' => true,
                'description' => 'reCAPTCHA Site Key',
            ],
            37 => [
                'key' => 'ip_blacklist',
                'value' => '',
                'type' => 'string',
                'group' => 'ip_access',
                'is_public' => false,
                'description' => 'Global IP Blacklist (Comma separated)',
            ],
            38 => [
                'key' => 'footer_text',
                'value' => '© 2026 biiproject. All rights reserved.',
                'type' => 'string',
                'group' => 'branding',
                'is_public' => true,
                'description' => 'Footer text',
            ],
            39 => [
                'key' => 'google_client_secret',
                'value' => '',
                'type' => 'string',
                'group' => 'feature_flags',
                'is_public' => false,
                'description' => 'Google Client Secret',
            ],
            40 => [
                'key' => 'facebook_app_id',
                'value' => '',
                'type' => 'string',
                'group' => 'feature_flags',
                'is_public' => false,
                'description' => 'Facebook App ID',
            ],
            41 => [
                'key' => 'facebook_app_secret',
                'value' => '',
                'type' => 'string',
                'group' => 'feature_flags',
                'is_public' => false,
                'description' => 'Facebook App Secret',
            ],
            42 => [
                'key' => 'feature_google_oauth',
                'value' => '0',
                'type' => 'bool',
                'group' => 'feature_flags',
                'is_public' => false,
                'description' => 'Toggle Google OAuth login',
            ],
            43 => [
                'key' => 'session_driver',
                'value' => 'database',
                'type' => 'string',
                'group' => 'session_security',
                'is_public' => false,
                'description' => 'Session Driver (file/redis/database)',
            ],
            44 => [
                'key' => 'password_require_lowercase',
                'value' => '0',
                'type' => 'bool',
                'group' => 'password_policy',
                'is_public' => true,
                'description' => 'Require Lowercase Letters',
            ],
            45 => [
                'key' => 'feature_notification_center',
                'value' => '1',
                'type' => 'bool',
                'group' => 'feature_flags',
                'is_public' => false,
                'description' => 'Toggle notification center feature',
            ],
            46 => [
                'key' => 'captcha_secret_key',
                'value' => '6LdPs7ssAAAAAFSjfPdODZv3ddG2O6eFOG1klRI4',
                'type' => 'string',
                'group' => 'login_security',
                'is_public' => false,
                'description' => 'reCAPTCHA Secret',
            ],
            47 => [
                'key' => 'ip_whitelist_admin',
                'value' => '',
                'type' => 'string',
                'group' => 'ip_access',
                'is_public' => false,
                'description' => 'Admin IP Whitelist (Comma separated)',
            ],
            48 => [
                'key' => 'app_tagline1',
                'value' => 'We design, deploy, and optimize AI solutions. Built around your business needs.',
                'type' => 'string',
                'group' => 'branding',
                'is_public' => true,
                'description' => 'Secondary tagline',
            ],
            49 => [
                'key' => 'default_locale',
                'value' => 'en',
                'type' => 'string',
                'group' => 'branding',
                'is_public' => true,
                'description' => 'Default language',
            ],
            50 => [
                'key' => 'app_name',
                'value' => 'biiproject',
                'type' => 'string',
                'group' => 'branding',
                'is_public' => true,
                'description' => 'Application name',
            ],
            51 => [
                'key' => 'password_require_numeric',
                'value' => '0',
                'type' => 'bool',
                'group' => 'password_policy',
                'is_public' => true,
                'description' => 'Require Numbers',
            ],
            52 => [
                'key' => 'password_require_special',
                'value' => '0',
                'type' => 'bool',
                'group' => 'password_policy',
                'is_public' => true,
                'description' => 'Require Symbols / Special Characters',
            ],
            53 => [
                'key' => 'app_tagline',
                'value' => 'Custom AI Solutions for Modern Businesses',
                'type' => 'string',
                'group' => 'branding',
                'is_public' => true,
                'description' => 'Primary tagline',
            ],
            54 => [
                'key' => 'password_require_uppercase',
                'value' => '0',
                'type' => 'bool',
                'group' => 'password_policy',
                'is_public' => true,
                'description' => 'Require Uppercase Letters',
            ],
            55 => [
                'key' => 'google_client_id',
                'value' => '',
                'type' => 'string',
                'group' => 'feature_flags',
                'is_public' => false,
                'description' => 'Google Client ID',
            ],
            56 => [
                'key' => 'hsts_enabled',
                'value' => '0',
                'type' => 'bool',
                'group' => 'ip_access',
                'is_public' => true,
                'description' => 'Enable HTTP Strict Transport Security',
            ],
            57 => [
                'key' => 'cors_origins',
                'value' => '*',
                'type' => 'string',
                'group' => 'ip_access',
                'is_public' => false,
                'description' => 'Allowed CORS Origins',
            ],
            58 => [
                'key' => 'cors_methods',
                'value' => '*',
                'type' => 'string',
                'group' => 'ip_access',
                'is_public' => false,
                'description' => 'Allowed CORS Methods',
            ],
            59 => [
                'key' => 'cors_headers',
                'value' => '*',
                'type' => 'string',
                'group' => 'ip_access',
                'is_public' => false,
                'description' => 'Allowed CORS Headers',
            ],
            60 => [
                'key' => 'mail_driver',
                'value' => 'smtp',
                'type' => 'string',
                'group' => 'notifications',
                'is_public' => false,
                'description' => 'Email Driver (smtp, mailgun, ses)',
            ],
            61 => [
                'key' => 'mail_port',
                'value' => '587',
                'type' => 'int',
                'group' => 'notifications',
                'is_public' => false,
                'description' => 'SMTP Port (587/465/25)',
            ],
            62 => [
                'key' => 'mail_encryption',
                'value' => 'tls',
                'type' => 'string',
                'group' => 'notifications',
                'is_public' => false,
                'description' => 'Encryption (tls/ssl/null)',
            ],
            63 => [
                'key' => 'mail_from_address',
                'value' => 'noreply@example.com',
                'type' => 'string',
                'group' => 'notifications',
                'is_public' => false,
                'description' => 'Sender Email Address',
            ],
            64 => [
                'key' => 'mail_from_name',
                'value' => 'System Notification',
                'type' => 'string',
                'group' => 'notifications',
                'is_public' => false,
                'description' => 'Sender Display Name',
            ],
            65 => [
                'key' => 'backup_db_frequency',
                'value' => 'daily',
                'type' => 'string',
                'group' => 'backups',
                'is_public' => false,
                'description' => 'Backup Frequency',
            ],
            66 => [
                'key' => 'backup_db_time',
                'value' => '11:00',
                'type' => 'string',
                'group' => 'backups',
                'is_public' => false,
                'description' => 'Execution Time',
            ],
            67 => [
                'key' => 'backup_db_retention',
                'value' => '7',
                'type' => 'int',
                'group' => 'backups',
                'is_public' => false,
                'description' => 'Retention Policy (Keep last N)',
            ],
            68 => [
                'key' => 'backup_db_compress',
                'value' => '0',
                'type' => 'bool',
                'group' => 'backups',
                'is_public' => false,
                'description' => 'Compress with gzip',
            ],
            69 => [
                'key' => 'backup_db_encrypt',
                'value' => '0',
                'type' => 'bool',
                'group' => 'backups',
                'is_public' => false,
                'description' => 'AES-256 Encryption',
            ],
            70 => [
                'key' => 'backup_db_notify_on',
                'value' => 'failed',
                'type' => 'string',
                'group' => 'backups',
                'is_public' => false,
                'description' => 'Notification Trigger (success/failed/both)',
            ],
            71 => [
                'key' => 'maintenance_mode_message',
                'value' => 'We are currently performing scheduled maintenance. We will be back shortly!',
                'type' => 'string',
                'group' => 'maintenance',
                'is_public' => true,
                'description' => 'Maintenance message',
            ],
            72 => [
                'key' => 'maintenance_mode_title',
                'value' => 'biiproject.com',
                'type' => 'string',
                'group' => 'maintenance',
                'is_public' => true,
                'description' => 'Maintenance page title',
            ],
            73 => [
                'key' => 'maintenance_mode_retry',
                'value' => '120',
                'type' => 'int',
                'group' => 'maintenance',
                'is_public' => false,
                'description' => 'Retry-After seconds',
            ],
            74 => [
                'key' => 'maintenance_mode_image',
                'value' => 'assets/img/maintenance.png',
                'type' => 'image_path',
                'group' => 'maintenance',
                'is_public' => true,
                'description' => 'Maintenance illustration image',
            ],
            75 => [
                'key' => 'tos_document_version',
                'value' => '1',
                'type' => 'int',
                'group' => 'content_legal',
                'is_public' => true,
                'description' => 'Current version of Terms of Use',
            ],
            76 => [
                'key' => 'maintenance_mode_secret',
                'value' => 'xxx',
                'type' => 'string',
                'group' => 'maintenance',
                'is_public' => false,
                'description' => 'Bypass secret key',
            ],
            77 => [
                'key' => 'maintenance_mode_enabled',
                'value' => '0',
                'type' => 'bool',
                'group' => 'maintenance',
                'is_public' => false,
                'description' => 'Enable maintenance mode',
            ],
            78 => [
                'key' => 'telegram_chat_id',
                'value' => '',
                'type' => 'string',
                'group' => 'notifications',
                'is_public' => false,
                'description' => 'Default Telegram Chat ID',
            ],
            79 => [
                'key' => 'backup_db_encrypt_key',
                'value' => '',
                'type' => 'string',
                'group' => 'backups',
                'is_public' => false,
                'description' => 'Encryption Key (min 32 chars)',
            ],
            80 => [
                'key' => 'maintenance_mode_end_at',
                'value' => '2026-04-21T11:10',
                'type' => 'string',
                'group' => 'maintenance',
                'is_public' => true,
                'description' => 'Estimated end time',
            ],
            81 => [
                'key' => 'backup_db_exclude',
                'value' => '',
                'type' => 'string',
                'group' => 'backups',
                'is_public' => false,
                'description' => 'Excluded Tables (comma separated)',
            ],
            82 => [
                'key' => 'backup_db_notify_to',
                'value' => '',
                'type' => 'string',
                'group' => 'backups',
                'is_public' => false,
                'description' => 'Notification Target (Email/Webhook)',
            ],
            83 => [
                'key' => 'maintenance_mode_allowed_ips',
                'value' => '',
                'type' => 'string',
                'group' => 'maintenance',
                'is_public' => false,
                'description' => 'Whitelisted IP addresses',
            ],
            84 => [
                'key' => 'feature_cookie_banner',
                'value' => '1',
                'type' => 'bool',
                'group' => 'content_legal',
                'is_public' => true,
                'description' => 'Enable Cookie Consent Banner',
            ],
            85 => [
                'key' => 'pdp_dpo_email',
                'value' => '',
                'type' => 'string',
                'group' => 'content_legal',
                'is_public' => true,
                'description' => 'Contact email for Data Protection Officer (PDP)',
            ],
            86 => [
                'key' => 'backup_db_enabled',
                'value' => '1',
                'type' => 'bool',
                'group' => 'backups',
                'is_public' => false,
                'description' => 'Enable automated database backup',
            ],
            87 => [
                'key' => 'require_pdp_on_registration',
                'value' => '1',
                'type' => 'bool',
                'group' => 'content_legal',
                'is_public' => true,
                'description' => 'Make PDP agreement mandatory during sign-up',
            ],
            88 => [
                'key' => 'pdp_document_version',
                'value' => '2',
                'type' => 'text',
                'group' => 'content_legal',
                'is_public' => true,
                'description' => 'Current version of legal documents (increment to force re-agreement)',
            ],
            89 => [
                'key' => 'backup_db_driver',
                'value' => 'local',
                'type' => 'string',
                'group' => 'backups',
                'is_public' => false,
                'description' => 'Storage Driver (local/s3/gdrive)',
            ],
            90 => [
                'key' => 'mail_host',
                'value' => '',
                'type' => 'string',
                'group' => 'notifications',
                'is_public' => false,
                'description' => 'SMTP Host Server',
            ],
            91 => [
                'key' => 'mail_username',
                'value' => '',
                'type' => 'string',
                'group' => 'notifications',
                'is_public' => false,
                'description' => 'SMTP Username',
            ],
            92 => [
                'key' => 'mail_password',
                'value' => '',
                'type' => 'string',
                'group' => 'notifications',
                'is_public' => false,
                'description' => 'SMTP Password',
            ],
            93 => [
                'key' => 'telegram_bot_token',
                'value' => '',
                'type' => 'string',
                'group' => 'notifications',
                'is_public' => false,
                'description' => 'Telegram Bot Token',
            ],
            94 => [
                'key' => 'app_tagline2',
                'value' => 'Secure, scalable, and designed for real business impact.',
                'type' => 'string',
                'group' => 'branding',
                'is_public' => true,
                'description' => 'Description text',
            ],
            95 => [
                'key' => 'pdp_company_address',
                'value' => '',
                'type' => 'string',
                'group' => 'content_legal',
                'is_public' => true,
                'description' => 'Official company address for legal documentation',
            ],
            96 => [
                'key' => 'page_tos_content',
                'value' => '
    <div class="prose max-w-none">
        <h2>Syarat dan Ketentuan Penggunaan (Terms of Use)</h2>
        <p>Terakhir Diperbarui: 03 Mei 2026</p>
        <p>Selamat datang di Biiproject. Dengan mengakses atau menggunakan layanan kami, Anda dianggap telah membaca, memahami, dan menyetujui untuk terikat oleh Ketentuan berikut:</p>
        <h3>1. Pendaftaran Akun</h3>
        <p>Pengguna wajib memberikan informasi yang akurat dan lengkap selama proses registrasi. Anda bertanggung jawab penuh atas kerahasiaan kredensial akun Anda.</p>
        <h3>2. Pembatasan Penggunaan</h3>
        <p>Anda dilarang menggunakan layanan untuk tindakan ilegal, mendistribusikan malware, atau melakukan reverse engineering terhadap kode sumber aplikasi kami.</p>
        <h3>3. Hak Kekayaan Intelektual</h3>
        <p>Seluruh logo, desain, dan kode program dalam Biiproject adalah milik sah kami dan dilindungi oleh Undang-Undang Hak Cipta yang berlaku.</p>
        <h3>4. Batasan Tanggung Jawab</h3>
        <p>Biiproject tidak bertanggung jawab atas kerugian tidak langsung yang timbul dari penggunaan atau ketidakmampuan penggunaan layanan.</p>
    </div>',
                'type' => 'text',
                'group' => 'content_legal',
                'is_public' => true,
                'description' => 'Terms of Use Content',
            ],
            97 => [
                'key' => 'instance_mode',
                'value' => 'Production',
                'type' => 'string',
                'group' => 'branding',
                'is_public' => true,
                'description' => 'Environment/Instance Mode',
            ],
            98 => [
                'key' => 'page_privacy_content',
                'value' => '
    <div class="prose max-w-none">
        <h2>Kebijakan Privasi (Sesuai UU PDP No. 27/2022)</h2>
        <p>Kami berkomitmen penuh untuk melindungi data pribadi Anda sesuai dengan regulasi pelindungan data terbaru di Indonesia.</p>
        <h3>1. Data yang Kami Kumpulkan</h3>
        <ul>
            <li><strong>Data Identitas:</strong> Nama, alamat email, nomor telepon, dan foto profil.</li>
            <li><strong>Data Teknis:</strong> Alamat IP, jenis perangkat, sistem operasi, dan log aktivitas aplikasi.</li>
            <li><strong>Data Biometrik:</strong> Digunakan secara lokal pada perangkat untuk fitur keamanan login.</li>
        </ul>
        <h3>2. Tujuan Pemrosesan Data</h3>
        <p>Data digunakan untuk verifikasi identitas, pengiriman notifikasi penting, serta peningkatan pengalaman pengguna melalui analitik sistem.</p>
        <h3>3. Hak Anda sebagai Subjek Data</h3>
        <p>Sesuai UU PDP, Anda memiliki hak untuk:</p>
        <ul>
            <li>Mengakses data pribadi Anda yang kami simpan.</li>
            <li>Meminta perbaikan atau pemutakhiran data jika terjadi ketidakakuratan.</li>
            <li>Meminta penghapusan data (Hak untuk dilupakan) dalam kondisi tertentu.</li>
            <li>Menarik kembali persetujuan pemrosesan data sewaktu-waktu.</li>
        </ul>
        <h3>4. Keamanan dan Retensi</h3>
        <p>Data Anda disimpan dalam database terenkripsi selama akun Anda aktif atau selama dibutuhkan oleh regulasi hukum yang berlaku.</p>
    </div>',
                'type' => 'text',
                'group' => 'content_legal',
                'is_public' => true,
                'description' => 'Privacy Policy (UU PDP) Content',
            ],
            99 => [
                'key' => 'gdrive_folder',
                'value' => 'LaravelBackups',
                'type' => 'string',
                'group' => 'backups',
                'is_public' => false,
                'description' => 'Google Drive Folder Name',
            ],
            100 => [
                'key' => 's3_region',
                'value' => 'us-east-1',
                'type' => 'string',
                'group' => 'backups',
                'is_public' => false,
                'description' => 'S3 Region',
            ],
            101 => [
                'key' => 'ai_enabled',
                'value' => '0',
                'type' => 'bool',
                'group' => 'ai_config',
                'is_public' => false,
                'description' => 'Enable AI services',
            ],
            102 => [
                'key' => 'ai_provider',
                'value' => 'gpt',
                'type' => 'string',
                'group' => 'ai_config',
                'is_public' => false,
                'description' => 'Active AI provider',
            ],
            103 => [
                'key' => 'ai_ollama_base_url',
                'value' => 'http://localhost:11434',
                'type' => 'string',
                'group' => 'ai_config',
                'is_public' => false,
                'description' => 'Ollama Base URL',
            ],
            104 => [
                'key' => 'ai_default_model',
                'value' => 'gpt-4o',
                'type' => 'string',
                'group' => 'ai_config',
                'is_public' => false,
                'description' => 'Default AI model',
            ],
            105 => [
                'key' => 'ai_temperature',
                'value' => '0.7',
                'type' => 'float',
                'group' => 'ai_config',
                'is_public' => false,
                'description' => 'AI temperature',
            ],
            106 => [
                'key' => 'ai_max_tokens',
                'value' => '2000',
                'type' => 'int',
                'group' => 'ai_config',
                'is_public' => false,
                'description' => 'AI max tokens',
            ],
            107 => [
                'key' => 'gdrive_client_id',
                'value' => '',
                'type' => 'string',
                'group' => 'backups',
                'is_public' => false,
                'description' => 'Google Drive Client ID',
            ],
            108 => [
                'key' => 'gdrive_client_secret',
                'value' => '',
                'type' => 'string',
                'group' => 'backups',
                'is_public' => false,
                'description' => 'Google Drive Client Secret',
            ],
            109 => [
                'key' => 'gdrive_refresh_token',
                'value' => '',
                'type' => 'string',
                'group' => 'backups',
                'is_public' => false,
                'description' => 'Google Drive Refresh Token',
            ],
            110 => [
                'key' => 's3_key',
                'value' => '',
                'type' => 'string',
                'group' => 'backups',
                'is_public' => false,
                'description' => 'S3 Access Key',
            ],
            111 => [
                'key' => 's3_secret',
                'value' => '',
                'type' => 'string',
                'group' => 'backups',
                'is_public' => false,
                'description' => 'S3 Secret Key',
            ],
            112 => [
                'key' => 's3_bucket',
                'value' => '',
                'type' => 'string',
                'group' => 'backups',
                'is_public' => false,
                'description' => 'S3 Bucket Name',
            ],
            113 => [
                'key' => 's3_endpoint',
                'value' => '',
                'type' => 'string',
                'group' => 'backups',
                'is_public' => false,
                'description' => 'S3 Custom Endpoint (Optional)',
            ],
            114 => [
                'key' => 'ai_gpt_key',
                'value' => '',
                'type' => 'string',
                'group' => 'ai_config',
                'is_public' => false,
                'description' => 'OpenAI GPT API Key',
            ],
            115 => [
                'key' => 'ai_gemini_key',
                'value' => '',
                'type' => 'string',
                'group' => 'ai_config',
                'is_public' => false,
                'description' => 'Google Gemini API Key',
            ],
            116 => [
                'key' => 'ai_claude_key',
                'value' => '',
                'type' => 'string',
                'group' => 'ai_config',
                'is_public' => false,
                'description' => 'Anthropic Claude API Key',
            ],
            117 => [
                'key' => 'ai_deepseek_key',
                'value' => '',
                'type' => 'string',
                'group' => 'ai_config',
                'is_public' => false,
                'description' => 'DeepSeek API Key',
            ],
            118 => [
                'key' => 'ai_grok_key',
                'value' => '',
                'type' => 'string',
                'group' => 'ai_config',
                'is_public' => false,
                'description' => 'xAI Grok API Key',
            ],
            119 => [
                'key' => 'ai_mistral_key',
                'value' => '',
                'type' => 'string',
                'group' => 'ai_config',
                'is_public' => false,
                'description' => 'Mistral AI API Key',
            ],
            120 => [
                'key' => 'ai_openrouter_key',
                'value' => '',
                'type' => 'string',
                'group' => 'ai_config',
                'is_public' => false,
                'description' => 'OpenRouter API Key',
            ],
            121 => [
                'key' => 'ai_system_instruction',
                'value' => '',
                'type' => 'text',
                'group' => 'ai_config',
                'is_public' => false,
                'description' => 'Default system instruction',
            ],
            122 => [
                'key' => 'page_about_content',
                'value' => '
    <div class="prose max-w-none">
        <h2>Tentang Biiproject</h2>
        <p>Biiproject adalah sebuah ekosistem solusi bisnis digital mutakhir yang dirancang khusus untuk era transformasi industri 4.0. Kami menghadirkan integrasi antara efisiensi alur kerja dengan kecerdasan buatan (AI) untuk membantu perusahaan dan tim profesional mencapai produktivitas maksimal.</p>
        <h3>Visi Kami</h3>
        <p>Menjadi pionir dalam penyediaan infrastruktur kolaborasi digital yang paling aman dan intuitif di Asia Tenggara.</p>
        <h3>Misi Kami</h3>
        <ul>
            <li>Inovasi Berkelanjutan: Mengembangkan fitur-fitur yang relevan dengan kebutuhan pasar global.</li>
            <li>Keamanan Tanpa Kompromi: Melindungi setiap bit data pengguna dengan standar enkripsi tertinggi.</li>
            <li>Aksesibilitas Global: Memastikan platform dapat diakses dari berbagai perangkat dengan performa yang tetap stabil.</li>
        </ul>
    </div>',
                'type' => 'text',
                'group' => 'content_legal',
                'is_public' => true,
                'description' => 'About Us Content',
            ],
            123 => [
                'key' => 'page_security_content',
                'value' => '
    <div class="prose max-w-none">
        <h2>Kebijakan Keamanan Sistem</h2>
        <p>Keamanan adalah fondasi utama dari Biiproject. Kami menerapkan strategi keamanan berlapis:</p>
        <h3>1. Enkripsi Data</h3>
        <p>Seluruh data sensitif dienkripsi menggunakan algoritma AES-256 (At-Rest) dan transmisi data dilakukan melalui protokol TLS 1.3 (In-Transit).</p>
        <h3>2. Autentikasi Multi-Faktor (MFA)</h3>
        <p>Kami mendukung penggunaan One-Time Password (OTP) dan Passkeys (WebAuthn) untuk memastikan hanya Anda yang dapat mengakses akun Anda.</p>
        <h3>3. Pemantauan Real-Time</h3>
        <p>Sistem kami dilengkapi dengan deteksi intrusi otomatis yang memantau setiap aktivitas mencurigakan 24/7.</p>
    </div>',
                'type' => 'text',
                'group' => 'content_legal',
                'is_public' => true,
                'description' => 'Security Policy Content',
            ],
            124 => [
                'key' => 'page_help_content',
                'value' => '
    <div class="prose max-w-none">
        <h2>Pusat Bantuan & FAQ</h2>
        <h3>Pertanyaan Umum (FAQ)</h3>
        <p><strong>Q: Bagaimana cara mengganti kata sandi?</strong><br>A: Anda dapat masuk ke Pengaturan Profil dan pilih menu Keamanan Akun.</p>
        <p><strong>Q: Saya tidak menerima kode OTP?</strong><br>A: Pastikan alamat email Anda benar dan periksa folder spam. Jika masih bermasalah, hubungi dukungan teknis.</p>
        <h3>Kontak Dukungan</h3>
        <p>Email: support@biiproject.com<br>WhatsApp Support: +62 812-xxxx-xxxx<br>Jam Operasional: 09:00 - 18:00 WIB (Senin - Jumat)</p>
    </div>',
                'type' => 'text',
                'group' => 'content_legal',
                'is_public' => true,
                'description' => 'Help Center / FAQ Content',
            ],
            125 => [
                'key' => 'password_history_count',
                'value' => '2',
                'type' => 'int',
                'group' => 'password_policy',
                'is_public' => false,
                'description' => 'Prevent Password Reuse (Count)',
            ],
            126 => [
                'key' => 'enable_landing_page',
                'value' => '1',
                'type' => 'bool',
                'group' => 'branding',
                'is_public' => true,
                'description' => 'Enable/Disable the landing page (welcome page)',
            ],
        ];

        foreach ($settings as $setting) {
            SystemSetting::updateOrCreate(['key' => $setting['key']], $setting);
        }
    }
}
