<?php
require_once 'config/database.php';

try {
    // Insert default background settings
    $settings = [
        ['id_card_background', 'default_bg.jpg'],
        ['id_card_background_size', 'cover'],
        ['id_card_background_opacity', '0.1'],
        ['id_card_name_size', '1.4rem']
    ];
    
    $stmt = $pdo->prepare("INSERT INTO site_settings (`key`, `value`) VALUES (?, ?) ON DUPLICATE KEY UPDATE `value` = VALUES(`value`)");
    
    foreach ($settings as $setting) {
        $stmt->execute($setting);
    }
    
    echo "ID card settings initialized successfully!\n";
} catch (Exception $e) {
    echo "Error: " . $e->getMessage() . "\n";
}
?>