:root {
    --sidebar-width: 260px;
    --sidebar-bg: #1e2229;
    --sidebar-hover: #2e3440;
    --primary-color: #0d6efd; /* Bootstrap Primary Blue */
    --topbar-height: 70px;
    --text-muted: #adb5bd;
}

body {
    background-color: #f4f7f6;
    font-family: 'Nunito', sans-serif;
}

#wrapper {
    display: flex;
}

/* Sidebar Styling */
#sidebar {
    width: var(--sidebar-width);
    min-width: var(--sidebar-width);
    background: var(--sidebar-bg);
    min-height: 100vh;
    transition: all 0.3s;
    color: #fff;
    position: fixed;
    z-index: 1000;
}

#sidebar .sidebar-header {
    padding: 20px;
    background: #16191f;
    text-align: center;
    border-bottom: 1px solid #2e3440;
}

#sidebar .sidebar-header h3 {
    margin: 0;
    font-size: 1.1rem;
    font-weight: 700;
    color: #fff;
}

#sidebar .sidebar-header small {
    color: var(--primary-color);
    font-weight: 600;
}

#sidebar ul.components {
    padding: 20px 0;
}

#sidebar ul li a {
    padding: 12px 25px;
    font-size: 0.95rem;
    display: block;
    color: var(--text-muted);
    text-decoration: none;
    transition: 0.3s;
}

#sidebar ul li a:hover {
    color: #fff;
    background: var(--sidebar-hover);
}

#sidebar ul li.active > a {
    color: #fff;
    background: var(--primary-color);
    border-left: 4px solid #fff;
}

#sidebar ul li a i {
    margin-right: 15px;
    width: 20px;
    text-align: center;
}

/* Dropdown toggles */
#sidebar .dropdown-toggle::after {
    float: right;
    margin-top: 8px;
}

#sidebar .collapse ul li a {
    padding-left: 60px;
    background: #16191f;
    font-size: 0.85rem;
}

/* Main Content Area */
#content {
    width: 100%;
    margin-left: var(--sidebar-width);
    transition: all 0.3s;
}

/* Topbar Styling */
.topbar {
    height: var(--topbar-height);
    background: #fff;
    display: flex;
    align-items: center;
    padding: 0 30px;
    box-shadow: 0 0.125rem 0.25rem rgba(0, 0, 0, 0.075);
    position: sticky;
    top: 0;
    z-index: 999;
}

.topbar .toggle-sidebar {
    cursor: pointer;
    font-size: 1.2rem;
    color: var(--sidebar-bg);
}

.user-profile img {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    margin-right: 10px;
}

.main-container {
    padding: 30px;
}

/* Responsive */
@media (max-width: 768px) {
    #sidebar {
        margin-left: calc(-1 * var(--sidebar-width));
    }
    #sidebar.active {
        margin-left: 0;
    }
    #content {
        margin-left: 0;
    }
}
