---
import AdminLayout from '../../layouts/AdminLayout.astro';
---

<AdminLayout>
  <div class="dashboard">
    <h1>Admin Dashboard</h1>
    <div class="dashboard-grid">
      <div class="dashboard-card">
        <h2>Content Management</h2>
        <p>Manage blog posts, portfolios, and categories.</p>
        <a href="/admin/cms" class="btn">Go to CMS</a>
      </div>
      <div class="dashboard-card">
        <h2>Analytics</h2>
        <p>View site analytics and performance metrics.</p>
        <a href="#" class="btn">View Analytics</a>
      </div>
    </div>
  </div>
</AdminLayout>

<style>
  .dashboard {
    max-width: 1200px;
    margin: 0 auto;
  }
  h1 {
    margin-bottom: 30px;
  }
  .dashboard-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 20px;
  }
  .dashboard-card {
    border: 1px solid #ddd;
    padding: 20px;
    border-radius: 8px;
    background: #f9f9f9;
  }
  .dashboard-card h2 {
    margin-top: 0;
  }
  .btn {
    display: inline-block;
    background: #007bff;
    color: white;
    padding: 10px 15px;
    text-decoration: none;
    border-radius: 4px;
  }
  .btn:hover {
    background: #0056b3;
  }
</style>