* { margin: 0; padding: 0; box-sizing: border-box; }

body {
    font-family: 'Segoe UI', Arial, sans-serif;
    background: #f8fafc;
    padding-bottom: 75px;
}

/* Topbar */
.topbar {
    background: white;
    padding: 15px 20px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    box-shadow: 0 2px 12px rgba(0,0,0,0.1);
    position: sticky;
    top: 0;
    z-index: 1000;
}

.logo { font-size: 1.65rem; font-weight: 700; color: #16a34a; }
.menu-btn { background: none; border: none; font-size: 1.8rem; cursor: pointer; }

/* ==================== SIDEBAR ==================== */
.sidebar {
    position: fixed;
    top: 0;
    left: -280px;
    width: 280px;
    height: 100%; /* Screen ki puri height le lega */
    background: #1f2937;
    color: white;
    transition: left 0.4s ease;
    z-index: 2000;
    box-shadow: 4px 0 15px rgba(0,0,0,0.3);
    padding: 20px;
    padding-bottom: 100px; /* Neeche se thoda space dega taaki last item na chhupe */
    overflow-y: auto;
    box-sizing: border-box; /* Zaroori hai taaki padding height mein include ho */
    display: flex;
    flex-direction: column;
}

.sidebar.active {
    left: 0;
}

.sidebar-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 25px;
    padding-bottom: 15px;
    border-bottom: 1px solid #374151;
}

.sidebar a {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 14px 12px;
    color: #cbd5e1;
    text-decoration: none;
    border-radius: 8px;
    margin-bottom: 5px;
}

.sidebar a:hover {
    background: #374151;
    color: #4ade80;
}

/* Overlay */
.sidebar-overlay {
    position: fixed;
    top: 0; left: 0;
    width: 100%; height: 100%;
    background: rgba(0,0,0,0.5);
    z-index: 1999;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s;
}

.sidebar-overlay.active {
    opacity: 1;
    visibility: visible;
}

/* Bottom Nav */
.bottom-nav {
    position: fixed;
    bottom: 0;
    width: 100%;
    background: white;
    display: flex;
    padding: 8px 0 6px;
    box-shadow: 0 -3px 15px rgba(0,0,0,0.1);
    z-index: 1000;
}

.nav-item {
    flex: 1;
    text-align: center;
    color: #64748b;
    text-decoration: none;
    font-size: 0.78rem;
}

.nav-item i { display: block; font-size: 1.5rem; margin-bottom: 3px; }
.nav-item.active { color: #16a34a; }

/* Sidebar scrollbar styling */
.sidebar::-webkit-scrollbar {
    width: 6px; /* Scrollbar ki width */
}

.sidebar::-webkit-scrollbar-track {
    background: #1f2957; /* Sidebar ka background color */
}

.sidebar::-webkit-scrollbar-thumb {
    background: #4ade80; /* Scrollbar ka color (green) */
    border-radius: 10px; /* Thoda curve dene ke liye */
}

.sidebar::-webkit-scrollbar-thumb:hover {
    background: #374151; /* Hover karne par color */
}

/* Desktop */
@media (min-width: 769px) {
    .sidebar { left: 0 !important; box-shadow: none; }
    .sidebar-overlay { display: none !important; }
    .topbar, .home-wrapper { margin-left: 280px; }
}