<?php
// template-theme.php - قالب با سیستم تم (۵ رنگ‌بندی)

// دریافت تم انتخاب شده از URL (پیش‌فرض: gold)
$theme = isset($_GET['theme']) ? $_GET['theme'] : 'gold';

// ===== تعریف ۵ پالت رنگی =====
$themes = [
    'gold' => [
        'name' => 'طلایی',
        'primary' => '#d4a747',
        'primary-light' => '#f5e6c8',
        'secondary' => '#1e293b',
        'bg' => '#f8fafc',
    ],
    'blue' => [
        'name' => 'آبی سلطنتی',
        'primary' => '#2563eb',
        'primary-light' => '#dbeafe',
        'secondary' => '#1e40af',
        'bg' => '#f0f5ff',
    ],
    'green' => [
        'name' => 'سبز زمردی',
        'primary' => '#059669',
        'primary-light' => '#d1fae5',
        'secondary' => '#064e3b',
        'bg' => '#f0fdf4',
    ],
    'purple' => [
        'name' => 'بنفش سلطنتی',
        'primary' => '#7c3aed',
        'primary-light' => '#ede9fe',
        'secondary' => '#5b21b6',
        'bg' => '#f5f3ff',
    ],
    'red' => [
        'name' => 'قرمز آجری',
        'primary' => '#dc2626',
        'primary-light' => '#fecaca',
        'secondary' => '#991b1b',
        'bg' => '#fef2f2',
    ],
];

// ===== پالت انتخاب شده =====
$colors = $themes[$theme] ?? $themes['gold'];

// ===== داده‌های نمونه =====
$stats = [
    ['title' => 'اساتید', 'value' => '۱۲۴', 'icon' => 'fa-users'],
    ['title' => 'دروس', 'value' => '۲۴۸', 'icon' => 'fa-book'],
    ['title' => 'تراکنش‌ها', 'value' => '۸۹۷', 'icon' => 'fa-credit-card'],
    ['title' => 'تیکت‌ها', 'value' => '۱۲', 'icon' => 'fa-ticket'],
];

$menuItems = [
    ['icon' => 'fa-chart-pie', 'label' => 'داشبورد', 'active' => true],
    ['icon' => 'fa-users', 'label' => 'اساتید'],
    ['icon' => 'fa-book', 'label' => 'دروس'],
    ['icon' => 'fa-calendar-check', 'label' => 'جلسات'],
    ['icon' => 'fa-coins', 'label' => 'تراکنش‌ها'],
    ['icon' => 'fa-file-invoice', 'label' => 'گزارش‌ها'],
    ['icon' => 'fa-ticket-alt', 'label' => 'تیکت‌ها', 'badge' => '۳'],
    ['icon' => 'fa-sliders-h', 'label' => 'تنظیمات'],
];

$activities = [
    ['user' => 'دکتر علی رضایی', 'action' => 'درس جدید ثبت کرد', 'time' => '۲ دقیقه پیش'],
    ['user' => 'مریم احمدی', 'action' => 'تراکنش جدید ثبت کرد', 'time' => '۱۵ دقیقه پیش'],
    ['user' => 'دکتر حسین کریمی', 'action' => 'تیکت جدید ارسال کرد', 'time' => '۴۵ دقیقه پیش'],
];
?>
<!DOCTYPE html>
<html lang="fa" dir="rtl">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>پیش‌نمایش قالب | <?= htmlspecialchars($siteName ?? 'سامانه') ?></title>
    <script src="https://cdn.tailwindcss.com"></script>
    <link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/6.5.0/css/all.min.css">
    <link href="https://fonts.googleapis.com/css2?family=Vazirmatn:wght@300;400;500;600;700;800;900&display=swap" rel="stylesheet">
    <style>
        * { margin: 0; padding: 0; box-sizing: border-box; }
        body { 
            font-family: 'Vazirmatn', sans-serif; 
            background: <?= $colors['bg'] ?>; 
            min-height: 100vh;
            display: flex;
        }
        
        @keyframes fadeIn { from { opacity: 0; transform: translateY(12px); } to { opacity: 1; transform: translateY(0); } }
        .fade-in { animation: fadeIn 0.5s ease-out; }
        
        ::-webkit-scrollbar { width: 4px; }
        ::-webkit-scrollbar-track { background: <?= $colors['bg'] ?>; }
        ::-webkit-scrollbar-thumb { background: <?= $colors['primary'] ?>; border-radius: 10px; }
        
        /* ===== سایدبار ===== */
        .sidebar {
            width: 255px;
            background: <?= $colors['secondary'] ?>;
            min-height: 100vh;
            padding: 0;
            position: fixed;
            right: 0;
            top: 0;
            bottom: 0;
            overflow-y: auto;
            z-index: 100;
            transition: all 0.3s ease;
        }
        .sidebar::-webkit-scrollbar-thumb { background: <?= $colors['primary'] ?>40; }
        
        .sidebar-brand {
            padding: 28px 20px 20px;
            border-bottom: 1px solid rgba(255,255,255,0.05);
        }
        .sidebar-brand .logo-row {
            display: flex;
            align-items: center;
            gap: 12px;
        }
        .sidebar-brand .logo-icon {
            width: 42px;
            height: 42px;
            background: <?= $colors['primary'] ?>;
            border-radius: 10px;
            display: flex;
            align-items: center;
            justify-content: center;
            color: #fff;
            font-size: 18px;
            flex-shrink: 0;
        }
        .sidebar-brand .brand-text h2 {
            font-size: 16px;
            font-weight: 800;
            color: #fff;
            margin: 0;
            line-height: 1.2;
        }
        .sidebar-brand .brand-text h2 span { color: <?= $colors['primary'] ?>; }
        .sidebar-brand .brand-text small {
            font-size: 10px;
            color: rgba(255,255,255,0.35);
            display: block;
            margin-top: 2px;
        }
        
        .sidebar .nav-label {
            font-size: 10px;
            font-weight: 700;
            color: rgba(255,255,255,0.2);
            text-transform: uppercase;
            letter-spacing: 0.5px;
            padding: 20px 20px 6px;
        }
        .sidebar .nav-item {
            display: flex;
            align-items: center;
            gap: 12px;
            padding: 10px 18px;
            margin: 2px 10px;
            border-radius: 10px;
            color: rgba(255,255,255,0.4);
            text-decoration: none;
            font-size: 14px;
            font-weight: 500;
            transition: all 0.2s ease;
            cursor: pointer;
            position: relative;
        }
        .sidebar .nav-item:hover {
            background: rgba(255,255,255,0.05);
            color: #fff;
        }
        .sidebar .nav-item.active {
            background: <?= $colors['primary'] ?>20;
            color: <?= $colors['primary'] ?>;
            font-weight: 600;
        }
        .sidebar .nav-item.active::before {
            content: '';
            position: absolute;
            right: 0;
            top: 50%;
            transform: translateY(-50%);
            width: 3px;
            height: 20px;
            background: <?= $colors['primary'] ?>;
            border-radius: 0 4px 4px 0;
        }
        .sidebar .nav-item i { width: 20px; font-size: 15px; text-align: center; }
        .sidebar .nav-item .badge {
            margin-right: auto;
            background: <?= $colors['primary'] ?>;
            color: #fff;
            font-size: 10px;
            padding: 1px 8px;
            border-radius: 12px;
            font-weight: 600;
        }
        
        .sidebar-divider {
            height: 1px;
            background: rgba(255,255,255,0.05);
            margin: 12px 16px;
        }
        
        .sidebar-footer {
            padding: 16px 18px;
            margin: 10px;
            border-radius: 12px;
            background: rgba(255,255,255,0.03);
            border: 1px solid rgba(255,255,255,0.04);
        }
        .sidebar-footer .user-row {
            display: flex;
            align-items: center;
            gap: 12px;
        }
        .sidebar-footer .user-avatar {
            width: 36px;
            height: 36px;
            border-radius: 50%;
            background: <?= $colors['primary'] ?>;
            display: flex;
            align-items: center;
            justify-content: center;
            color: #fff;
            font-weight: 700;
            font-size: 14px;
            flex-shrink: 0;
        }
        .sidebar-footer .user-info .name {
            font-size: 13px;
            font-weight: 600;
            color: #fff;
        }
        .sidebar-footer .user-info .role {
            font-size: 11px;
            color: rgba(255,255,255,0.3);
        }
        
        /* ===== محتوای اصلی ===== */
        .main {
            margin-right: 255px;
            flex: 1;
            padding: 28px 32px;
            min-height: 100vh;
        }
        
        /* ===== هدر ===== */
        .top-header {
            display: flex;
            align-items: center;
            justify-content: space-between;
            margin-bottom: 28px;
        }
        .top-header .page-title h1 {
            font-size: 22px;
            font-weight: 800;
            color: <?= $colors['secondary'] ?>;
        }
        .top-header .page-title p {
            font-size: 14px;
            color: #64748b;
            margin-top: 2px;
        }
        .top-header .header-actions {
            display: flex;
            align-items: center;
            gap: 14px;
        }
        .top-header .header-actions .icon-btn {
            width: 38px;
            height: 38px;
            border-radius: 50%;
            border: none;
            background: #fff;
            color: #64748b;
            cursor: pointer;
            transition: all 0.2s;
            display: flex;
            align-items: center;
            justify-content: center;
            font-size: 15px;
            position: relative;
            box-shadow: 0 1px 3px rgba(0,0,0,0.04);
        }
        .top-header .header-actions .icon-btn:hover {
            background: <?= $colors['bg'] ?>;
            color: <?= $colors['secondary'] ?>;
        }
        .top-header .header-actions .icon-btn .dot {
            position: absolute;
            top: 10px;
            right: 10px;
            width: 7px;
            height: 7px;
            background: <?= $colors['primary'] ?>;
            border-radius: 50%;
            border: 2px solid #fff;
        }
        .top-header .user-badge {
            display: flex;
            align-items: center;
            gap: 10px;
            background: #fff;
            padding: 5px 14px 5px 5px;
            border-radius: 40px;
            box-shadow: 0 1px 3px rgba(0,0,0,0.04);
            cursor: pointer;
            transition: all 0.2s;
            border: 1px solid #e9edf4;
        }
        .top-header .user-badge:hover {
            border-color: <?= $colors['primary'] ?>;
        }
        .top-header .user-badge .avatar {
            width: 32px;
            height: 32px;
            border-radius: 50%;
            background: <?= $colors['primary'] ?>;
            display: flex;
            align-items: center;
            justify-content: center;
            color: #fff;
            font-weight: 700;
            font-size: 13px;
        }
        .top-header .user-badge .name {
            font-size: 13px;
            font-weight: 600;
            color: <?= $colors['secondary'] ?>;
        }
        .top-header .user-badge .role {
            font-size: 11px;
            color: #94a3b8;
        }
        
        /* ===== کارت‌های آماری ===== */
        .stats-grid {
            display: grid;
            grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
            gap: 16px;
            margin-bottom: 28px;
        }
        .stat-card {
            background: #fff;
            border-radius: 12px;
            padding: 18px 20px;
            border: 1px solid #e9edf4;
            transition: all 0.25s ease;
        }
        .stat-card:hover {
            transform: translateY(-3px);
            box-shadow: 0 8px 30px rgba(0,0,0,0.05);
            border-color: <?= $colors['primary'] ?>;
        }
        .stat-card .top {
            display: flex;
            align-items: center;
            justify-content: space-between;
        }
        .stat-card .top .icon {
            width: 42px;
            height: 42px;
            border-radius: 10px;
            background: <?= $colors['primary'] ?>;
            display: flex;
            align-items: center;
            justify-content: center;
            font-size: 17px;
            color: #fff;
        }
        .stat-card .top .change {
            font-size: 12px;
            font-weight: 600;
            color: <?= $colors['primary'] ?>;
            background: <?= $colors['primary-light'] ?>;
            padding: 2px 10px;
            border-radius: 20px;
        }
        .stat-card .value {
            font-size: 26px;
            font-weight: 800;
            color: <?= $colors['secondary'] ?>;
            margin-top: 8px;
        }
        .stat-card .title {
            font-size: 13px;
            color: #64748b;
            font-weight: 500;
        }
        
        /* ===== بخش دو ستونی ===== */
        .two-col {
            display: grid;
            grid-template-columns: 2fr 1fr;
            gap: 20px;
            margin-bottom: 28px;
        }
        .card {
            background: #fff;
            border-radius: 12px;
            padding: 20px 22px;
            border: 1px solid #e9edf4;
            transition: all 0.2s;
        }
        .card:hover {
            border-color: <?= $colors['primary'] ?>;
        }
        .card .card-title {
            font-size: 15px;
            font-weight: 700;
            color: <?= $colors['secondary'] ?>;
            margin-bottom: 16px;
            display: flex;
            align-items: center;
            gap: 8px;
        }
        .card .card-title i { color: <?= $colors['primary'] ?>; }
        
        .activity-item {
            display: flex;
            align-items: center;
            gap: 12px;
            padding: 10px 0;
            border-bottom: 1px solid #f1f5f9;
        }
        .activity-item:last-child { border-bottom: none; }
        .activity-item .dot {
            width: 7px;
            height: 7px;
            border-radius: 50%;
            flex-shrink: 0;
            background: <?= $colors['primary'] ?>;
        }
        .activity-item .text { flex: 1; font-size: 13px; color: <?= $colors['secondary'] ?>; }
        .activity-item .text strong { font-weight: 600; }
        .activity-item .time { font-size: 12px; color: #94a3b8; }
        
        .task-item {
            display: flex;
            align-items: center;
            justify-content: space-between;
            padding: 8px 0;
            border-bottom: 1px solid #f1f5f9;
        }
        .task-item:last-child { border-bottom: none; }
        .task-item .info { display: flex; align-items: center; gap: 10px; }
        .task-item .info .circle {
            width: 6px;
            height: 6px;
            border-radius: 50%;
            flex-shrink: 0;
        }
        .task-item .info .circle.red { background: #ef4444; }
        .task-item .info .circle.yellow { background: <?= $colors['primary'] ?>; }
        .task-item .info .text { font-size: 13px; color: <?= $colors['secondary'] ?>; }
        .task-item .count {
            font-size: 13px;
            font-weight: 600;
            color: #64748b;
            background: #f1f5f9;
            padding: 0 12px;
            border-radius: 12px;
        }
        .task-item .count.urgent {
            background: <?= $colors['primary-light'] ?>;
            color: <?= $colors['primary'] ?>;
        }
        
        .btn {
            padding: 9px 22px;
            border: none;
            border-radius: 8px;
            font-size: 13px;
            font-weight: 600;
            cursor: pointer;
            transition: all 0.2s ease;
            display: inline-flex;
            align-items: center;
            gap: 8px;
            font-family: 'Vazirmatn', sans-serif;
        }
        .btn-primary {
            background: <?= $colors['secondary'] ?>;
            color: #fff;
        }
        .btn-primary:hover {
            background: <?= $colors['secondary'] ?>dd;
            transform: translateY(-1px);
            box-shadow: 0 4px 16px rgba(30,41,59,0.2);
        }
        .btn-accent {
            background: <?= $colors['primary'] ?>;
            color: #fff;
        }
        .btn-accent:hover {
            filter: brightness(0.9);
            transform: translateY(-1px);
            box-shadow: 0 4px 16px <?= $colors['primary'] ?>40;
        }
        .btn-outline {
            background: transparent;
            color: #64748b;
            border: 1.5px solid #e9edf4;
        }
        .btn-outline:hover {
            background: <?= $colors['bg'] ?>;
            border-color: <?= $colors['primary'] ?>;
        }
        .btn-group {
            display: flex;
            flex-wrap: wrap;
            gap: 10px;
            margin-top: 16px;
            padding-top: 16px;
            border-top: 1px solid #e9edf4;
        }
        
        /* ===== فوتر ===== */
        .footer {
            margin-top: 28px;
            padding: 14px 20px;
            background: #fff;
            border-radius: 12px;
            border: 1px solid #e9edf4;
            text-align: center;
            font-size: 12px;
            color: #94a3b8;
        }
        .footer .gold { color: <?= $colors['primary'] ?>; font-weight: 500; }
        .footer .sep { color: #e9edf4; }
        
        /* ===== انتخابگر تم ===== */
        .theme-selector {
            background: #fff;
            border-radius: 12px;
            padding: 16px 20px;
            border: 1px solid #e9edf4;
            margin-bottom: 20px;
            display: flex;
            align-items: center;
            gap: 16px;
            flex-wrap: wrap;
        }
        .theme-selector .label {
            font-size: 14px;
            font-weight: 600;
            color: <?= $colors['secondary'] ?>;
            display: flex;
            align-items: center;
            gap: 8px;
        }
        .theme-selector .label i { color: <?= $colors['primary'] ?>; }
        .theme-btn {
            width: 36px;
            height: 36px;
            border-radius: 50%;
            border: 3px solid transparent;
            cursor: pointer;
            transition: all 0.2s ease;
            display: inline-flex;
            align-items: center;
            justify-content: center;
            font-size: 11px;
            font-weight: 700;
            color: #fff;
        }
        .theme-btn:hover { transform: scale(1.1); }
        .theme-btn.active {
            border-color: <?= $colors['secondary'] ?>;
            box-shadow: 0 0 0 2px #fff, 0 0 0 4px <?= $colors['secondary'] ?>;
        }
        .theme-btn.gold { background: #d4a747; }
        .theme-btn.blue { background: #2563eb; }
        .theme-btn.green { background: #059669; }
        .theme-btn.purple { background: #7c3aed; }
        .theme-btn.red { background: #dc2626; }
        
        .theme-name {
            font-size: 13px;
            font-weight: 500;
            color: <?= $colors['secondary'] ?>;
            margin-right: 4px;
        }
        
        /* ===== واکنش‌گرایی ===== */
        @media (max-width: 1024px) {
            .two-col { grid-template-columns: 1fr; }
        }
        @media (max-width: 768px) {
            .sidebar {
                transform: translateX(100%);
                width: 280px;
            }
            .sidebar.open { transform: translateX(0); }
            .main { margin-right: 0; padding: 16px; }
            .stats-grid { grid-template-columns: repeat(2, 1fr); }
            .top-header { flex-direction: column; align-items: flex-start; gap: 12px; }
            .top-header .header-actions { width: 100%; justify-content: space-between; }
            .hamburger { display: block !important; }
            .theme-selector { justify-content: center; }
        }
        .hamburger {
            display: none;
            background: none;
            border: none;
            font-size: 20px;
            color: <?= $colors['secondary'] ?>;
            cursor: pointer;
            padding: 4px;
        }
        .badge-preview {
            background: <?= $colors['primary-light'] ?>;
            color: <?= $colors['primary'] ?>;
            font-size: 10px;
            font-weight: 700;
            padding: 2px 14px;
            border-radius: 12px;
            display: inline-block;
        }
    </style>
</head>
<body>

<!-- ===== سایدبار ===== -->
<div class="sidebar" id="sidebar">
    <div class="sidebar-brand">
        <div class="logo-row">
            <div class="logo-icon"><i class="fas fa-graduation-cap"></i></div>
            <div class="brand-text">
                <h2>سامانه <span>اساتید</span></h2>
                <small>دانشگاه علمی کاربردی</small>
            </div>
        </div>
    </div>
    
    <div class="nav-label">منوی اصلی</div>
    <?php foreach ($menuItems as $item): ?>
    <div class="nav-item <?= isset($item['active']) ? 'active' : '' ?>">
        <i class="fas <?= $item['icon'] ?>"></i>
        <?= $item['label'] ?>
        <?php if (isset($item['badge'])): ?>
            <span class="badge"><?= $item['badge'] ?></span>
        <?php endif; ?>
    </div>
    <?php endforeach; ?>
    
    <div class="sidebar-divider"></div>
    
    <div class="nav-label">سیستم</div>
    <div class="nav-item" style="color:rgba(255,255,255,0.3);">
        <i class="fas fa-sign-out-alt"></i> خروج
    </div>
    
    <div class="sidebar-footer">
        <div class="user-row">
            <div class="user-avatar">م</div>
            <div class="user-info">
                <div class="name">مدیر سیستم</div>
                <div class="role">مدیر سامانه</div>
            </div>
        </div>
    </div>
</div>

<!-- ===== محتوای اصلی ===== -->
<div class="main">

    <!-- ===== انتخابگر تم ===== -->
    <div class="theme-selector">
        <span class="label"><i class="fas fa-palette"></i> انتخاب تم:</span>
        
        <?php foreach ($themes as $key => $t): ?>
        <a href="?theme=<?= $key ?>" style="text-decoration:none;display:inline-flex;align-items:center;gap:4px;">
            <span class="theme-btn <?= $key ?> <?= $theme == $key ? 'active' : '' ?>"></span>
            <span class="theme-name" style="font-size:11px;color:#64748b;"><?= $t['name'] ?></span>
        </a>
        <?php endforeach; ?>
    </div>

    <!-- ===== هدر ===== -->
    <div class="top-header">
        <div class="page-title">
            <div style="display:flex;align-items:center;gap:10px;margin-bottom:2px;">
                <button class="hamburger" onclick="document.getElementById('sidebar').classList.toggle('open')">
                    <i class="fas fa-bars"></i>
                </button>
                <h1>داشبورد مدیریت</h1>
                <span class="badge-preview">✨ پیش‌نمایش</span>
            </div>
            <p>مدیریت جامع اساتید و دروس</p>
        </div>
        <div class="header-actions">
            <button class="icon-btn"><i class="far fa-bell"></i><span class="dot"></span></button>
            <button class="icon-btn"><i class="far fa-envelope"></i></button>
            <div class="user-badge">
                <div class="avatar">م</div>
                <div>
                    <div class="name">مدیر سیستم</div>
                    <div class="role">مدیر</div>
                </div>
            </div>
        </div>
    </div>

    <!-- ===== کارت‌های آماری ===== -->
    <div class="stats-grid">
        <?php foreach ($stats as $stat): ?>
        <div class="stat-card fade-in">
            <div class="top">
                <div class="icon"><i class="fas <?= $stat['icon'] ?>"></i></div>
                <span class="change">▲ ۸٪</span>
            </div>
            <div class="value"><?= $stat['value'] ?></div>
            <div class="title"><?= $stat['title'] ?></div>
        </div>
        <?php endforeach; ?>
    </div>

    <!-- ===== بخش دو ستونی ===== -->
    <div class="two-col">
        <div class="card fade-in">
            <div class="card-title"><i class="fas fa-clock"></i> آخرین فعالیت‌ها</div>
            <?php foreach ($activities as $activity): ?>
            <div class="activity-item">
                <span class="dot"></span>
                <span class="text"><strong><?= $activity['user'] ?></strong> <?= $activity['action'] ?></span>
                <span class="time"><?= $activity['time'] ?></span>
            </div>
            <?php endforeach; ?>
            <button class="btn btn-outline" style="width:100%;justify-content:center;margin-top:12px;">
                مشاهده همه
            </button>
        </div>

        <div class="card fade-in">
            <div class="card-title"><i class="fas fa-tasks"></i> کارهای در انتظار</div>
            <?php foreach ([
                ['text' => 'تأیید شماره شبا', 'count' => '۸', 'urgent' => true],
                ['text' => 'بررسی دروس بدون جلسه', 'count' => '۱۵', 'urgent' => false],
                ['text' => 'پاسخ به تیکت‌ها', 'count' => '۵', 'urgent' => true],
                ['text' => 'بروزرسانی اطلاعات مدرسین', 'count' => '۱۲', 'urgent' => false],
            ] as $task): ?>
            <div class="task-item">
                <div class="info">
                    <span class="circle <?= $task['urgent'] ? 'red' : 'yellow' ?>"></span>
                    <span class="text"><?= $task['text'] ?></span>
                </div>
                <span class="count <?= $task['urgent'] ? 'urgent' : '' ?>"><?= $task['count'] ?></span>
            </div>
            <?php endforeach; ?>
            
            <div class="btn-group">
                <button class="btn btn-accent"><i class="fas fa-check"></i> تأیید همه</button>
                <button class="btn btn-primary"><i class="fas fa-file-export"></i> خروجی</button>
                <button class="btn btn-outline"><i class="fas fa-print"></i> چاپ</button>
            </div>
        </div>
    </div>

    <!-- ===== دکمه‌های نمونه ===== -->
    <div style="display:flex;flex-wrap:wrap;gap:10px;margin-top:8px;">
        <button class="btn btn-accent"><i class="fas fa-plus"></i> افزودن جدید</button>
        <button class="btn btn-primary"><i class="fas fa-file-excel"></i> خروجی اکسل</button>
        <button class="btn btn-primary"><i class="fas fa-file-pdf"></i> خروجی PDF</button>
        <button class="btn btn-outline"><i class="fas fa-download"></i> دانلود</button>
    </div>

    <!-- ===== فوتر ===== -->
    <div class="footer">
        <i class="fas fa-shield-alt" style="color:<?= $colors['primary'] ?>;margin-left:6px;"></i>
        تمامی حقوق محفوظ است <span class="gold">دانشگاه علمی کاربردی</span>
        <span class="sep"> | </span>
        توسعه: <span class="gold">تیم فناوری</span>
        <span class="sep"> | </span>
        <?= date('Y') ?>
    </div>

</div>

</body>
</html>