<?php
// template-premium-ui.php - قالب Premium با طراحی مدرن و مینیمال

// ===== تنظیمات =====
$siteName = 'سامانه مدیریت اساتید';
$institutionName = 'دانشگاه علمی کاربردی';
$pageTitle = 'داشبورد مدیریت';

// ===== رنگ‌های اختصاصی =====
$primary = '#355C9C';
$secondary = '#2FA7A3';
$accent = '#F5C16C';
$bg = '#F8F9FB';
$surface = '#FFFFFF';
$text = '#1F2937';
$muted = '#6B7280';
$border = '#E5E7EB';

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

$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' => '۲ دقیقه پیش', 'avatar' => 'ر'],
    ['user' => 'مریم احمدی', 'action' => 'تراکنش جدید ثبت کرد', 'time' => '۱۵ دقیقه پیش', 'avatar' => 'م'],
    ['user' => 'دکتر حسین کریمی', 'action' => 'تیکت جدید ارسال کرد', 'time' => '۴۵ دقیقه پیش', 'avatar' => 'ک'],
];
?>
<!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: <?= $bg ?>; 
            min-height: 100vh;
            display: flex;
            color: <?= $text ?>;
        }
        
        /* ===== انیمیشن‌ها ===== */
        @keyframes fadeUp {
            from { opacity: 0; transform: translateY(16px); }
            to { opacity: 1; transform: translateY(0); }
        }
        @keyframes scaleIn {
            from { opacity: 0; transform: scale(0.96); }
            to { opacity: 1; transform: scale(1); }
        }
        .animate-fade-up { animation: fadeUp 0.5s ease-out; }
        .animate-scale-in { animation: scaleIn 0.4s ease-out; }
        .delay-1 { animation-delay: 0.05s; }
        .delay-2 { animation-delay: 0.1s; }
        .delay-3 { animation-delay: 0.15s; }
        .delay-4 { animation-delay: 0.2s; }
        
        /* ===== اسکرول ===== */
        ::-webkit-scrollbar { width: 5px; }
        ::-webkit-scrollbar-track { background: <?= $bg ?>; }
        ::-webkit-scrollbar-thumb { background: <?= $primary ?>40; border-radius: 20px; }
        ::-webkit-scrollbar-thumb:hover { background: <?= $primary ?>; }
        
        /* ===== سایدبار ===== */
        .sidebar {
            width: 260px;
            background: <?= $surface ?>;
            min-height: 100vh;
            padding: 0;
            position: fixed;
            right: 0;
            top: 0;
            bottom: 0;
            overflow-y: auto;
            z-index: 100;
            transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
            border-left: 1px solid <?= $border ?>;
        }
        
        .sidebar-brand {
            padding: 32px 24px 24px;
            border-bottom: 1px solid <?= $border ?>;
        }
        .sidebar-brand .logo-row {
            display: flex;
            align-items: center;
            gap: 14px;
        }
        .sidebar-brand .logo-icon {
            width: 44px;
            height: 44px;
            background: linear-gradient(135deg, <?= $primary ?>, <?= $secondary ?>);
            border-radius: 14px;
            display: flex;
            align-items: center;
            justify-content: center;
            color: #fff;
            font-size: 20px;
            flex-shrink: 0;
            box-shadow: 0 4px 16px <?= $primary ?>30;
        }
        .sidebar-brand .brand-text h2 {
            font-size: 17px;
            font-weight: 800;
            color: <?= $text ?>;
            margin: 0;
            line-height: 1.2;
            letter-spacing: -0.3px;
        }
        .sidebar-brand .brand-text h2 span { color: <?= $primary ?>; }
        .sidebar-brand .brand-text small {
            font-size: 11px;
            color: <?= $muted ?>;
            display: block;
            margin-top: 2px;
        }
        
        .sidebar .nav-label {
            font-size: 11px;
            font-weight: 600;
            color: <?= $muted ?>;
            text-transform: uppercase;
            letter-spacing: 0.8px;
            padding: 24px 24px 8px;
        }
        .sidebar .nav-item {
            display: flex;
            align-items: center;
            gap: 14px;
            padding: 10px 20px;
            margin: 2px 12px;
            border-radius: 12px;
            color: <?= $muted ?>;
            text-decoration: none;
            font-size: 14px;
            font-weight: 500;
            transition: all 0.2s ease;
            cursor: pointer;
            position: relative;
        }
        .sidebar .nav-item:hover {
            background: <?= $bg ?>;
            color: <?= $text ?>;
        }
        .sidebar .nav-item.active {
            background: <?= $primary ?>10;
            color: <?= $primary ?>;
            font-weight: 600;
        }
        .sidebar .nav-item.active::before {
            content: '';
            position: absolute;
            right: 0;
            top: 50%;
            transform: translateY(-50%);
            width: 3px;
            height: 24px;
            background: <?= $primary ?>;
            border-radius: 0 4px 4px 0;
        }
        .sidebar .nav-item i { width: 20px; font-size: 16px; text-align: center; }
        .sidebar .nav-item .badge {
            margin-right: auto;
            background: <?= $accent ?>;
            color: <?= $text ?>;
            font-size: 11px;
            padding: 1px 10px;
            border-radius: 20px;
            font-weight: 600;
        }
        
        .sidebar-divider {
            height: 1px;
            background: <?= $border ?>;
            margin: 16px 20px;
        }
        
        .sidebar-footer {
            padding: 16px 20px;
            margin: 12px;
            border-radius: 14px;
            background: <?= $bg ?>;
            border: 1px solid <?= $border ?>;
        }
        .sidebar-footer .user-row {
            display: flex;
            align-items: center;
            gap: 14px;
        }
        .sidebar-footer .user-avatar {
            width: 40px;
            height: 40px;
            border-radius: 50%;
            background: linear-gradient(135deg, <?= $primary ?>, <?= $secondary ?>);
            display: flex;
            align-items: center;
            justify-content: center;
            color: #fff;
            font-weight: 600;
            font-size: 15px;
            flex-shrink: 0;
        }
        .sidebar-footer .user-info .name {
            font-size: 14px;
            font-weight: 600;
            color: <?= $text ?>;
        }
        .sidebar-footer .user-info .role {
            font-size: 12px;
            color: <?= $muted ?>;
        }
        
        /* ===== محتوای اصلی ===== */
        .main {
            margin-right: 260px;
            flex: 1;
            padding: 32px 40px;
            min-height: 100vh;
        }
        
        /* ===== هدر ===== */
        .top-header {
            display: flex;
            align-items: center;
            justify-content: space-between;
            margin-bottom: 32px;
        }
        .top-header .page-title h1 {
            font-size: 26px;
            font-weight: 800;
            color: <?= $text ?>;
            letter-spacing: -0.5px;
        }
        .top-header .page-title p {
            font-size: 15px;
            color: <?= $muted ?>;
            margin-top: 4px;
        }
        .top-header .header-actions {
            display: flex;
            align-items: center;
            gap: 12px;
        }
        .top-header .header-actions .icon-btn {
            width: 42px;
            height: 42px;
            border-radius: 50%;
            border: none;
            background: <?= $surface ?>;
            color: <?= $muted ?>;
            cursor: pointer;
            transition: all 0.2s ease;
            display: flex;
            align-items: center;
            justify-content: center;
            font-size: 17px;
            position: relative;
            box-shadow: 0 1px 3px rgba(0,0,0,0.02);
            border: 1px solid <?= $border ?>;
        }
        .top-header .header-actions .icon-btn:hover {
            background: <?= $bg ?>;
            color: <?= $text ?>;
            transform: translateY(-1px);
            box-shadow: 0 4px 12px rgba(0,0,0,0.04);
        }
        .top-header .header-actions .icon-btn .dot {
            position: absolute;
            top: 10px;
            right: 10px;
            width: 8px;
            height: 8px;
            background: <?= $accent ?>;
            border-radius: 50%;
            border: 2px solid <?= $surface ?>;
        }
        .top-header .user-badge {
            display: flex;
            align-items: center;
            gap: 12px;
            background: <?= $surface ?>;
            padding: 6px 16px 6px 6px;
            border-radius: 40px;
            box-shadow: 0 1px 3px rgba(0,0,0,0.02);
            cursor: pointer;
            transition: all 0.2s ease;
            border: 1px solid <?= $border ?>;
        }
        .top-header .user-badge:hover {
            border-color: <?= $primary ?>40;
            box-shadow: 0 4px 16px rgba(0,0,0,0.04);
        }
        .top-header .user-badge .avatar {
            width: 34px;
            height: 34px;
            border-radius: 50%;
            background: linear-gradient(135deg, <?= $primary ?>, <?= $secondary ?>);
            display: flex;
            align-items: center;
            justify-content: center;
            color: #fff;
            font-weight: 600;
            font-size: 14px;
        }
        .top-header .user-badge .name {
            font-size: 14px;
            font-weight: 600;
            color: <?= $text ?>;
        }
        .top-header .user-badge .role {
            font-size: 12px;
            color: <?= $muted ?>;
        }
        
        /* ===== کارت‌های آماری ===== */
        .stats-grid {
            display: grid;
            grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
            gap: 20px;
            margin-bottom: 32px;
        }
        .stat-card {
            background: <?= $surface ?>;
            border-radius: 18px;
            padding: 22px 24px;
            border: 1px solid <?= $border ?>;
            transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
            box-shadow: 0 1px 3px rgba(0,0,0,0.02);
        }
        .stat-card:hover {
            transform: translateY(-4px);
            box-shadow: 0 12px 40px rgba(0,0,0,0.04);
            border-color: <?= $primary ?>30;
        }
        .stat-card .top {
            display: flex;
            align-items: center;
            justify-content: space-between;
        }
        .stat-card .top .icon {
            width: 48px;
            height: 48px;
            border-radius: 14px;
            background: <?= $primary ?>10;
            display: flex;
            align-items: center;
            justify-content: center;
            font-size: 20px;
            color: <?= $primary ?>;
            transition: all 0.2s ease;
        }
        .stat-card:hover .top .icon {
            background: <?= $primary ?>;
            color: #fff;
        }
        .stat-card .top .change {
            font-size: 13px;
            font-weight: 600;
            padding: 2px 12px;
            border-radius: 20px;
        }
        .stat-card .top .change.positive {
            color: <?= $secondary ?>;
            background: <?= $secondary ?>10;
        }
        .stat-card .top .change.negative {
            color: #ef4444;
            background: #fef2f2;
        }
        .stat-card .value {
            font-size: 30px;
            font-weight: 800;
            color: <?= $text ?>;
            margin-top: 12px;
            letter-spacing: -0.5px;
        }
        .stat-card .title {
            font-size: 14px;
            color: <?= $muted ?>;
            font-weight: 500;
            margin-top: 2px;
        }
        
        /* ===== بخش دو ستونی ===== */
        .two-col {
            display: grid;
            grid-template-columns: 2fr 1fr;
            gap: 24px;
            margin-bottom: 32px;
        }
        .card {
            background: <?= $surface ?>;
            border-radius: 18px;
            padding: 24px 28px;
            border: 1px solid <?= $border ?>;
            box-shadow: 0 1px 3px rgba(0,0,0,0.02);
            transition: all 0.2s ease;
        }
        .card:hover {
            box-shadow: 0 4px 20px rgba(0,0,0,0.02);
        }
        .card .card-title {
            font-size: 16px;
            font-weight: 700;
            color: <?= $text ?>;
            margin-bottom: 18px;
            display: flex;
            align-items: center;
            gap: 10px;
        }
        .card .card-title i { color: <?= $primary ?>; font-size: 18px; }
        
        /* ===== فعالیت‌ها ===== */
        .activity-item {
            display: flex;
            align-items: center;
            gap: 14px;
            padding: 12px 0;
            border-bottom: 1px solid <?= $border ?>;
            transition: all 0.15s ease;
        }
        .activity-item:last-child { border-bottom: none; }
        .activity-item .avatar-sm {
            width: 38px;
            height: 38px;
            border-radius: 50%;
            background: <?= $primary ?>10;
            color: <?= $primary ?>;
            display: flex;
            align-items: center;
            justify-content: center;
            font-weight: 600;
            font-size: 14px;
            flex-shrink: 0;
        }
        .activity-item .text { flex: 1; font-size: 14px; color: <?= $text ?>; }
        .activity-item .text strong { font-weight: 600; }
        .activity-item .time { font-size: 13px; color: <?= $muted ?>; }
        
        /* ===== کارها ===== */
        .task-item {
            display: flex;
            align-items: center;
            justify-content: space-between;
            padding: 10px 0;
            border-bottom: 1px solid <?= $border ?>;
        }
        .task-item:last-child { border-bottom: none; }
        .task-item .info { display: flex; align-items: center; gap: 12px; }
        .task-item .info .circle {
            width: 8px;
            height: 8px;
            border-radius: 50%;
            flex-shrink: 0;
        }
        .task-item .info .circle.red { background: #ef4444; }
        .task-item .info .circle.yellow { background: <?= $accent ?>; }
        .task-item .info .text { font-size: 14px; color: <?= $text ?>; }
        .task-item .count {
            font-size: 13px;
            font-weight: 600;
            color: <?= $muted ?>;
            background: <?= $bg ?>;
            padding: 2px 14px;
            border-radius: 20px;
        }
        .task-item .count.urgent {
            background: <?= $accent ?>20;
            color: <?= $accent ?>;
        }
        
        /* ===== دکمه‌ها ===== */
        .btn {
            padding: 10px 24px;
            border: none;
            border-radius: 12px;
            font-size: 14px;
            font-weight: 600;
            cursor: pointer;
            transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
            display: inline-flex;
            align-items: center;
            gap: 10px;
            font-family: 'Vazirmatn', sans-serif;
        }
        .btn-primary {
            background: <?= $primary ?>;
            color: #fff;
            box-shadow: 0 2px 8px <?= $primary ?>30;
        }
        .btn-primary:hover {
            transform: translateY(-2px);
            box-shadow: 0 8px 24px <?= $primary ?>40;
        }
        .btn-secondary {
            background: <?= $secondary ?>;
            color: #fff;
            box-shadow: 0 2px 8px <?= $secondary ?>30;
        }
        .btn-secondary:hover {
            transform: translateY(-2px);
            box-shadow: 0 8px 24px <?= $secondary ?>40;
        }
        .btn-outline {
            background: transparent;
            color: <?= $text ?>;
            border: 1.5px solid <?= $border ?>;
        }
        .btn-outline:hover {
            background: <?= $bg ?>;
            border-color: <?= $primary ?>40;
        }
        .btn-group {
            display: flex;
            flex-wrap: wrap;
            gap: 12px;
            margin-top: 18px;
            padding-top: 18px;
            border-top: 1px solid <?= $border ?>;
        }
        
        .footer {
            margin-top: 32px;
            padding: 16px 24px;
            background: <?= $surface ?>;
            border-radius: 16px;
            border: 1px solid <?= $border ?>;
            text-align: center;
            font-size: 13px;
            color: <?= $muted ?>;
        }
        .footer .highlight { color: <?= $primary ?>; font-weight: 500; }
        .footer .sep { color: <?= $border ?>; }
        
        /* ===== انتخابگر تم ===== */
        .color-picker {
            background: <?= $surface ?>;
            border-radius: 16px;
            padding: 14px 20px;
            border: 1px solid <?= $border ?>;
            margin-bottom: 24px;
            display: flex;
            align-items: center;
            gap: 16px;
            flex-wrap: wrap;
        }
        .color-picker .label {
            font-size: 13px;
            font-weight: 600;
            color: <?= $text ?>;
            display: flex;
            align-items: center;
            gap: 8px;
        }
        .color-picker .label i { color: <?= $primary ?>; }
        .color-dot {
            width: 32px;
            height: 32px;
            border-radius: 50%;
            border: 2px solid <?= $border ?>;
            cursor: pointer;
            transition: all 0.2s ease;
        }
        .color-dot:hover { transform: scale(1.1); }
        .color-dot.active { border-color: <?= $text ?>; box-shadow: 0 0 0 2px <?= $surface ?>, 0 0 0 4px <?= $text ?>; }
        .color-name {
            font-size: 12px;
            color: <?= $muted ?>;
        }
        
        .badge-preview {
            background: <?= $accent ?>20;
            color: <?= $accent ?>;
            font-size: 10px;
            font-weight: 700;
            padding: 2px 14px;
            border-radius: 20px;
            display: inline-block;
        }
        
        @media (max-width: 1024px) { .two-col { grid-template-columns: 1fr; } }
        @media (max-width: 768px) {
            .sidebar {
                transform: translateX(100%);
                width: 290px;
            }
            .sidebar.open { transform: translateX(0); }
            .main { margin-right: 0; padding: 20px; }
            .stats-grid { grid-template-columns: repeat(2, 1fr); }
            .top-header { flex-direction: column; align-items: flex-start; gap: 16px; }
            .top-header .header-actions { width: 100%; justify-content: space-between; }
            .hamburger { display: block !important; }
            .color-picker { justify-content: center; }
        }
        .hamburger {
            display: none;
            background: none;
            border: none;
            font-size: 20px;
            color: <?= $text ?>;
            cursor: pointer;
            padding: 4px;
        }
    </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:<?= $muted ?>;">
        <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="color-picker">
        <span class="label"><i class="fas fa-palette"></i> انتخاب تم:</span>
        <span class="color-dot active" style="background:<?= $primary ?>;" title="آبی"></span>
        <span class="color-dot" style="background:#2FA7A3;" title="فیروزه‌ای"></span>
        <span class="color-dot" style="background:#7C3AED;" title="بنفش"></span>
        <span class="color-dot" style="background:#DC2626;" title="قرمز"></span>
        <span class="color-dot" style="background:#059669;" title="سبز"></span>
        <span class="color-name" style="margin-right:8px;">تم آبی (پیش‌فرض)</span>
    </div>

    <!-- ===== هدر ===== -->
    <div class="top-header">
        <div class="page-title">
            <div style="display:flex;align-items:center;gap:12px;margin-bottom:2px;">
                <button class="hamburger" onclick="document.getElementById('sidebar').classList.toggle('open')">
                    <i class="fas fa-bars"></i>
                </button>
                <h1><?= $pageTitle ?></h1>
                <span class="badge-preview">✨ Premium</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 animate-scale-in">
            <div class="top">
                <div class="icon"><i class="fas <?= $stat['icon'] ?>"></i></div>
                <span class="change <?= strpos($stat['change'], '+') !== false ? 'positive' : 'negative' ?>">
                    <?= $stat['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 animate-fade-up">
            <div class="card-title"><i class="fas fa-clock"></i> آخرین فعالیت‌ها</div>
            <?php foreach ($activities as $activity): ?>
            <div class="activity-item">
                <div class="avatar-sm"><?= $activity['avatar'] ?></div>
                <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:14px;">
                مشاهده همه فعالیت‌ها
            </button>
        </div>

        <div class="card animate-fade-up" style="animation-delay:0.1s;">
            <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-primary"><i class="fas fa-check"></i> تأیید همه</button>
                <button class="btn btn-secondary"><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:12px;margin-top:8px;padding-top:20px;border-top:1px solid <?= $border ?>;">
        <button class="btn btn-primary"><i class="fas fa-plus"></i> افزودن جدید</button>
        <button class="btn btn-secondary"><i class="fas fa-file-excel"></i> خروجی اکسل</button>
        <button class="btn btn-secondary"><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:<?= $primary ?>;margin-left:8px;"></i>
        تمامی حقوق محفوظ است <span class="highlight">دانشگاه علمی کاربردی</span>
        <span class="sep"> | </span>
        توسعه: <span class="highlight">تیم فناوری</span>
        <span class="sep"> | </span>
        <?= date('Y') ?>
    </div>

</div>

</body>
</html>