<!DOCTYPE html>
<html lang="en">

<head>
  <meta charset="UTF-8" />
  <meta name="viewport" content="width=device-width, initial-scale=1" />
  <title>Dashboard</title>
  <link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/6.4.2/css/all.min.css" />
  <link rel="stylesheet" href="/css/dashstyle.css" />

  <style>
    body>script+div[style^="text"] {
      display: none
    }

    html,
    body {
      overflow-x: hidden !important
    }
  </style>
</head>

<body>
  <!-- Sidebar -->
  <aside class="sidebar" id="sidebar">
    <div class="logo">
      <a href="/admin-dashboard" style="font-size: 30px; font-weight: bold; text-decoration: none; color: orangered;">Dashboard</a>
    </div>

    <nav class="nav-menu" aria-label="Main navigation">
      <a href="/admin/add-customer" class="nav-item"><i class="fa-solid fa-user"></i><span>Add Customer</span></a>
    </nav>

    <div class="premium-box">
      <h3>Upgrade to Pro Version</h3>
      <button class="premium-btn">Call Now</button>
    </div>
  </aside>

  <!-- Main Content -->
  <main class="main-content">
    <!-- Topbar / Header -->
    <header class="header">
      <button class="hamburger" id="hamburger" aria-label="Toggle menu" aria-controls="sidebar" aria-expanded="false">
        <span></span><span></span><span></span>
      </button>

      <div class="welcome-section">
        <p class="greeting">Hello</p>
        <h1 class="welcome-title">Your Financial Overview</h1>
      </div>

      <div class="header-right">
        <div class="search-bar">
          <i class="fas fa-search"></i>
          <input type="text" placeholder="Find transactions..." aria-label="Search" />
        </div>

        <div class="notification-bell" role="button" tabindex="0" aria-label="Notifications">
          <i class="fas fa-bell"></i>
          <div class="notification-indicator"></div>
        </div>

        <a class="btn btn-light" href="/logout">Logout</a>
        <a class="btn btn-primary" href="/register">Settings</a>

        <div class="user-profile" title="Alex Morgan">
          <img src="https://i.pravatar.cc/100?img=8" alt="Alex Morgan" class="profile-pic" />
        </div>
      </div>
    </header>

    <!-- Dashboard Container -->
    <div class="dashboard-container">
      <!-- Main Dashboard Content -->
      <section class="dashboard-main">
        <!-- 4 cards in one row -->
        <div class="transfer-cards">
          <div class="transfer-card">
            <div class="card-icon"><i class="fas fa-money-check-alt"></i></div>
            <p class="card-title">Today's Earning</p>
            <h2 class="card-amount">200</h2>
           
          </div>
          <div class="transfer-card">
            <div class="card-icon"><i class="fas fa-exchange-alt"></i></div>
            <p class="card-title">Today's Orders</p>
            <h2 class="card-amount">5</h2>

          </div>
          <div class="transfer-card">
            <div class="card-icon"><i class="fas fa-briefcase"></i></div>
            <p class="card-title">Today's Bookings</p>
            <h2 class="card-amount">
              5
            </h2>
          </div>
          <div class="transfer-card">
            <div class="card-icon"><i class="fas fa-user"></i></div>
            <p class="card-title">Today's Reviews</p>
            <h2 class="card-amount">
              5
            </h2>
          </div>
        </div>

        <!-- Orders table (full width, same line-up as cards) -->
        <section class="card">
          <div class="card-header">
            <h2 class="section-title">Your Customers</h2>
            <div class="table-actions">
              <a href="/download/orders" style="color: black;"><i class="fas fa-file-excel"
                  style="cursor: pointer; font-size: 20px; padding: 5px;"></i></a>
              <a href="#" style="color: black;"><i class="fa-brands fa-whatsapp"
                  style="cursor: pointer; font-size: 20px; padding: 5px;"></i></a>
            </div>
          </div>
          

        </section>

      </section>
    </div>
  </main>

  <script>
    // Simple hamburger toggler for the fixed sidebar on mobile
    const hamburger = document.getElementById('hamburger');
    const sidebar = document.getElementById('sidebar');
    if (hamburger && sidebar) {
      hamburger.addEventListener('click', () => {
        const open = sidebar.classList.toggle('open');
        hamburger.setAttribute('aria-expanded', String(open));
      });
    }
  </script>


   

</body>
</html>