<?php require APPROOT . '/app/Views/layouts/header.php'; ?>
<div class="max-w-3xl mx-auto text-center mt-24 mb-20 px-4">
    
    <div class="inline-flex items-center justify-center p-6 bg-yellow-50 dark:bg-yellow-900/20 text-yellow-600 dark:text-yellow-500 rounded-full mb-8 shadow-sm border border-yellow-100 dark:border-yellow-800/30">
        <svg class="w-16 h-16" fill="none" stroke="currentColor" viewBox="0 0 24 24"><path stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="M10.325 4.317c.426-1.756 2.924-1.756 3.35 0a1.724 1.724 0 002.573 1.066c1.543-.94 3.31.826 2.37 2.37a1.724 1.724 0 001.065 2.572c1.756.426 1.756 2.924 0 3.35a1.724 1.724 0 00-1.066 2.573c.94 1.543-.826 3.31-2.37 2.37a1.724 1.724 0 00-2.572 1.065c-.426 1.756-2.924 1.756-3.35 0a1.724 1.724 0 00-2.573-1.066c-1.543.94-3.31-.826-2.37-2.37a1.724 1.724 0 00-1.065-2.572c-1.756-.426-1.756-2.924 0-3.35a1.724 1.724 0 001.066-2.573c-.94-1.543.826-3.31 2.37-2.37.996.608 2.296.07 2.572-1.065z"></path><path stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="M15 12a3 3 0 11-6 0 3 3 0 016 0z"></path></svg>
    </div>
    
    <h1 class="text-4xl md:text-5xl font-extrabold text-gray-900 dark:text-white tracking-tight mb-4">
        We'll be right back!
    </h1>
    
    <p class="text-xl text-gray-600 dark:text-gray-400 mb-10 max-w-2xl mx-auto leading-relaxed">
        <?php echo $data['description'] ?? 'Our system is currently undergoing scheduled maintenance to improve your experience.'; ?> Thank you for your patience while we work.
    </p>

    <?php if(!isLoggedIn()): ?>
        <div class="mt-12 pt-8 border-t border-gray-200 dark:border-gray-800">
            <p class="text-[10px] font-bold uppercase tracking-wider text-gray-500 dark:text-gray-500 mb-3">Are you an Administrator?</p>
            <a href="<?php echo URLROOT; ?>/users/login" class="inline-flex items-center text-primary hover:text-opacity-80 font-bold transition-colors">
                <svg class="w-4 h-4 mr-2" fill="none" stroke="currentColor" viewBox="0 0 24 24"><path stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="M12 15v2m-6 4h12a2 2 0 002-2v-6a2 2 0 00-2-2H6a2 2 0 00-2 2v6a2 2 0 002 2zm10-10V7a4 4 0 00-8 0v4h8z"></path></svg>
                Admin Login Bypass
            </a>
        </div>
    <?php else: ?>
        <a href="<?php echo URLROOT; ?>" class="bg-primary hover:opacity-90 text-white font-bold py-3.5 px-8 rounded-lg shadow-sm transition-all focus:ring-4 focus:ring-primary/50 text-lg">
            Refresh Page
        </a>
    <?php endif; ?>
</div>
<?php require APPROOT . '/app/Views/layouts/footer.php'; ?>