Software Development

Premium SaaS Admin Panel Design: UI/UX Principles & Best Practices

By vidu • • 58 min read • 81 views
Premium SaaS Admin Panel Design: UI/UX Principles & Best Practices

How to Design a Premium SaaS Admin Panel That Feels Different

Modern admin panels often look remarkably similar: white cards, blue gradients, standard dashboards, crowded tables, and predictable navigation. A professional admin interface, however, does not have to feel like another generic template.

A premium SaaS admin panel should combine clarity, hierarchy, usability, visual identity, responsiveness, and meaningful interaction.

One example is a dashboard concept built around a warm paper-inspired background, deep emerald accents, a near-black sidebar, refined typography, subtle glassmorphism, animated analytics, and responsive navigation. The result is an interface that feels closer to an editorial financial application than a conventional SaaS template.

1. Start With a Distinctive Visual Identity

The first step in designing a premium dashboard is avoiding the default SaaS color palette.

Instead of relying on the familiar blue-and-purple combination, this design uses:

  • Warm paper background — #F5F4EF
  • Deep emerald — #0F6E4A
  • Amber accents
  • Rose accents
  • Near-black sidebar
  • Soft neutral borders
  • White content cards

This creates a more sophisticated visual language while still maintaining strong readability.

The emerald color becomes the primary interaction color, while amber, rose, cyan, and neutral tones are used to distinguish different types of information.

The important principle is hierarchy rather than decoration. Color should help users understand the interface instead of simply making it look colorful.

2. Use Typography to Create Personality

Typography is one of the easiest ways to make an admin dashboard feel premium.

The interface combines:

  • Plus Jakarta Sans for navigation, labels, tables, buttons, and general UI
  • Instrument Serif for large numbers and prominent greeting text

This creates contrast between functional interface elements and high-impact information.

For example, large statistics such as revenue, users, and activity numbers use a display serif style, while supporting labels remain in a clean sans-serif font.

This approach gives the dashboard a more editorial character without sacrificing usability.

3. Build an Atmospheric Background

A completely flat background can make a dashboard feel lifeless.

The design introduces subtle visual depth through multiple radial gradients:

  • Emerald glow toward the upper-right
  • Rose glow toward the lower-left
  • A very subtle amber glow around the center

A lightweight SVG noise texture is also layered over the background.

The effect is deliberately subtle. Users should notice that the interface feels richer, but the background should never compete with the actual dashboard information.

4. Use Glassmorphism Carefully

Glassmorphism can easily become excessive in dashboard design.

Instead of applying glass effects to every component, this design uses them selectively.

The primary header uses:

  • Transparent background
  • Backdrop blur
  • Saturation
  • A subtle bottom border

The sidebar's upgrade card also uses a dark glass treatment with a soft emerald glow.

Meanwhile, the main content cards remain opaque white.

This is an important design principle:

Use visual effects to establish hierarchy, not to decorate every component.

Keeping the primary information cards solid makes tables, charts, and statistics easier to read.


5. Design the Sidebar Around Tasks

A dashboard sidebar should help users understand the application's structure immediately.

The example organizes navigation into three groups:

Overview

  • Dashboard
  • Analytics
  • Customers
  • Orders

Management

  • Products
  • Invoices
  • Marketing
  • Reports

System

  • Settings
  • Help Center

The active navigation item receives a darker background and a small emerald indicator on the left.

This makes the current location obvious without requiring excessive visual decoration.

The sidebar also includes a quick-search shortcut and user information at the bottom.

6. Make the Dashboard Feel Alive

A good dashboard should communicate that its information is current.

The design uses several subtle interaction patterns:

  1. Live status indicator
  2. Pulsing notification indicator
  3. Animated sparklines
  4. Staggered section entrance animations
  5. Card hover elevation
  6. Animated charts
  7. Interactive time-range controls

These effects are intentionally small.

The goal is not to create an animation showcase. The goal is to provide feedback and context.

For example, a small pulsing "Live" indicator communicates that the dashboard is synchronized, while animated sparklines help draw attention to changing metrics.

7. Make KPI Cards Immediately Scannable

The first major content section contains four KPI cards:

  • Total Users
  • Revenue
  • Orders
  • Active Now

Each card follows the same visual structure:

Icon → Change indicator → Metric label → Large number → Sparkline

This consistency allows users to scan the dashboard quickly.

For example, the Total Users card combines the number 24,587 with a positive percentage indicator and a small trend visualization.

The card layout is also responsive, changing from four columns to two and eventually one column on smaller screens.

8. Turn Analytics Into Interactive Components

Charts should provide more than decoration.

The Revenue Analytics component includes four selectable periods:

  • 7D
  • 30D
  • 90D
  • 1Y

Selecting a range changes the displayed labels and datasets.

The implementation uses Chart.js to update the existing chart rather than simply displaying a static image.

This is an important distinction between a dashboard mockup and an interactive dashboard.

A visual element becomes significantly more valuable when users can interact with it and receive immediate feedback.

9. Use Multiple Visualization Types

Not every metric should use the same chart.

The dashboard combines:

Line Chart

Used for revenue trends and comparison between the current and previous period.

Doughnut Chart

Used for traffic-source distribution.

Sparklines

Used for quick KPI-level trends.

Timeline

Used for recent activity.

This combination creates multiple levels of information density:

KPI → Trend → Distribution → Detailed records → Activity history

That hierarchy allows users to start with a quick overview and progressively explore more detail.

10. Make Tables Comfortable to Read

Tables are often one of the most difficult parts of admin interfaces to design well.

The transaction table separates information into:

  • Customer
  • Order
  • Date
  • Amount
  • Status

Customer records combine avatars with names and email addresses, while order IDs use a monospace style to visually distinguish identifiers.

Status badges communicate states such as:

  • Paid
  • Pending
  • Failed

The table also includes subtle hover feedback and horizontal scrolling support for smaller screens.

The objective is to make a large amount of information feel organized rather than overwhelming.

11. Add Quick Actions

Users should not have to navigate through multiple screens for frequently performed actions.

A dedicated Quick Actions panel provides shortcuts such as:

  • Add User
  • Invoice
  • Export
  • Report

Each action includes an icon, title, and short description.

This pattern is particularly useful for business applications where administrators repeatedly perform the same operations.

12. Use Activity Feeds for Context

A dashboard becomes more useful when it explains what is happening now.

The Activity panel provides a chronological timeline containing events such as:

  • Deals being closed
  • New users registering
  • Payments being received
  • Orders being shipped
  • Refunds being processed

The vertical timeline creates a compact way to communicate recent system activity without requiring another page.

13. Design for Mobile From the Beginning

An admin panel cannot assume that administrators will always use desktop computers.

The responsive implementation transforms the desktop sidebar into a slide-in mobile drawer below the 1024px breakpoint.

On smaller screens:

  • Sidebar becomes an off-canvas menu
  • Overlay appears behind the navigation
  • Search becomes an icon
  • KPI cards stack
  • Charts stack vertically
  • Tables become horizontally scrollable
  • Header controls become more compact

The mobile navigation also closes after selecting an item, reducing unnecessary interaction.

Responsive design should therefore be considered part of the architecture, not something added at the end.

14. Use Animation With Purpose

Premium interfaces do not necessarily need more animation. They need better animation.

The dashboard uses:

  • Fade-up entrance animations
  • Sparkline drawing
  • Chart transitions
  • Notification pulses
  • Hover elevation
  • Live status pulses

These animations are short and subtle.

For example, the sparkline uses SVG stroke animation to create the impression that the trend is being drawn onto the screen.

The result is a dashboard that feels responsive without becoming distracting.

15. Functional Interactions Matter

One of the strongest aspects of the concept is that several visual components are backed by actual interaction logic.

The implementation includes:

  • Mobile sidebar open/close
  • Navigation active states
  • Revenue time-range switching
  • Chart data updates
  • Responsive search behavior
  • Interactive hover states

The 7D, 30D, 90D, and 1Y buttons actually replace the revenue chart data and labels rather than simply changing the selected button.

This principle is worth remembering when creating UI concepts:

If something looks interactive, it should behave interactively whenever possible.

16. A Premium Admin Panel Is About Hierarchy

The biggest lesson from this design is that premium UI is not created by adding gradients, shadows, or glass effects everywhere.

It comes from hierarchy.

A successful dashboard answers these questions in order:

What is happening?

KPI cards provide the immediate answer.

Why is it happening?

Charts and traffic sources provide context.

What exactly happened?

Transactions provide detailed records.

What happened recently?

The activity timeline provides chronological context.

What should I do next?

Quick Actions provide direct operations.

This creates a natural information architecture that guides the administrator through the interface.


<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Admin Dashboard</title>
<script src="https://cdn.tailwindcss.com"></script>
<script src="https://cdn.jsdelivr.net/npm/[email protected]"></script>
<link href="https://fonts.googleapis.com/css2?family=Plus+Jakarta+Sans:wght@400;500;600;700;800&family=Instrument+Serif:ital@0;1&display=swap" rel="stylesheet">
<link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/6.5.0/css/all.min.css">
<style>
  :root {
    --bg: #F5F4EF;
    --bg-grain: #EFEEE8;
    --card: #FFFFFF;
    --fg: #0A0A0B;
    --fg-muted: #6C6C72;
    --fg-subtle: #9D9DA3;
    --border: #E8E6DE;
    --border-strong: #D9D7CE;
    --accent: #0F6E4A;
    --accent-hover: #0A5638;
    --accent-soft: #DCF0E4;
    --accent-glow: rgba(15, 110, 74, 0.15);
    --warning: #B45309;
    --warning-soft: #FEF3C7;
    --danger: #B91C1C;
    --danger-soft: #FEE2E2;
    --info: #0E7490;
    --info-soft: #CFFAFE;
    --rose: #BE185D;
    --rose-soft: #FCE7F3;
    --sidebar: #0A0A0C;
    --sidebar-fg: #8B8B92;
    --sidebar-fg-active: #FFFFFF;
    --sidebar-border: #1F1F24;
    --sidebar-hover: #18181B;
  }


  * { -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale; }


  body {
    font-family: 'Plus Jakarta Sans', sans-serif;
    background: var(--bg);
    color: var(--fg);
    overflow-x: hidden;
  }


  .font-display { font-family: 'Instrument Serif', serif; font-weight: 400; letter-spacing: -0.02em; }


  /* Atmospheric layered background */
  body::before {
    content: '';
    position: fixed; inset: 0;
    background:
      radial-gradient(ellipse 70% 50% at 85% -5%, rgba(15, 110, 74, 0.08), transparent 60%),
      radial-gradient(ellipse 50% 40% at -5% 95%, rgba(190, 24, 93, 0.05), transparent 60%),
      radial-gradient(ellipse 40% 30% at 50% 50%, rgba(180, 83, 9, 0.03), transparent 70%);
    pointer-events: none; z-index: 0;
  }
  body::after {
    content: '';
    position: fixed; inset: 0;
    background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2'/%3E%3CfeColorMatrix values='0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0.04 0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
    opacity: 0.6; pointer-events: none; z-index: 0; mix-blend-mode: multiply;
  }


  /* Sidebar */
  .sidebar {
    background: var(--sidebar);
    color: var(--sidebar-fg);
    border-right: 1px solid var(--sidebar-border);
  }
  .nav-item {
    display: flex; align-items: center; gap: 12px;
    padding: 10px 14px; border-radius: 10px;
    font-size: 14px; font-weight: 500;
    color: var(--sidebar-fg);
    transition: all 0.2s ease;
    position: relative; cursor: pointer;
  }
  .nav-item:hover { background: var(--sidebar-hover); color: #E5E5E7; }
  .nav-item.active { background: var(--sidebar-hover); color: var(--sidebar-fg-active); }
  .nav-item.active::before {
    content: ''; position: absolute; left: -16px; top: 50%;
    transform: translateY(-50%);
    width: 3px; height: 20px; background: var(--accent);
    border-radius: 0 3px 3px 0;
  }
  .nav-item i { width: 18px; font-size: 15px; text-align: center; }


  /* Glass header */
  .glass-header {
    background: rgba(245, 244, 239, 0.72);
    backdrop-filter: blur(24px) saturate(180%);
    -webkit-backdrop-filter: blur(24px) saturate(180%);
    border-bottom: 1px solid rgba(232, 230, 222, 0.7);
  }
  .glass-card-dark {
    background: rgba(255,255,255,0.04);
    backdrop-filter: blur(12px);
    border: 1px solid rgba(255,255,255,0.06);
  }


  /* Cards */
  .card {
    background: var(--card);
    border: 1px solid var(--border);
    border-radius: 20px;
    transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  }
  .card-hover:hover {
    transform: translateY(-2px);
    box-shadow: 0 16px 36px -12px rgba(0,0,0,0.08), 0 4px 12px -2px rgba(0,0,0,0.04);
    border-color: var(--border-strong);
  }


  /* Icon square */
  .icon-square {
    width: 44px; height: 44px;
    border-radius: 12px;
    display: flex; align-items: center; justify-content: center;
    font-size: 18px;
  }


  /* Buttons */
  .btn-primary {
    background: var(--fg); color: white;
    padding: 10px 18px; border-radius: 12px;
    font-size: 14px; font-weight: 600;
    transition: all 0.2s ease;
    display: inline-flex; align-items: center; gap: 8px;
  }
  .btn-primary:hover {
    background: #1F1F23; transform: translateY(-1px);
    box-shadow: 0 8px 20px -6px rgba(0,0,0,0.2);
  }
  .btn-secondary {
    background: var(--card); color: var(--fg);
    border: 1px solid var(--border);
    padding: 10px 16px; border-radius: 12px;
    font-size: 14px; font-weight: 500;
    transition: all 0.2s ease;
    display: inline-flex; align-items: center; gap: 8px;
  }
  .btn-secondary:hover { background: var(--bg-grain); border-color: var(--border-strong); }
  .btn-ghost-sm {
    background: transparent; color: var(--fg-muted);
    border: 1px solid var(--border);
    padding: 6px 12px; border-radius: 8px;
    font-size: 12px; font-weight: 500;
    transition: all 0.2s ease;
    display: inline-flex; align-items: center; gap: 6px;
  }
  .btn-ghost-sm:hover { background: var(--bg-grain); color: var(--fg); border-color: var(--border-strong); }


  .icon-btn {
    width: 40px; height: 40px; border-radius: 12px;
    display: flex; align-items: center; justify-content: center;
    color: var(--fg-muted);
    transition: all 0.2s ease;
    position: relative; background: transparent;
    border: 1px solid transparent;
  }
  .icon-btn:hover { background: var(--bg-grain); color: var(--fg); border-color: var(--border); }


  /* Badges */
  .badge {
    display: inline-flex; align-items: center; gap: 4px;
    padding: 4px 10px; border-radius: 999px;
    font-size: 11px; font-weight: 600;
    letter-spacing: 0.02em;
  }
  .badge-success { background: var(--accent-soft); color: var(--accent); }
  .badge-warning { background: var(--warning-soft); color: var(--warning); }
  .badge-danger { background: var(--danger-soft); color: var(--danger); }
  .badge-info { background: var(--info-soft); color: var(--info); }


  /* Search */
  .search-input {
    background: var(--bg-grain);
    border: 1px solid var(--border);
    transition: all 0.2s ease;
  }
  .search-input:focus-within {
    background: white;
    border-color: var(--accent);
    box-shadow: 0 0 0 4px var(--accent-glow);
  }
  .search-input input {
    background: transparent; border: none; outline: none;
    width: 100%; font-size: 14px; color: var(--fg);
  }
  .search-input input::placeholder { color: var(--fg-subtle); }


  /* Table */
  .data-table { width: 100%; border-collapse: separate; border-spacing: 0; }
  .data-table thead th {
    text-align: left; padding: 14px 20px;
    font-size: 11px; font-weight: 600;
    color: var(--fg-subtle);
    text-transform: uppercase; letter-spacing: 0.06em;
    border-bottom: 1px solid var(--border);
    background: rgba(245, 244, 239, 0.5);
  }
  .data-table tbody td {
    padding: 14px 20px; font-size: 14px;
    border-bottom: 1px solid var(--border);
    vertical-align: middle;
  }
  .data-table tbody tr:last-child td { border-bottom: none; }
  .data-table tbody tr { transition: background 0.15s ease; }
  .data-table tbody tr:hover { background: var(--bg-grain); }


  /* Avatar */
  .avatar {
    width: 36px; height: 36px; border-radius: 50%;
    display: inline-flex; align-items: center; justify-content: center;
    font-size: 13px; font-weight: 600; color: white;
    flex-shrink: 0;
  }


  /* Range buttons */
  .range-btn {
    padding: 6px 12px; border-radius: 8px;
    font-size: 12px; font-weight: 600;
    color: var(--fg-muted);
    transition: all 0.2s ease; cursor: pointer;
    background: transparent; border: none;
  }
  .range-btn:hover { color: var(--fg); background: var(--bg-grain); }
  .range-btn.active { background: var(--fg); color: white; }


  /* Quick action */
  .quick-action {
    padding: 14px; border-radius: 14px;
    background: var(--bg-grain);
    border: 1px solid transparent;
    transition: all 0.2s ease;
    cursor: pointer;
    display: flex; flex-direction: column;
    gap: 10px;
  }
  .quick-action:hover {
    background: white; border-color: var(--border);
    transform: translateY(-1px);
    box-shadow: 0 4px 12px -2px rgba(0,0,0,0.04);
  }


  /* Timeline */
  .timeline-item { position: relative; padding-left: 24px; padding-bottom: 18px; }
  .timeline-item:last-child { padding-bottom: 0; }
  .timeline-item::before {
    content: ''; position: absolute;
    left: 5px; top: 14px; bottom: 0;
    width: 1px; background: var(--border);
  }
  .timeline-item:last-child::before { display: none; }
  .timeline-dot {
    position: absolute; left: 0; top: 4px;
    width: 11px; height: 11px; border-radius: 50%;
    background: var(--card); border: 2px solid var(--accent);
    z-index: 1;
  }


  /* Mobile sidebar */
  @media (max-width: 1023px) {
    .sidebar {
      position: fixed; top: 0; left: 0;
      height: 100vh; transform: translateX(-100%);
      transition: transform 0.3s ease; z-index: 60;
    }
    .sidebar.open { transform: translateX(0); }
    .sidebar-overlay {
      position: fixed; inset: 0;
      background: rgba(0,0,0,0.5);
      backdrop-filter: blur(4px);
      z-index: 55; opacity: 0; pointer-events: none;
      transition: opacity 0.3s ease;
    }
    .sidebar-overlay.open { opacity: 1; pointer-events: auto; }
  }


  /* Scrollbar */
  ::-webkit-scrollbar { width: 8px; height: 8px; }
  ::-webkit-scrollbar-track { background: transparent; }
  ::-webkit-scrollbar-thumb { background: rgba(0,0,0,0.12); border-radius: 4px; }
  ::-webkit-scrollbar-thumb:hover { background: rgba(0,0,0,0.2); }


  /* Animations */
  @keyframes fadeUp {
    from { opacity: 0; transform: translateY(12px); }
    to { opacity: 1; transform: translateY(0); }
  }
  .animate-fade-up { animation: fadeUp 0.6s cubic-bezier(0.16, 1, 0.3, 1) forwards; opacity: 0; }
  .delay-1 { animation-delay: 0.05s; }
  .delay-2 { animation-delay: 0.1s; }
  .delay-3 { animation-delay: 0.15s; }
  .delay-4 { animation-delay: 0.2s; }
  .delay-5 { animation-delay: 0.25s; }
  .delay-6 { animation-delay: 0.3s; }


  @keyframes pulse-soft {
    0%, 100% { transform: scale(1); opacity: 1; }
    50% { transform: scale(1.3); opacity: 0.6; }
  }
  .pulse-soft { animation: pulse-soft 2s ease-in-out infinite; }


  .sparkline-path {
    stroke-dasharray: 200; stroke-dashoffset: 200;
    animation: drawSpark 1.5s ease forwards 0.4s;
  }
  @keyframes drawSpark { to { stroke-dashoffset: 0; } }


  .live-dot {
    width: 8px; height: 8px; background: var(--accent);
    border-radius: 50%;
    box-shadow: 0 0 0 0 var(--accent);
    animation: livePulse 2s ease-out infinite;
  }
  @keyframes livePulse {
    0% { box-shadow: 0 0 0 0 rgba(15, 110, 74, 0.5); }
    100% { box-shadow: 0 0 0 10px rgba(15, 110, 74, 0); }
  }


  kbd {
    display: inline-flex; align-items: center;
    padding: 2px 6px; font-size: 11px;
    font-family: inherit; background: var(--bg-grain);
    border: 1px solid var(--border);
    border-radius: 4px; color: var(--fg-muted);
    font-weight: 500;
  }
  .sidebar kbd {
    background: rgba(255,255,255,0.05);
    border-color: rgba(255,255,255,0.08);
    color: var(--sidebar-fg);
  }


  .chart-container { position: relative; width: 100%; }
</style>
</head>
<body>


<!-- Sidebar -->
<aside class="sidebar lg:fixed lg:top-0 lg:left-0 lg:h-screen w-[260px] flex flex-col" id="sidebar">
  <!-- Brand -->
  <div class="px-6 pt-6 pb-5 flex items-center gap-3">
    <div class="w-9 h-9 rounded-xl flex items-center justify-center relative overflow-hidden" style="background: linear-gradient(135deg, #0F6E4A 0%, #15803D 60%, #B45309 140%);">
      <div class="w-3 h-3 bg-white/95 rounded-[3px] rotate-45"></div>
    </div>
    <div>
      <div class="text-white font-semibold text-[15px] tracking-tight leading-tight">Nimbus</div>
      <div class="text-[11px] text-zinc-500 leading-tight">Workspace</div>
    </div>
  </div>


  <!-- Search shortcut -->
  <div class="px-4 pb-4">
    <button class="w-full flex items-center gap-3 px-3 py-2.5 rounded-xl text-sm text-zinc-400 hover:text-zinc-200 hover:bg-zinc-900 transition-colors">
      <i class="fa-solid fa-magnifying-glass text-xs"></i>
      <span>Quick search</span>
      <kbd class="ml-auto">⌘K</kbd>
    </button>
  </div>


  <!-- Nav -->
  <nav class="flex-1 overflow-y-auto px-4 pb-4">
    <div class="mb-1">
      <div class="px-3 py-2 text-[11px] font-semibold uppercase tracking-wider text-zinc-600">Overview</div>
      <div class="nav-item active">
        <i class="fa-solid fa-grid-2"></i>
        <span>Dashboard</span>
      </div>
      <div class="nav-item">
        <i class="fa-solid fa-chart-line"></i>
        <span>Analytics</span>
      </div>
      <div class="nav-item">
        <i class="fa-solid fa-users"></i>
        <span>Customers</span>
        <span class="ml-auto text-[11px] px-1.5 py-0.5 rounded-md bg-zinc-800 text-zinc-400">24</span>
      </div>
      <div class="nav-item">
        <i class="fa-solid fa-bag-shopping"></i>
        <span>Orders</span>
        <span class="ml-auto text-[11px] px-1.5 py-0.5 rounded-md" style="background: rgba(15,110,74,0.15); color: #4ADE80;">8</span>
      </div>
    </div>


    <div class="mt-5 mb-1">
      <div class="px-3 py-2 text-[11px] font-semibold uppercase tracking-wider text-zinc-600">Management</div>
      <div class="nav-item">
        <i class="fa-solid fa-box"></i>
        <span>Products</span>
      </div>
      <div class="nav-item">
        <i class="fa-solid fa-file-invoice"></i>
        <span>Invoices</span>
      </div>
      <div class="nav-item">
        <i class="fa-solid fa-bullhorn"></i>
        <span>Marketing</span>
      </div>
      <div class="nav-item">
        <i class="fa-solid fa-folder-open"></i>
        <span>Reports</span>
      </div>
    </div>


    <div class="mt-5 mb-1">
      <div class="px-3 py-2 text-[11px] font-semibold uppercase tracking-wider text-zinc-600">System</div>
      <div class="nav-item">
        <i class="fa-solid fa-gear"></i>
        <span>Settings</span>
      </div>
      <div class="nav-item">
        <i class="fa-solid fa-circle-question"></i>
        <span>Help Center</span>
      </div>
    </div>
  </nav>


  <!-- Upgrade card -->
  <div class="mx-4 mb-4 p-4 rounded-2xl relative overflow-hidden glass-card-dark">
    <div class="absolute inset-0 opacity-40" style="background: radial-gradient(circle at 80% 20%, rgba(15,110,74,0.4), transparent 60%);"></div>
    <div class="relative z-10">
      <div class="flex items-center gap-2 mb-2">
        <i class="fa-solid fa-sparkles text-emerald-400 text-xs"></i>
        <div class="text-white text-sm font-semibold">Upgrade to Pro</div>
      </div>
      <div class="text-zinc-400 text-xs mb-3 leading-relaxed">Unlock advanced analytics, AI insights, and unlimited seats.</div>
      <button class="w-full py-2 rounded-lg bg-white text-black text-xs font-semibold hover:bg-zinc-100 transition-colors">
        Upgrade plan
      </button>
    </div>
  </div>


  <!-- User mini -->
  <div class="px-4 pb-4 border-t border-zinc-900 pt-4">
    <div class="flex items-center gap-3 px-2">
      <div class="avatar" style="background: linear-gradient(135deg, #0F6E4A, #BE185D);">AK</div>
      <div class="flex-1 min-w-0">
        <div class="text-white text-sm font-medium truncate">Alex Kennedy</div>
        <div class="text-zinc-500 text-xs truncate">[email protected]</div>
      </div>
      <button class="text-zinc-500 hover:text-white p-1.5 rounded-md hover:bg-zinc-900 transition-colors">
        <i class="fa-solid fa-ellipsis-vertical text-sm"></i>
      </button>
    </div>
  </div>
</aside>


<!-- Overlay -->
<div class="sidebar-overlay lg:hidden" id="overlay"></div>


<!-- Main -->
<div class="lg:ml-[260px] min-h-screen relative z-10">
  <!-- Header -->
  <header class="glass-header sticky top-0 z-40">
    <div class="flex items-center gap-3 px-4 sm:px-6 lg:px-8 h-16">
      <button class="icon-btn lg:hidden" id="menuToggle" aria-label="Menu">
        <i class="fa-solid fa-bars"></i>
      </button>


      <div class="hidden sm:block">
        <h1 class="text-[15px] font-semibold tracking-tight">Dashboard</h1>
      </div>


      <!-- Search -->
      <div class="search-input hidden md:flex items-center gap-2 px-3 py-2 rounded-xl flex-1 max-w-md ml-4">
        <i class="fa-solid fa-magnifying-glass text-sm text-zinc-400"></i>
        <input type="text" placeholder="Search orders, customers, reports...">
        <kbd>⌘K</kbd>
      </div>


      <!-- Right actions -->
      <div class="ml-auto flex items-center gap-1">
        <button class="icon-btn md:hidden" aria-label="Search">
          <i class="fa-solid fa-magnifying-glass text-sm"></i>
        </button>
        <button class="icon-btn" aria-label="Notifications">
          <i class="fa-regular fa-bell"></i>
          <span class="absolute top-2 right-2 w-2 h-2 bg-rose-500 rounded-full pulse-soft"></span>
        </button>
        <button class="icon-btn hidden sm:flex" aria-label="Messages">
          <i class="fa-regular fa-envelope"></i>
        </button>
        <button class="icon-btn hidden sm:flex" aria-label="Settings">
          <i class="fa-solid fa-gear"></i>
        </button>
        <div class="w-px h-6 bg-zinc-200 mx-2 hidden sm:block"></div>
        <button class="flex items-center gap-2 pl-1 pr-2 py-1 rounded-xl hover:bg-zinc-100 transition-colors">
          <div class="avatar" style="background: linear-gradient(135deg, #0F6E4A, #BE185D); width: 32px; height: 32px; font-size: 12px;">AK</div>
          <div class="hidden lg:block text-left">
            <div class="text-[13px] font-semibold leading-tight">Alex Kennedy</div>
            <div class="text-[11px] text-zinc-500 leading-tight">Administrator</div>
          </div>
          <i class="fa-solid fa-chevron-down text-[10px] text-zinc-400 hidden lg:block"></i>
        </button>
      </div>
    </div>
  </header>


  <!-- Main content -->
  <main class="px-4 sm:px-6 lg:px-8 py-6 lg:py-8 space-y-6">


    <!-- Welcome header -->
    <section class="flex flex-col sm:flex-row sm:items-end justify-between gap-4 animate-fade-up">
      <div>
        <div class="flex items-center gap-2 mb-2">
          <span class="live-dot"></span>
          <span class="text-[11px] font-semibold text-zinc-500 uppercase tracking-wider">Live · synced 2m ago</span>
        </div>
        <h2 class="font-display text-3xl sm:text-[42px] leading-tight text-zinc-900">Good morning, Alex.</h2>
        <p class="text-sm text-zinc-500 mt-1">Here's the pulse of your business today.</p>
      </div>
      <div class="flex items-center gap-2">
        <button class="btn-secondary">
          <i class="fa-solid fa-arrow-down-to-line text-xs"></i>
          <span>Export</span>
        </button>
        <button class="btn-primary">
          <i class="fa-solid fa-plus text-xs"></i>
          <span>New Report</span>
        </button>
      </div>
    </section>


    <!-- Stat cards -->
    <section class="grid grid-cols-1 sm:grid-cols-2 xl:grid-cols-4 gap-4 lg:gap-5">


      <div class="card card-hover p-5 animate-fade-up delay-1">
        <div class="flex items-start justify-between mb-4">
          <div class="icon-square" style="background: var(--accent-soft); color: var(--accent);">
            <i class="fa-solid fa-users"></i>
          </div>
          <span class="badge badge-success">
            <i class="fa-solid fa-arrow-up text-[8px]"></i>12.5%
          </span>
        </div>
        <div class="text-[13px] font-medium text-zinc-500 mb-1">Total Users</div>
        <div class="flex items-end justify-between gap-3">
          <div class="font-display text-4xl text-zinc-900">24,587</div>
          <svg width="64" height="34" viewBox="0 0 64 34" class="flex-shrink-0">
            <path class="sparkline-path" d="M2,26 L12,22 L22,24 L32,16 L42,18 L52,8 L62,4"
                  stroke="var(--accent)" stroke-width="2" fill="none" stroke-linecap="round" stroke-linejoin="round"/>
          </svg>
        </div>
      </div>


      <div class="card card-hover p-5 animate-fade-up delay-2">
        <div class="flex items-start justify-between mb-4">
          <div class="icon-square" style="background: var(--warning-soft); color: var(--warning);">
            <i class="fa-solid fa-dollar-sign"></i>
          </div>
          <span class="badge badge-success">
            <i class="fa-solid fa-arrow-up text-[8px]"></i>8.2%
          </span>
        </div>
        <div class="text-[13px] font-medium text-zinc-500 mb-1">Revenue</div>
        <div class="flex items-end justify-between gap-3">
          <div class="font-display text-4xl text-zinc-900">$84,254</div>
          <svg width="64" height="34" viewBox="0 0 64 34" class="flex-shrink-0">
            <path class="sparkline-path" d="M2,22 L12,24 L22,18 L32,20 L42,12 L52,14 L62,6"
                  stroke="var(--warning)" stroke-width="2" fill="none" stroke-linecap="round" stroke-linejoin="round"/>
          </svg>
        </div>
      </div>


      <div class="card card-hover p-5 animate-fade-up delay-3">
        <div class="flex items-start justify-between mb-4">
          <div class="icon-square" style="background: var(--info-soft); color: var(--info);">
            <i class="fa-solid fa-bag-shopping"></i>
          </div>
          <span class="badge badge-danger">
            <i class="fa-solid fa-arrow-down text-[8px]"></i>2.4%
          </span>
        </div>
        <div class="text-[13px] font-medium text-zinc-500 mb-1">Orders</div>
        <div class="flex items-end justify-between gap-3">
          <div class="font-display text-4xl text-zinc-900">1,847</div>
          <svg width="64" height="34" viewBox="0 0 64 34" class="flex-shrink-0">
            <path class="sparkline-path" d="M2,12 L12,16 L22,14 L32,18 L42,20 L52,16 L62,22"
                  stroke="var(--info)" stroke-width="2" fill="none" stroke-linecap="round" stroke-linejoin="round"/>
          </svg>
        </div>
      </div>


      <div class="card card-hover p-5 animate-fade-up delay-4">
        <div class="flex items-start justify-between mb-4">
          <div class="icon-square relative" style="background: var(--rose-soft); color: var(--rose);">
            <i class="fa-solid fa-bolt"></i>
            <span class="absolute -top-1 -right-1 w-2.5 h-2.5 bg-rose-500 rounded-full pulse-soft border-2 border-white"></span>
          </div>
          <span class="badge badge-success">
            <i class="fa-solid fa-arrow-up text-[8px]"></i>5.1%
          </span>
        </div>
        <div class="text-[13px] font-medium text-zinc-500 mb-1">Active Now</div>
        <div class="flex items-end justify-between gap-3">
          <div class="font-display text-4xl text-zinc-900">98.2<span class="text-2xl text-zinc-400">%</span></div>
          <svg width="64" height="34" viewBox="0 0 64 34" class="flex-shrink-0">
            <path class="sparkline-path" d="M2,20 L12,18 L22,20 L32,12 L42,16 L52,10 L62,8"
                  stroke="var(--rose)" stroke-width="2" fill="none" stroke-linecap="round" stroke-linejoin="round"/>
          </svg>
        </div>
      </div>
    </section>


    <!-- Charts row -->
    <section class="grid grid-cols-1 lg:grid-cols-3 gap-4 lg:gap-5">
      <!-- Revenue chart -->
      <div class="card lg:col-span-2 p-5 lg:p-6 animate-fade-up delay-3">
        <div class="flex flex-col sm:flex-row sm:items-start justify-between gap-4 mb-6">
          <div>
            <h3 class="text-base font-semibold tracking-tight">Revenue Analytics</h3>
            <p class="text-xs text-zinc-500 mt-1">Compared to previous period</p>
          </div>
          <div class="flex items-center gap-1 p-1 bg-zinc-100/60 rounded-lg">
            <button class="range-btn" data-range="7D">7D</button>
            <button class="range-btn active" data-range="30D">30D</button>
            <button class="range-btn" data-range="90D">90D</button>
            <button class="range-btn" data-range="1Y">1Y</button>
          </div>
        </div>


        <div class="flex flex-wrap items-end gap-x-8 gap-y-3 mb-6">
          <div>
            <div class="text-[11px] text-zinc-500 uppercase tracking-wider mb-1 font-semibold">Current</div>
            <div class="font-display text-3xl text-zinc-900">$284,540</div>
          </div>
          <div class="flex items-center gap-4">
            <div class="flex items-center gap-1.5 text-xs">
              <span class="inline-block w-2 h-2 rounded-full bg-zinc-900"></span>
              <span class="text-zinc-600">This period</span>
            </div>
            <div class="flex items-center gap-1.5 text-xs">
              <span class="inline-block w-2 h-2 rounded-full bg-zinc-300"></span>
              <span class="text-zinc-600">Previous</span>
            </div>
          </div>
        </div>


        <div class="chart-container" style="height: 260px;">
          <canvas id="revenueChart"></canvas>
        </div>
      </div>


      <!-- Traffic sources -->
      <div class="card p-5 lg:p-6 animate-fade-up delay-4">
        <div class="flex items-start justify-between mb-4">
          <div>
            <h3 class="text-base font-semibold tracking-tight">Traffic Sources</h3>
            <p class="text-xs text-zinc-500 mt-1">By channel</p>
          </div>
          <button class="icon-btn -mr-2 -mt-1">
            <i class="fa-solid fa-ellipsis text-xs"></i>
          </button>
        </div>


        <div class="chart-container relative mb-5" style="height: 180px;">
          <canvas id="trafficChart"></canvas>
          <div class="absolute inset-0 flex flex-col items-center justify-center pointer-events-none">
            <div class="font-display text-3xl text-zinc-900">48.2K</div>
            <div class="text-[11px] text-zinc-500 mt-0.5">Total visits</div>
          </div>
        </div>


        <div class="space-y-2.5">
          <div class="flex items-center gap-3 text-sm">
            <span class="w-2.5 h-2.5 rounded-full" style="background: #0F6E4A;"></span>
            <span class="flex-1 text-zinc-600">Organic Search</span>
            <span class="font-semibold">42%</span>
          </div>
          <div class="flex items-center gap-3 text-sm">
            <span class="w-2.5 h-2.5 rounded-full" style="background: #B45309;"></span>
            <span class="flex-1 text-zinc-600">Direct</span>
            <span class="font-semibold">28%</span>
          </div>
          <div class="flex items-center gap-3 text-sm">
            <span class="w-2.5 h-2.5 rounded-full" style="background: #BE185D;"></span>
            <span class="flex-1 text-zinc-600">Social</span>
            <span class="font-semibold">18%</span>
          </div>
          <div class="flex items-center gap-3 text-sm">
            <span class="w-2.5 h-2.5 rounded-full" style="background: #0E7490;"></span>
            <span class="flex-1 text-zinc-600">Referral</span>
            <span class="font-semibold">12%</span>
          </div>
        </div>
      </div>
    </section>


    <!-- Transactions + side panels -->
    <section class="grid grid-cols-1 lg:grid-cols-3 gap-4 lg:gap-5">


      <!-- Transactions table -->
      <div class="card lg:col-span-2 animate-fade-up delay-4 overflow-hidden">
        <div class="flex items-center justify-between p-5 lg:p-6 pb-4">
          <div>
            <h3 class="text-base font-semibold tracking-tight">Recent Transactions</h3>
            <p class="text-xs text-zinc-500 mt-1">Latest payments from customers</p>
          </div>
          <button class="btn-ghost-sm">
            View all
            <i class="fa-solid fa-arrow-right text-[10px]"></i>
          </button>
        </div>


        <div class="overflow-x-auto">
          <table class="data-table">
            <thead>
              <tr>
                <th>Customer</th>
                <th>Order</th>
                <th>Date</th>
                <th>Amount</th>
                <th>Status</th>
              </tr>
            </thead>
            <tbody>
              <tr>
                <td>
                  <div class="flex items-center gap-3">
                    <div class="avatar" style="background: linear-gradient(135deg, #0F6E4A, #15803D);">SC</div>
                    <div>
                      <div class="font-medium text-sm text-zinc-900">Sarah Chen</div>
                      <div class="text-xs text-zinc-500">[email protected]</div>
                    </div>
                  </div>
                </td>
                <td><span class="text-sm font-mono text-zinc-600">#ORD-7821</span></td>
                <td><span class="text-sm text-zinc-600">Oct 24, 2024</span></td>
                <td><span class="text-sm font-semibold text-zinc-900">$1,249.00</span></td>
                <td><span class="badge badge-success">Paid</span></td>
              </tr>
              <tr>
                <td>
                  <div class="flex items-center gap-3">
                    <div class="avatar" style="background: linear-gradient(135deg, #B45309, #D97706);">MT</div>
                    <div>
                      <div class="font-medium text-sm text-zinc-900">Marcus Turner</div>
                      <div class="text-xs text-zinc-500">[email protected]</div>
                    </div>
                  </div>
                </td>
                <td><span class="text-sm font-mono text-zinc-600">#ORD-7820</span></td>
                <td><span class="text-sm text-zinc-600">Oct 24, 2024</span></td>
                <td><span class="text-sm font-semibold text-zinc-900">$849.50</span></td>
                <td><span class="badge badge-warning">Pending</span></td>
              </tr>
              <tr>
                <td>
                  <div class="flex items-center gap-3">
                    <div class="avatar" style="background: linear-gradient(135deg, #BE185D, #DB2777);">EP</div>
                    <div>
                      <div class="font-medium text-sm text-zinc-900">Elena Petrov</div>
                      <div class="text-xs text-zinc-500">[email protected]</div>
                    </div>
                  </div>
                </td>
                <td><span class="text-sm font-mono text-zinc-600">#ORD-7819</span></td>
                <td><span class="text-sm text-zinc-600">Oct 23, 2024</span></td>
                <td><span class="text-sm font-semibold text-zinc-900">$2,450.00</span></td>
                <td><span class="badge badge-success">Paid</span></td>
              </tr>
              <tr>
                <td>
                  <div class="flex items-center gap-3">
                    <div class="avatar" style="background: linear-gradient(135deg, #0E7490, #0891B2);">JW</div>
                    <div>
                      <div class="font-medium text-sm text-zinc-900">James Wright</div>
                      <div class="text-xs text-zinc-500">[email protected]</div>
                    </div>
                  </div>
                </td>
                <td><span class="text-sm font-mono text-zinc-600">#ORD-7818</span></td>
                <td><span class="text-sm text-zinc-600">Oct 23, 2024</span></td>
                <td><span class="text-sm font-semibold text-zinc-900">$320.00</span></td>
                <td><span class="badge badge-danger">Failed</span></td>
              </tr>
              <tr>
                <td>
                  <div class="flex items-center gap-3">
                    <div class="avatar" style="background: linear-gradient(135deg, #15803D, #16A34A);">AK</div>
                    <div>
                      <div class="font-medium text-sm text-zinc-900">Aiko Kuroda</div>
                      <div class="text-xs text-zinc-500">[email protected]</div>
                    </div>
                  </div>
                </td>
                <td><span class="text-sm font-mono text-zinc-600">#ORD-7817</span></td>
                <td><span class="text-sm text-zinc-600">Oct 22, 2024</span></td>
                <td><span class="text-sm font-semibold text-zinc-900">$1,899.00</span></td>
                <td><span class="badge badge-success">Paid</span></td>
              </tr>
              <tr>
                <td>
                  <div class="flex items-center gap-3">
                    <div class="avatar" style="background: linear-gradient(135deg, #B45309, #BE185D);">DM</div>
                    <div>
                      <div class="font-medium text-sm text-zinc-900">David Miller</div>
                      <div class="text-xs text-zinc-500">[email protected]</div>
                    </div>
                  </div>
                </td>
                <td><span class="text-sm font-mono text-zinc-600">#ORD-7816</span></td>
                <td><span class="text-sm text-zinc-600">Oct 22, 2024</span></td>
                <td><span class="text-sm font-semibold text-zinc-900">$549.75</span></td>
                <td><span class="badge badge-warning">Pending</span></td>
              </tr>
            </tbody>
          </table>
        </div>
      </div>


      <!-- Right column: Quick actions + Activity -->
      <div class="space-y-4 lg:space-y-5">
        <!-- Quick actions -->
        <div class="card p-5 lg:p-6 animate-fade-up delay-5">
          <h3 class="text-base font-semibold tracking-tight mb-4">Quick Actions</h3>
          <div class="grid grid-cols-2 gap-2.5">
            <div class="quick-action">
              <div class="icon-square" style="width: 36px; height: 36px; font-size: 14px; background: var(--accent-soft); color: var(--accent);">
                <i class="fa-solid fa-user-plus"></i>
              </div>
              <div>
                <div class="text-[13px] font-semibold text-zinc-900">Add User</div>
                <div class="text-[11px] text-zinc-500">Invite member</div>
              </div>
            </div>
            <div class="quick-action">
              <div class="icon-square" style="width: 36px; height: 36px; font-size: 14px; background: var(--warning-soft); color: var(--warning);">
                <i class="fa-solid fa-file-invoice"></i>
              </div>
              <div>
                <div class="text-[13px] font-semibold text-zinc-900">Invoice</div>
                <div class="text-[11px] text-zinc-500">Bill customer</div>
              </div>
            </div>
            <div class="quick-action">
              <div class="icon-square" style="width: 36px; height: 36px; font-size: 14px; background: var(--info-soft); color: var(--info);">
                <i class="fa-solid fa-arrow-up-from-bracket"></i>
              </div>
              <div>
                <div class="text-[13px] font-semibold text-zinc-900">Export</div>
                <div class="text-[11px] text-zinc-500">Download data</div>
              </div>
            </div>
            <div class="quick-action">
              <div class="icon-square" style="width: 36px; height: 36px; font-size: 14px; background: var(--rose-soft); color: var(--rose);">
                <i class="fa-solid fa-chart-pie"></i>
              </div>
              <div>
                <div class="text-[13px] font-semibold text-zinc-900">Report</div>
                <div class="text-[11px] text-zinc-500">Generate insights</div>
              </div>
            </div>
          </div>
        </div>


        <!-- Activity feed -->
        <div class="card p-5 lg:p-6 animate-fade-up delay-6">
          <div class="flex items-center justify-between mb-4">
            <h3 class="text-base font-semibold tracking-tight">Activity</h3>
            <button class="text-xs text-zinc-500 hover:text-zinc-900 font-medium transition-colors">View all</button>
          </div>


          <div>
            <div class="timeline-item">
              <div class="timeline-dot"></div>
              <div class="text-[11px] text-zinc-500 mb-1 font-medium uppercase tracking-wider">2m ago</div>
              <div class="text-sm leading-relaxed">
                <span class="font-semibold text-zinc-900">Sarah Chen</span>
                <span class="text-zinc-600">closed deal with</span>
                <span class="font-semibold text-zinc-900">Acme Corp</span>
              </div>
              <div class="text-xs text-emerald-700 font-medium mt-1">+ $4,250 revenue</div>
            </div>
            <div class="timeline-item">
              <div class="timeline-dot" style="border-color: var(--warning);"></div>
              <div class="text-[11px] text-zinc-500 mb-1 font-medium uppercase tracking-wider">8m ago</div>
              <div class="text-sm leading-relaxed">
                <span class="text-zinc-600">New user registered:</span>
                <span class="font-semibold text-zinc-900">Marcus Turner</span>
              </div>
            </div>
            <div class="timeline-item">
              <div class="timeline-dot" style="border-color: var(--info);"></div>
              <div class="text-[11px] text-zinc-500 mb-1 font-medium uppercase tracking-wider">23m ago</div>
              <div class="text-sm leading-relaxed">
                <span class="text-zinc-600">Payment received from</span>
                <span class="font-semibold text-zinc-900">Studio West</span>
              </div>
              <div class="text-xs text-zinc-500 mt-1">$2,450.00 · Wire transfer</div>
            </div>
            <div class="timeline-item">
              <div class="timeline-dot" style="border-color: var(--rose);"></div>
              <div class="text-[11px] text-zinc-500 mb-1 font-medium uppercase tracking-wider">1h ago</div>
              <div class="text-sm leading-relaxed">
                <span class="font-semibold text-zinc-900">Order #4592</span>
                <span class="text-zinc-600">marked as shipped</span>
              </div>
            </div>
            <div class="timeline-item">
              <div class="timeline-dot" style="border-color: var(--fg-subtle);"></div>
              <div class="text-[11px] text-zinc-500 mb-1 font-medium uppercase tracking-wider">3h ago</div>
              <div class="text-sm leading-relaxed">
                <span class="text-zinc-600">Refund processed for</span>
                <span class="font-semibold text-zinc-900">Order #4588</span>
              </div>
              <div class="text-xs text-zinc-500 mt-1">$129.99 returned</div>
            </div>
          </div>
        </div>
      </div>
    </section>


  </main>
</div>


<script>
  // Mobile sidebar
  const sidebar = document.getElementById('sidebar');
  const overlay = document.getElementById('overlay');
  const menuToggle = document.getElementById('menuToggle');


  function toggleSidebar() {
    sidebar.classList.toggle('open');
    overlay.classList.toggle('open');
  }
  menuToggle?.addEventListener('click', toggleSidebar);
  overlay?.addEventListener('click', toggleSidebar);


  // Chart.js defaults
  Chart.defaults.font.family = "'Plus Jakarta Sans', sans-serif";
  Chart.defaults.font.size = 12;
  Chart.defaults.color = '#9D9DA3';


  // Revenue chart
  const revenueCtx = document.getElementById('revenueChart').getContext('2d');
  const gradient = revenueCtx.createLinearGradient(0, 0, 0, 260);
  gradient.addColorStop(0, 'rgba(15, 110, 74, 0.28)');
  gradient.addColorStop(0.6, 'rgba(15, 110, 74, 0.06)');
  gradient.addColorStop(1, 'rgba(15, 110, 74, 0)');


  const revenueChart = new Chart(revenueCtx, {
    type: 'line',
    data: {
      labels: ['Oct 1', 'Oct 4', 'Oct 7', 'Oct 10', 'Oct 13', 'Oct 16', 'Oct 19', 'Oct 22', 'Oct 25'],
      datasets: [
        {
          label: 'This period',
          data: [32000, 38000, 35000, 42000, 45000, 51000, 48000, 56000, 62000],
          borderColor: '#0F6E4A',
          backgroundColor: gradient,
          borderWidth: 2.5,
          fill: true,
          tension: 0.4,
          pointRadius: 0,
          pointHoverRadius: 6,
          pointHoverBackgroundColor: '#0F6E4A',
          pointHoverBorderColor: '#FFFFFF',
          pointHoverBorderWidth: 2.5
        },
        {
          label: 'Previous period',
          data: [28000, 32000, 30000, 36000, 40000, 42000, 39000, 44000, 48000],
          borderColor: '#D9D7CE',
          backgroundColor: 'transparent',
          borderWidth: 1.5,
          borderDash: [5, 4],
          fill: false,
          tension: 0.4,
          pointRadius: 0,
          pointHoverRadius: 5,
          pointHoverBackgroundColor: '#D9D7CE'
        }
      ]
    },
    options: {
      responsive: true,
      maintainAspectRatio: false,
      interaction: { intersect: false, mode: 'index' },
      animation: { duration: 1200, easing: 'easeOutQuart' },
      plugins: {
        legend: { display: false },
        tooltip: {
          backgroundColor: '#0A0A0B',
          titleColor: '#FFFFFF',
          bodyColor: '#A1A1A6',
          padding: 12,
          cornerRadius: 10,
          titleFont: { weight: '600', size: 12 },
          bodyFont: { size: 12 },
          displayColors: true,
          boxPadding: 4,
          usePointStyle: true,
          callbacks: {
            label: (ctx) => '  ' + ctx.dataset.label + ': $' + ctx.parsed.y.toLocaleString()
          }
        }
      },
      scales: {
        x: {
          grid: { display: false },
          border: { display: false },
          ticks: { font: { size: 11 }, padding: 8 }
        },
        y: {
          grid: { color: 'rgba(232, 230, 222, 0.7)', drawTicks: false },
          border: { display: false },
          ticks: {
            font: { size: 11 },
            padding: 12,
            callback: (v) => '$' + (v / 1000) + 'k'
          }
        }
      }
    }
  });


  // Traffic donut
  const trafficCtx = document.getElementById('trafficChart').getContext('2d');
  new Chart(trafficCtx, {
    type: 'doughnut',
    data: {
      labels: ['Organic Search', 'Direct', 'Social', 'Referral'],
      datasets: [{
        data: [42, 28, 18, 12],
        backgroundColor: ['#0F6E4A', '#B45309', '#BE185D', '#0E7490'],
        borderWidth: 0,
        spacing: 4,
        hoverOffset: 8,
        borderRadius: 6
      }]
    },
    options: {
      responsive: true,
      maintainAspectRatio: false,
      cutout: '72%',
      animation: { animateRotate: true, duration: 1200, easing: 'easeOutQuart' },
      plugins: {
        legend: { display: false },
        tooltip: {
          backgroundColor: '#0A0A0B',
          titleColor: '#FFFFFF',
          bodyColor: '#A1A1A6',
          padding: 12,
          cornerRadius: 8,
          displayColors: false,
          callbacks: {
            label: (ctx) => ctx.parsed + '% of total visits'
          }
        }
      }
    }
  });


  // Range buttons
  const rangeData = {
    '7D': {
      current: [8000, 9500, 8800, 11000, 12500, 10500, 14000],
      prev: [7000, 8200, 7800, 9500, 10500, 8800, 12000],
      labels: ['Mon', 'Tue', 'Wed', 'Thu', 'Fri', 'Sat', 'Sun']
    },
    '30D': {
      current: [32000, 38000, 35000, 42000, 45000, 51000, 48000, 56000, 62000],
      prev: [28000, 32000, 30000, 36000, 40000, 42000, 39000, 44000, 48000],
      labels: ['Oct 1', 'Oct 4', 'Oct 7', 'Oct 10', 'Oct 13', 'Oct 16', 'Oct 19', 'Oct 22', 'Oct 25']
    },
    '90D': {
      current: [45000, 52000, 48000, 58000, 62000, 68000, 72000, 78000, 85000, 82000, 91000, 98000],
      prev: [38000, 42000, 40000, 48000, 52000, 56000, 60000, 65000, 72000, 68000, 75000, 82000],
      labels: ['W1', 'W2', 'W3', 'W4', 'W5', 'W6', 'W7', 'W8', 'W9', 'W10', 'W11', 'W12']
    },
    '1Y': {
      current: [120000, 135000, 148000, 162000, 178000, 195000, 215000, 232000, 248000, 265000, 280000, 295000],
      prev: [95000, 102000, 115000, 125000, 138000, 152000, 168000, 182000, 195000, 210000, 222000, 235000],
      labels: ['Jan', 'Feb', 'Mar', 'Apr', 'May', 'Jun', 'Jul', 'Aug', 'Sep', 'Oct', 'Nov', 'Dec']
    }
  };


  document.querySelectorAll('.range-btn').forEach(btn => {
    btn.addEventListener('click', () => {
      document.querySelectorAll('.range-btn').forEach(b => b.classList.remove('active'));
      btn.classList.add('active');
      const d = rangeData[btn.dataset.range];
      revenueChart.data.labels = d.labels;
      revenueChart.data.datasets[0].data = d.current;
      revenueChart.data.datasets[1].data = d.prev;
      revenueChart.update();
    });
  });


  // Nav clicks
  document.querySelectorAll('.nav-item').forEach(item => {
    item.addEventListener('click', () => {
      document.querySelectorAll('.nav-item').forEach(i => i.classList.remove('active'));
      item.classList.add('active');
      if (window.innerWidth < 1024) toggleSidebar();
    });
  });


  // Live counter for "Active Now" — subtle real-time feel
  const activeNow = document.querySelector('.card .font-display.text-4xl');
  // (intentionally not animating the displayed value to keep readability)
</script>


</body>
</html>

Conclusion

A modern SaaS admin panel should be more than a collection of cards and charts.

The strongest dashboards combine visual identity, information hierarchy, responsive architecture, meaningful interaction, and restrained animation.

A warm editorial background, emerald accent system, contrasting typography, dark navigation, carefully selected glass effects, interactive analytics, transaction tables, activity feeds, and responsive mobile navigation can transform a conventional dashboard into a distinctive product experience.

The key is balance.

Make it visually memorable, but keep the information clear. Make it interactive, but avoid unnecessary motion. Make it sophisticated, but never sacrifice usability.

That balance is what turns an admin panel from a generic template into a polished SaaS product interface.


FAQ SEO

What is a SaaS admin panel?

A SaaS admin panel is a web-based interface used to manage application data, users, analytics, settings, transactions, and other operational functions.

What makes a SaaS dashboard look premium?

Strong visual hierarchy, consistent typography, refined spacing, purposeful color, responsive layouts, subtle animation, and meaningful interactions can create a premium dashboard experience.

How should an admin dashboard be designed for mobile?

Navigation should adapt to smaller screens, content should stack naturally, tables should support horizontal scrolling, and frequently used controls should remain easy to access.

Why are KPI cards important in admin dashboards?

KPI cards provide an immediate overview of important metrics such as users, revenue, orders, and activity, allowing administrators to understand the current state of a system quickly.

Should admin dashboards use animations?

Yes, when animation communicates feedback, state changes, trends, or interaction. Excessive animation can reduce usability.

What technologies can be used to build a modern SaaS dashboard?

Modern dashboards can be built using technologies such as HTML, CSS, JavaScript, Tailwind CSS, Chart.js, and backend frameworks or APIs appropriate to the application.


Advertisement

Related Articles