<?php
$page_title = 'Global Localization';
require_once __DIR__ . '/../config.php';
if (session_status() === PHP_SESSION_NONE) { session_start(); }
if (!isset($_SESSION['admin_id'])) { redirect(SITE_URL . '/admin/login.php'); }
require_once __DIR__ . '/header.php';
?>
<div style="display:flex; justify-content:space-between; align-items:center; margin-bottom:24px;">
    <div>
        <h2 style="font-family:'Outfit',sans-serif; font-size:1.8rem; color:#0f172a; margin:0;"><i class="fas fa-globe" style="color:#06b6d4; margin-right:10px;"></i>Global Localization</h2>
        <p style="color:#64748b; font-size:0.95rem; margin-top:5px;">Currency engine, language packs, tax localization, and regional compliance.</p>
    </div>
</div>
<div class="grid-4" style="margin-bottom:24px;">
    <div style="background:#fff; padding:20px; border-radius:12px; border:1px solid #e2e8f0; border-top:4px solid #06b6d4;">
        <div style="color:#64748b; font-size:0.8rem; font-weight:600; margin-bottom:8px;">CURRENCIES</div>
        <div style="font-size:1.6rem; font-weight:700; color:#0f172a;">12</div>
        <div style="color:#06b6d4; font-size:0.8rem; margin-top:5px;"><i class="fas fa-coins"></i> Auto FX Rates</div>
    </div>
    <div style="background:#fff; padding:20px; border-radius:12px; border:1px solid #e2e8f0; border-top:4px solid #10b981;">
        <div style="color:#64748b; font-size:0.8rem; font-weight:600; margin-bottom:8px;">LANGUAGES</div>
        <div style="font-size:1.6rem; font-weight:700; color:#0f172a;">8</div>
        <div style="color:#10b981; font-size:0.8rem; margin-top:5px;"><i class="fas fa-language"></i> Active Packs</div>
    </div>
    <div style="background:#fff; padding:20px; border-radius:12px; border:1px solid #e2e8f0; border-top:4px solid #f59e0b;">
        <div style="color:#64748b; font-size:0.8rem; font-weight:600; margin-bottom:8px;">TAX RULES</div>
        <div style="font-size:1.6rem; font-weight:700; color:#0f172a;">42</div>
        <div style="color:#f59e0b; font-size:0.8rem; margin-top:5px;"><i class="fas fa-calculator"></i> Region-specific</div>
    </div>
    <div style="background:#fff; padding:20px; border-radius:12px; border:1px solid #e2e8f0; border-top:4px solid #8b5cf6;">
        <div style="color:#64748b; font-size:0.8rem; font-weight:600; margin-bottom:8px;">COMPLIANCE PACKS</div>
        <div style="font-size:1.6rem; font-weight:700; color:#0f172a;">6</div>
        <div style="color:#8b5cf6; font-size:0.8rem; margin-top:5px;"><i class="fas fa-check-double"></i> Regional Laws</div>
    </div>
</div>
<div class="grid-2">
    <div style="background:#fff; padding:20px; border-radius:12px; border:1px solid #e2e8f0;">
        <h3 style="margin:0 0 15px; font-size:1.15rem; color:#0f172a;"><i class="fas fa-coins" style="color:#06b6d4; margin-right:8px;"></i>Currency & Language</h3>
        <?php
        $currencies = [
            ['🇮🇳 INR (Indian Rupee)', 'Base', '8 regional languages'],
            ['🇺🇸 USD (US Dollar)', '₹83.42', 'English'],
            ['🇪🇺 EUR (Euro)', '₹90.15', 'German, French'],
            ['🇦🇪 AED (Dirham)', '₹22.71', 'Arabic'],
            ['🇬🇧 GBP (Pound)', '₹105.20', 'English UK'],
            ['🇸🇬 SGD (Singapore)', '₹61.85', 'English SG'],
        ];
        foreach ($currencies as $c): ?>
        <div style="display:flex; justify-content:space-between; align-items:center; padding:10px 0; border-bottom:1px solid #f1f5f9;">
            <span style="font-weight:500; font-size:0.9rem;"><?= $c[0] ?></span>
            <div style="text-align:right;">
                <div style="font-weight:bold; font-size:0.85rem; color:#0f172a;"><?= $c[1] ?></div>
                <div style="font-size:0.7rem; color:#94a3b8;"><?= $c[2] ?></div>
            </div>
        </div>
        <?php endforeach; ?>
    </div>
    <div style="background:linear-gradient(135deg,#06b6d4,#0891b2); color:#fff; padding:25px; border-radius:12px;">
        <h3 style="margin:0 0 15px; font-size:1.2rem;"><i class="fas fa-balance-scale"></i> Regional Compliance</h3>
        <div style="display:flex; justify-content:space-between; font-size:0.85rem; margin-bottom:10px;">
            <span>India (GST/TDS)</span><span style="font-weight:bold;">✓ Compliant</span>
        </div>
        <div style="display:flex; justify-content:space-between; font-size:0.85rem; margin-bottom:10px;">
            <span>UAE (VAT)</span><span style="font-weight:bold;">✓ Compliant</span>
        </div>
        <div style="display:flex; justify-content:space-between; font-size:0.85rem; margin-bottom:10px;">
            <span>EU (GDPR + VAT)</span><span style="font-weight:bold;">✓ Compliant</span>
        </div>
        <div style="display:flex; justify-content:space-between; font-size:0.85rem; margin-bottom:10px;">
            <span>US (Sales Tax)</span><span style="font-weight:bold;">✓ Compliant</span>
        </div>
        <div style="display:flex; justify-content:space-between; font-size:0.85rem;">
            <span>Singapore (GST)</span><span style="font-weight:bold;">✓ Compliant</span>
        </div>
    </div>
</div>
<?php require_once __DIR__ . '/footer.php'; ?>
