<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Ultra Modern Top Bar - Forest Mystique</title>
    <link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/6.0.0-beta3/css/all.min.css">
    <style>
:root {
    --deep-blue: #0A3D62;
    --aqua-green: #3EC6A8;
    --sky-blue: #74B9FF;
    --teal: #1ABC9C;
    --soft-mint: #C9F7F5;
    --bg-dark: #05121A;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Inter', 'Segoe UI', sans-serif;
    background: #0a0e27;
}

/* ============================
   ULTRA MODERN TOPBAR (BLUE–AQUA THEME)
============================ */
.topbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 20px;
    background: rgba(5, 18, 26, 0.95);
    backdrop-filter: blur(20px);
    color: white;
    position: fixed;
    top: 0;
    left: 280px;
    width: calc(100% - 280px);
    z-index: 998;
    border-bottom: 1px solid rgba(116, 185, 255, 0.25);
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.3);
    transition: all 0.3s ease;
}

/* Animated gradient border - BLUE/AQUA */
.topbar::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 2px;
    background: linear-gradient(90deg,
        var(--sky-blue),
        var(--aqua-green),
        var(--teal),
        var(--sky-blue)
    );
    background-size: 200% 100%;
    animation: gradientSlide 4s linear infinite;
}

@keyframes gradientSlide {
    0% { background-position: 0% 0%; }
    100% { background-position: 200% 0%; }
}

/* ============================
   LEFT SECTION
============================ */
.topbar-left {
    display: flex;
    align-items: center;
    gap: 20px;
}

.menu-toggle {
    display: none;
    width: 44px;
    height: 44px;
    border-radius: 12px;
    background: rgba(116,185,255,0.15);
    border: 1px solid rgba(116,185,255,0.35);
    color: white;
    font-size: 20px;
    cursor: pointer;
    transition: all 0.3s ease;
    align-items: center;
    justify-content: center;
}

.menu-toggle:hover {
    background: rgba(116,185,255,0.25);
    transform: scale(1.05);
}

.page-title {
    display: flex;
    align-items: center;
    gap: 12px;
}

.page-icon {
    width: 45px;
    height: 45px;
    background: linear-gradient(135deg, var(--sky-blue), var(--aqua-green));
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    box-shadow: 0 6px 15px rgba(74, 185, 255, 0.4);
}

.page-info h1 {
    font-size: 20px;
    font-weight: 700;
    background: linear-gradient(135deg, #ffffff 0%, var(--soft-mint));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.page-breadcrumb {
    font-size: 12px;
    color: #9fb8d4;
    display: flex;
    align-items: center;
    gap: 6px;
}

.page-breadcrumb i {
    font-size: 10px;
}

/* ============================
   RIGHT SIDE BUTTONS
============================ */
.topbar-right {
    display: flex;
    align-items: center;
    gap: 14px;
}

/* Base Icon Button */
.topbar-right .icon-btn,
.topbar-right .logout-btn {
    position: relative;
    width: 46px;
    height: 46px;
    border-radius: 14px;
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.08);
    backdrop-filter: blur(14px) saturate(160%);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    overflow: hidden;
    transition: all 0.35s ease;
    box-shadow:
        0 4px 10px rgba(0, 0, 0, 0.3),
        0 0 0 1px rgba(255, 255, 255, 0.05) inset;
}

.topbar-right .icon-btn i,
.topbar-right .logout-btn i {
    font-size: 18px;
    color: #d3e8f9;
    transition: 0.35s ease;
}

/* Aqua Glow Hover */
.topbar-right .icon-btn:hover,
.topbar-right .logout-btn:hover {
    transform: translateY(-3px) scale(1.05);
    border-color: rgba(116,185,255,0.5);
    box-shadow:
        0 8px 25px rgba(74, 185, 255, 0.45),
        0 0 18px rgba(74, 185, 255, 0.45);
}

.topbar-right .icon-btn:hover i {
    color: var(--sky-blue);
    text-shadow: 0 0 10px var(--sky-blue);
}

/* Ripple effect */
.topbar-right .icon-btn::before,
.topbar-right .logout-btn::before {
    content: "";
    position: absolute;
    width: 140%;
    height: 140%;
    background: linear-gradient(135deg, rgba(116,185,255,0.25), transparent);
    top: 50%; left: 50%;
    border-radius: 50%;
    transform: translate(-50%, -50%) scale(0);
    transition: transform 0.45s ease-out;
}

.topbar-right .icon-btn:hover::before,
.topbar-right .logout-btn:hover::before {
    transform: translate(-50%, -50%) scale(1);
}

/* Notification Badges */
.topbar-right .badge {
    position: absolute;
    top: -6px;
    right: -6px;
    background: linear-gradient(135deg, var(--sky-blue), var(--aqua-green));
    color: white;
    font-size: 10px;
    font-weight: 700;
    padding: 3px 7px;
    border-radius: 10px;
    border: 2px solid rgba(5, 15, 32, 0.9);
    box-shadow:
        0 2px 8px rgba(74, 185, 255, 0.6),
        0 0 6px rgba(62, 198, 168, 0.8);
    animation: badgePulse 1.8s infinite;
}

@keyframes badgePulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.12); }
}

/* Divider */
.divider {
    width: 1px;
    height: 30px;
    background: linear-gradient(to bottom,
        transparent,
        rgba(255, 255, 255, 0.25),
        transparent
    );
    margin: 0 5px;
}

/* Logout Neon Red Hover */
.logout-btn:hover i {
    color: #ff6b6b !important;
    text-shadow: 0 0 10px #ff6b6b;
}

.logout-btn:hover {
    border-color: rgba(255, 107, 107, 0.5);
    box-shadow:
        0 8px 25px rgba(255, 107, 107, 0.35),
        0 0 18px rgba(255, 107, 107, 0.4);
}

/* ============================
     RESPONSIVE DESIGN
============================ */
@media (max-width: 1024px) {
    .page-breadcrumb { display: none; }
}

@media (max-width: 768px) {
    .topbar {
        left: 0;
        width: 100%;
    }

    .menu-toggle { display: flex; }

    .page-title { display: none; }

    .divider { display: none; }
}

@media (max-width: 480px) {
    .icon-btn {
        width: 38px;
        height: 38px;
    }
    .icon-btn i { font-size: 15px; }
}

@media (max-width: 360px) {
    .icon-btn {
        width: 36px;
        height: 36px;
    }
}

    </style>
</head>
<body>
    <!-- Ultra Modern Topbar -->
    <div class="topbar">
        <!-- Left Section -->
        <div class="topbar-left">
            <button class="menu-toggle" onclick="toggleSidebar()">
                <i class="fas fa-bars"></i>
            </button>

            <div class="page-title">
                <div class="page-icon">
                    <i class="fas fa-th-large"></i>
                </div>
                <div class="page-info">
                    <h1>Dashboard</h1>
                </div>
            </div>
        </div>


        <!-- Right Section -->
        <div class="topbar-right">
            <!-- WhatsApp -->
            <div class="icon-btn whatsapp">
                <i class="fab fa-whatsapp"></i>
            </div>

            <!-- Email -->
            <div class="icon-btn email">
                <i class="fas fa-envelope"></i>
            </div>

            <!-- Notifications -->
            <div class="icon-btn">
                <i class="fas fa-bell"></i>
            </div>

            <div class="divider"></div>

            <!-- Logout Button -->
            <div class="logout-btn" onclick="handleLogout(event)">
                <i class="fas fa-right-from-bracket"></i>
            </div>

        </div>
    </div>

    <script>
        // Toggle sidebar on mobile
        function toggleSidebar() {
            const sidebar = document.querySelector('.sidebar');
            if (sidebar) {
                sidebar.classList.toggle('open');
            }

            // Also toggle overlay
            const overlay = document.querySelector('.overlay');
            if (overlay) {
                overlay.classList.toggle('active');
            }
        }

        // Handle logout
        function handleLogout(event) {
            event.preventDefault();
            if(confirm('Are you sure you want to logout?')) {
                // Add your logout logic here
                window.location.href = '/logout';
            }
        }

        // Close dropdown when clicking outside
        document.addEventListener('click', function(event) {
            const userProfile = document.querySelector('.user-profile');
            if (!userProfile.contains(event.target)) {
                // Dropdown will auto-close due to CSS :hover
            }
        });
    </script>
</body>
</html>
