<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Financial Admin Dashboard</title>
    <link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/6.4.0/css/all.min.css">
    <style>
        :root {
            --main-bg: #1a1a2e;
            --sidebar-bg: #f4f4f4;
            --accent-color: #7b2cbf;
            --accent-hover: #9d4edd;
            --text-color: #444;
            --text-muted: #a0a0a0;
            --shadow: 0 4px 6px rgba(0, 0, 0, 0.3);
            --transition: all 0.3s ease;
        }

        * {
            margin: 0;
            padding: 0;
            box-sizing: border-box;
            font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
        }

         @media (min-width: 1000px){
            .pc {
                margin-left: 20%;
                padding: 3px;
            }
        }

        ::-webkit-scrollbar {
            display: none;
        }


        /* Sidebar Styles */
        .sidebar {
            width: 20%;
            background-color: var(--sidebar-bg);
            position: fixed;
            height: 100vh;
            box-shadow: var(--shadow);
            transition: var(--transition);
            z-index: 1000;
            overflow-y: auto;
        }

        .sidebar-header {
            padding: 20px;
            text-align: center;
            border-bottom: 1px solid rgba(255, 255, 255, 0.1);
        }

        .sidebar-brand {
            color: var(--text-color);
            font-size: 24px;
            font-weight: 700;
            display: flex;
            align-items: center;
            justify-content: center;
        }

        .sidebar-brand i {
            color: var(--accent-color);
            margin-right: 10px;
            font-size: 28px;
        }

        .sidebar-menu {
            padding: 20px 0;
        }

        .sidebar-menu ul {
            list-style: none;
        }

        .sidebar-menu li {
            margin-bottom: 5px;
            position: relative;
        }

        .sidebar-menu li a {
            display: flex;
            align-items: center;
            padding: 12px 20px;
            color: var(--text-color);
            text-decoration: none;
            transition: var(--transition);
            border-left: 3px solid transparent;
            font-weight: 500;
        }

        .sidebar-menu li a:hover {
            background-color: rgba(123, 44, 191, 0.1);
            border-left: 3px solid var(--accent-color);
        }

        

        .sidebar-menu li a i {
            margin-right: 10px;
            font-size: 18px;
            width: 24px;
            text-align: center;
            color: var(--accent-color);
        }

        .sidebar-menu .logout {
            margin-top: 30px;
            border-top: 1px solid rgba(255, 255, 255, 0.1);
            padding-top: 15px;
        }

        .sidebar-menu .logout a {
            color: var(--text-muted);
        }

        .sidebar-menu .logout a:hover {
            color: var(--text-color);
        }

       
        .topbar {
            display: flex;
            justify-content: space-between;
            text-align: right;
            padding: 15px 20px;
            margin-left: 20%;
            position: sticky;
            width: 80%;
            z-index: 10;
        }

        .toggle-sidebar {
            display: none;
            background: none;
            border: none;
            cursor: pointer;
            color: #555;
            font-size: 24px;
        }

        .toggle-sidebar:hover {
            color: var(--accent-color);
        }

        .user-profile {
            display: flex;
            align-items: center;
        }

        .user-profile img {
            width: 36px;
            height: 36px;
            border-radius: 50%;
            margin-right: 10px;
            border: 2px solid var(--accent-color);
        }

        .user-profile .user-info {
            line-height: 1.2;
            background: #f9f9f9;
        }

        .user-profile .user-name {
            font-weight: 600;
        }

        .user-profile .user-role {
            font-size: 12px;
            color: var(--text-muted);
        }

        /* Content Placeholder */
        .content-area {
            background-color: var(--sidebar-bg);
            padding: 20px;
            border-radius: 8px;
            box-shadow: var(--shadow);
            min-height: calc(100vh - 140px);
        }

        .content-title {
            margin-bottom: 20px;
            color: var(--accent-color);
            font-size: 24px;
        }

        /* Responsive Styles */
        @media (max-width: 999px) {
            .sidebar {
                transform: translateX(-600px);
                width: 75%;
            }

            .sidebar.active {
                transform: translateX(0);
            }

            .main-content {
                margin-left: 0;
            }

            .toggle-sidebar {
                display: block;
            }

            .sidebar-overlay {
                position: fixed;
                top: 0;
                left: 0;
                width: 100%;
                height: 100%;
                background-color: rgba(0, 0, 0, 0.5);
                z-index: 999;
                display: none;
            }

            .topbar {
                width: 100%;
                margin-left: 0;
                position: sticky;
            }

            .sidebar-overlay.active {
                display: block;
            }
        }
    </style>
</head>
<body>
    <div class="containerr">
        <!-- Sidebar Overlay (for mobile) -->
        <div class="sidebar-overlay"></div>

        <!-- Sidebar Navigation -->
        <nav class="sidebar">
            <div class="sidebar-header">
                <div class="sidebar-brand">
                    <i class="fas fa-chart-line"></i>
                    <span>TWave... Admin</span>
                </div>
            </div>
            <div class="sidebar-menu">
                <ul>
                    <li>
                        <a href="admin-overview.php" class="active">
                            <i class="fas fa-tachometer-alt"></i>
                            <span>Overview</span>
                        </a>
                    </li>
                    <li>
                        <a href="admin-users.php">
                            <i class="fas fa-users"></i>
                            <span>Users</span>
                        </a>
                    </li>
                    <li>
                        <a href="admin-admins.php">
                            <i class="fas fa-user-shield"></i>
                            <span>Admins</span>
                        </a>
                    </li>
                    <li>
                        <a href="admin-payments.php">
                            <i class="fas fa-credit-card"></i>
                            <span>Payments</span>
                        </a>
                    </li>
                    <li>
                        <a href="admin-trades.php">
                            <i class="fas fa-exchange-alt"></i>
                            <span>Trade Management</span>
                        </a>
                    </li>
                    <li>
                        <a href="admin-transactions.php">
                            <i class="fas fa-user-check"></i>
                            <span>Authorize transactions</span>
                        </a>
                    </li>
                    <li>
                        <a href="admin-payment.php">
                            <i class="fab fa-bitcoin"></i>
                            <span>Paymeny details</span>
                        </a>
                    </li>

                    <li>
                        <a href="admin-broadcast.php" data-tab="wallets" class="tab">
                            <i class="fas fa-bullhorn"></i>
                            <span>Send broadcast</span>
                        </a>
                    </li>
                    <li>
                        <a href="admin-plans.php">
                            <i class="fas fa-clipboard-list"></i>
                            <span>Trading Plans</span>
                        </a>
                    </li>
                    <li>
                        <a href="admin-traders.php">
                            <i class="fas fa-clipboard-list"></i>
                            <span>Copy Traders</span>
                        </a>
                    </li>

                    <li>
                        <a href="mailing.php" data-tab="wallets" class="tab">
                            <i class="fas fa-message"></i>
                            <span>Send EMAIL</span>
                        </a>
                    </li>

                    <li class="logout">
                        <a href="php/adminlogout.php">
                            <i class="fas fa-sign-out-alt"></i>
                            <span>Logout</span>
                        </a>
                    </li>
                </ul>
            </div>
        </nav>

        <!-- Main Content Area -->
            <div class="topbar">
                <button class="toggle-sidebar">
                    <i class="fas fa-bars"></i>
                </button>
                <div class="user-profile">
                    <img src="images/icon.png" alt="User Avatar">
                    <div class="user-info">
                        <div class="user-name">Admin User</div>
                        <div class="user-role">Financial Administrator</div>
                    </div>
                </div>
            </div>

           
    </div>

    <script>
        document.addEventListener('DOMContentLoaded', function() {
            const toggleBtn = document.querySelector('.toggle-sidebar');
            const sidebar = document.querySelector('.sidebar');
            const sidebarOverlay = document.querySelector('.sidebar-overlay');
            const menuItems = document.querySelectorAll('.sidebar-menu li a');
            
            // Toggle sidebar on mobile
            toggleBtn.addEventListener('click', function() {
                sidebar.classList.toggle('active');
                sidebarOverlay.classList.toggle('active');
            });
            
            // Close sidebar when clicking outside
            sidebarOverlay.addEventListener('click', function() {
                sidebar.classList.remove('active');
                sidebarOverlay.classList.remove('active');
            });
            
            // Handle menu item clicks
            menuItems.forEach(item => {
                item.addEventListener('click', function() {
                    // Remove active class from all menu items
                    menuItems.forEach(i => i.classList.remove('active'));
                    
                    // Add active class to clicked item
                    this.classList.add('active');
                    
                    
                    
                    // Close sidebar on mobile after clicking a menu item
                    if (window.innerWidth < 992) {
                        sidebar.classList.remove('active');
                        sidebarOverlay.classList.remove('active');
                    }
                });
            });
            
            // Responsive behavior for window resize
            window.addEventListener('resize', function() {
                if (window.innerWidth > 991) {
                    sidebar.classList.remove('active');
                    sidebarOverlay.classList.remove('active');
                }
            });
        });
    </script>
</body>
</html>