<aside class="admin-sidebar">
  <div class="sidebar-header">
    <div class="sidebar-brand">
      <% if (locals.settings && locals.settings.images && locals.settings.images.sekolah_logo) { %>
        <img src="<%= locals.settings.images.sekolah_logo %>" alt="Logo Sekolah" class="brand-icon" style="width: 32px; height: 32px; object-fit: contain;">
      <% } else { %>
        <i class="fa-solid fa-graduation-cap brand-icon"></i>
      <% } %>
      <div class="brand-text">
        <h3>CMS ADMIN</h3>
        <span>SMK Teratai Putih 3</span>
      </div>
    </div>
  </div>

  <div class="sidebar-menu">
    <div class="menu-label">MENU UTAMA</div>
    
    <a href="/admin" class="menu-item <%= activeTab === 'dashboard' ? 'active' : '' %>">
      <i class="fa-solid fa-chart-line"></i> Dashboard Overview
    </a>

    <a href="/admin/content" class="menu-item <%= activeTab === 'content' ? 'active' : '' %>">
      <i class="fa-solid fa-pen-to-square"></i> Manajemen Konten & Media
    </a>

    <a href="/admin/brosur" class="menu-item <%= activeTab === 'brosur' ? 'active' : '' %>">
      <i class="fa-solid fa-file-pdf"></i> Kelola Brosur PPDB
    </a>

    <a href="/admin/berita" class="menu-item <%= activeTab === 'berita' ? 'active' : '' %>">
      <i class="fa-solid fa-newspaper"></i> Berita & Artikel
    </a>

    <a href="/admin/ulasan" class="menu-item <%= activeTab === 'ulasan' ? 'active' : '' %>">
      <i class="fa-brands fa-google"></i> Ulasan Google Maps
    </a>

    <a href="/admin/ppdb-leads" class="menu-item <%= activeTab === 'ppdb-leads' ? 'active' : '' %>">
      <i class="fa-solid fa-id-card"></i> Data Pendaftar PPDB
    </a>

    <div class="menu-label" style="margin-top: 1.5rem;">PENGATURAN</div>
    
    <a href="/admin/settings" class="menu-item <%= locals.activeTab === 'settings' ? 'active' : '' %>">
      <i class="fa-solid fa-gear"></i> Pengaturan Sistem
    </a>
    
    <a href="/" target="_blank" class="menu-item">
      <i class="fa-solid fa-globe"></i> Lihat Website Utama ↗
    </a>

    <a href="/admin/logout" class="menu-item text-danger">
      <i class="fa-solid fa-arrow-right-from-bracket"></i> Keluar (Logout)
    </a>
  </div>
</aside>
