<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0, user-scalable=yes">
    <title>Petrol Pump Management System</title>
    
    <!-- Bootstrap 5 CSS -->
    <link href="https://cdn.jsdelivr.net/npm/bootstrap@5.1.3/dist/css/bootstrap.min.css" rel="stylesheet">
    
    <!-- Poppins Font for Body -->
    <link href="https://fonts.googleapis.com/css2?family=Poppins:wght@300;400;500;600;700;800&display=swap" rel="stylesheet">
    
    <!-- Times New Roman for Headings -->
    <link href="https://fonts.googleapis.com/css2?family=Times+New+Roman&display=swap" rel="stylesheet">
    
    <!-- Font Awesome Icons -->
    <link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/6.0.0/css/all.min.css">
    
    <style>
        * {
            margin: 0;
            padding: 0;
            box-sizing: border-box;
        }
        
        body {
            font-family: 'Poppins', sans-serif;
            background: #f5f7fa;
            color: #333;
            font-weight: 500;
            padding-top: 70px;
        }
        
        /* Headings use Times New Roman */
        h1, h2, h3, h4, h5, h6 {
            font-family: 'Times New Roman', serif;
            font-weight: bold;
            color: #1a2a3a;
        }
        
        /* Primary Color */
        .text-primary-custom { color: #A04657; }
        .bg-primary-custom { background: #A04657; }
        .btn-primary-custom { background: #A04657; border-color: #A04657; }
        .btn-primary-custom:hover { background: #6b2a36; border-color: #6b2a36; }
        
        /* Sidebar Styles - Fixed */
        #sidebar {
            background: linear-gradient(180deg, #1a1a2e 0%, #16213e 100%);
            box-shadow: 2px 0 20px rgba(0,0,0,0.1);
            width: 260px;
            position: fixed;
            top: 70px;
            left: 0;
            height: calc(100vh - 70px);
            transition: all 0.3s;
            z-index: 999;
            overflow-y: auto;
        }
        
        #sidebar ul {
            list-style: none;
            padding: 0;
            margin: 0;
        }
        
        #sidebar ul li a {
            padding: 12px 20px;
            margin: 4px 15px;
            border-radius: 10px;
            display: flex;
            align-items: center;
            gap: 12px;
            transition: all 0.3s;
            color: rgba(255,255,255,0.8);
            text-decoration: none;
            font-size: 13px;
            font-weight: 500;
        }
        
        #sidebar ul li a i {
            width: 22px;
            font-size: 15px;
            color: rgba(255,255,255,0.6);
        }
        
        #sidebar ul li a:hover {
            background: rgba(160,70,87,0.2);
            color: #fff;
        }
        
        #sidebar ul li a:hover i {
            color: #fff;
        }
        
        #sidebar ul li.active a {
            background: linear-gradient(135deg, #A04657 0%, #8a3a49 100%);
            color: #fff;
        }
        
        #sidebar ul li.active a i {
            color: #fff;
        }
        
        /* Section Titles */
        .nav-section {
            margin-top: 15px;
            margin-bottom: 5px;
        }
        
        .section-title {
            padding: 8px 20px;
            font-size: 11px;
            font-weight: bold;
            color: rgba(255,255,255,0.5);
            letter-spacing: 1px;
            display: flex;
            align-items: center;
            gap: 8px;
        }
        
        .section-title i {
            font-size: 12px;
        }
        
        .logout-item {
            margin-top: 20px;
            border-top: 1px solid rgba(255,255,255,0.1);
            padding-top: 10px;
        }
        
        /* Top Header with Logo */
        .top-header {
            background: linear-gradient(135deg, #A04657 0%, #6b2a36 100%);
            padding: 10px 25px;
            display: flex;
            justify-content: space-between;
            align-items: center;
            position: fixed;
            top: 0;
            left: 0;
            right: 0;
            z-index: 1001;
            height: 70px;
        }
        
        .header-left {
            display: flex;
            align-items: center;
            gap: 20px;
        }
        
        .header-logo {
            display: flex;
            align-items: center;
            gap: 12px;
        }
        
        .header-logo img {
            width: 45px;
            height: 45px;
            border-radius: 50%;
            object-fit: cover;
            border: 2px solid rgba(255,255,255,0.3);
        }
        
        .header-title h4 {
            margin: 0;
            color: #fff;
            font-size: 18px;
        }
        
        .header-title p {
            margin: 0;
            font-size: 10px;
            color: rgba(255,255,255,0.8);
        }
        
        .mobile-toggle {
            display: none;
            background: none;
            border: none;
            font-size: 24px;
            color: #fff;
            cursor: pointer;
        }
        
        .user-profile {
            display: flex;
            align-items: center;
            gap: 12px;
            background: rgba(255,255,255,0.15);
            padding: 6px 15px;
            border-radius: 30px;
        }
        
        .user-profile i:first-child {
            font-size: 28px;
            color: #fff;
        }
        
        .user-details {
            display: flex;
            flex-direction: column;
        }
        
        .user-name {
            font-weight: 600;
            font-size: 13px;
            color: #fff;
        }
        
        .user-role {
            font-size: 10px;
            color: rgba(255,255,255,0.7);
        }
        
        /* Content Area */
        #content {
            margin-left: 260px;
            transition: all 0.3s;
            min-height: 100vh;
        }
        
        .content-wrapper {
            padding: 25px;
            padding-bottom: 80px;
        }
        
        /* Mobile Bottom Nav */
        .mobile-bottom-nav {
            display: none;
            position: fixed;
            bottom: 0;
            left: 0;
            right: 0;
            background: #1a1a2e;
            z-index: 1000;
            padding: 8px 0;
            box-shadow: 0 -2px 10px rgba(0,0,0,0.2);
        }
        
        .mobile-bottom-nav .nav-items {
            display: flex;
            justify-content: space-around;
            align-items: center;
            flex-wrap: wrap;
            gap: 5px;
        }
        
        .mobile-bottom-nav .nav-item {
            text-align: center;
            color: #fff;
            text-decoration: none;
            padding: 8px 12px;
            border-radius: 10px;
            transition: all 0.3s;
            min-width: 65px;
        }
        
        .mobile-bottom-nav .nav-item i {
            font-size: 18px;
            display: block;
            margin-bottom: 4px;
        }
        
        .mobile-bottom-nav .nav-item span {
            font-size: 9px;
            display: block;
        }
        
        .mobile-bottom-nav .nav-item:hover,
        .mobile-bottom-nav .nav-item.active {
            background: #A04657;
        }
        
        /* Footer */
        .main-footer {
            position: fixed;
            bottom: 0;
            left: 260px;
            right: 0;
            background: #1a1a2e;
            color: rgba(255,255,255,0.7);
            text-align: center;
            padding: 10px;
            font-size: 11px;
            z-index: 998;
        }
        
        /* Responsive */
        @media (max-width: 768px) {
            body {
                padding-top: 60px;
            }
            
            #sidebar {
                display: none;
            }
            
            #content {
                margin-left: 0;
                padding-bottom: 70px;
            }
            
            .mobile-bottom-nav {
                display: block;
            }
            
            .mobile-toggle {
                display: block;
            }
            
            .top-header {
                height: 60px;
                padding: 0 15px;
            }
            
            .header-title p {
                display: none;
            }
            
            .header-title h4 {
                font-size: 14px;
            }
            
            .user-details {
                display: none;
            }
            
            .user-profile {
                padding: 5px 12px;
            }
            
            .user-profile i:first-child {
                font-size: 24px;
            }
            
            .content-wrapper {
                padding: 15px;
                padding-bottom: 80px;
            }
            
            .main-footer {
                left: 0;
                bottom: 60px;
                font-size: 9px;
            }
        }
        
        /* Scrollbar */
        ::-webkit-scrollbar {
            width: 6px;
            height: 6px;
        }
        
        ::-webkit-scrollbar-track {
            background: #f1f1f1;
            border-radius: 10px;
        }
        
        ::-webkit-scrollbar-thumb {
            background: #A04657;
            border-radius: 10px;
        }
/* Dropdown Menu Styles */
.nav-item-dropdown {
    position: relative;
}

.nav-item-dropdown > a {
    display: flex;
    justify-content: space-between;
    align-items: center;
    cursor: pointer;
}

.nav-item-dropdown > a .arrow {
    font-size: 12px;
    transition: transform 0.3s;
}

.nav-item-dropdown > a.active .arrow {
    transform: rotate(180deg);
}

.dropdown-menu-list {
    list-style: none;
    padding-left: 35px;
    margin: 0;
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease-out;
}

.dropdown-menu-list.show {
    max-height: 500px;
}

.dropdown-menu-list li {
    margin: 0;
}

.dropdown-menu-list li a {
    padding: 10px 15px !important;
    margin: 2px 0 !important;
    font-size: 12px !important;
}

.dropdown-menu-list li a i {
    width: 20px;
    font-size: 12px;
}        
    </style>
    
    <?php
    session_start();
    ?>
</head>
<body>