<!-- Sidebar -->
<div class="col-md-3 col-lg-2 px-0 sidebar d-md-block" style="background-color: #0d6efd;">
    <div class="d-flex flex-column flex-shrink-0 p-3 h-100">
        <a href="index.php" class="d-flex align-items-center mb-3 mb-md-0 me-md-auto text-white text-decoration-none">
            <span class="fs-4">Admin Panel</span>
        </a>
        <hr style="border-color: rgba(255,255,255,0.2);">
        <ul class="nav nav-pills flex-column mb-auto">
            <li class="nav-item">
                <a href="index.php" class="nav-link text-white">
                    <i class="fas fa-tachometer-alt me-2"></i>
                    Dashboard
                </a>
            </li>
            <li>
                <a href="gallery.php" class="nav-link text-white">
                    <i class="fas fa-images me-2"></i>
                    Gallery
                </a>
            </li>
            <li>
                <a href="visit_requests.php" class="nav-link text-white">
                    <i class="fas fa-calendar-alt me-2"></i>
                    Visit Requests
                </a>
            </li>
            <!-- Other menu items... -->
        </ul>
    </div>
</div>

<style>
.sidebar {
    min-height: 100vh;
    transition: all 0.3s;
}

.sidebar .nav-link {
    color: rgba(255, 255, 255, 0.9) !important;
    font-weight: 500;
    border-radius: 0.25rem;
    margin: 0.1rem 0;
    padding: 0.5rem 1rem;
    transition: all 0.2s;
}

.sidebar .nav-link:hover {
    background-color: rgba(255, 255, 255, 0.15) !important;
    color: #fff !important;
}

.sidebar .nav-link.active {
    background-color: rgba(0, 0, 0, 0.2) !important;
    color: #fff !important;
    font-weight: 600;
}

.sidebar .nav-link i {
    width: 20px;
    text-align: center;
    margin-right: 0.5rem;
}

/* Make the sidebar sticky */
.sticky-sidebar {
    position: -webkit-sticky;
    position: sticky;
    top: 0;
    height: 100vh;
    overflow-y: auto;
}

/* Custom scrollbar for sidebar */
.sidebar::-webkit-scrollbar {
    width: 6px;
}

.sidebar::-webkit-scrollbar-track {
    background: rgba(0,0,0,0.1);
}

.sidebar::-webkit-scrollbar-thumb {
    background-color: rgba(255,255,255,0.3);
    border-radius: 3px;
}
</style>