:root {
    --primary-color: #000000;
    --secondary-color: #6c757d;
    --accent-color: #0d6efd;
    --sidebar-width: 250px;
    --font-family: "Plus Jakarta Sans", sans-serif;
}

body {
    font-family: var(--font-family);
    background-color: #f8f9fa;
    overflow-x: hidden;
}

#wrapper {
    overflow-x: hidden;
    min-height: 100vh;
}

#sidebar-wrapper {
    min-height: 100vh;
    margin-left: -15rem;
    transition: margin 0.25s ease-out;
    width: var(--sidebar-width);
    position: fixed;
    z-index: 1000;
    top: 0;
    bottom: 0;
}

#sidebar-wrapper .sidebar-heading {
    padding: 1.25rem 1.5rem; /* Adjusted vertical padding */
    font-size: 1.2rem;
    height: 70px; /* Fixed height for consistency */
}

#sidebar-wrapper .list-group {
    width: var(--sidebar-width);
}

#page-content-wrapper {
    width: 100%;
    margin-left: 0;
    transition: margin 0.25s ease-out;
    padding-left: 0; /* Reset padding */
}

/* Toggled State */
body.sb-sidenav-toggled #sidebar-wrapper {
    margin-left: 0;
}

/* Content pushes when sidebar is visible on large screens */
@media (min-width: 992px) {
    #sidebar-wrapper {
        margin-left: 0;
        position: fixed; /* Keep fixed */
    }

    #page-content-wrapper {
        margin-left: var(--sidebar-width); /* Push content */
        width: calc(100% - var(--sidebar-width));
    }

    body.sb-sidenav-toggled #sidebar-wrapper {
        margin-left: -15rem; /* Hide sidebar */
    }

    body.sb-sidenav-toggled #page-content-wrapper {
        margin-left: 0;
        width: 100%;
    }
}

/* Styling Components */
.list-group-item {
    border: none;
    font-weight: 500;
    color: #64748b;
    border-radius: 0.75rem; /* More rounded */
    margin: 0.25rem 1rem; /* More horizontal spacing */
    padding: 0.875rem 1.25rem; /* Larger touch target */
    transition: all 0.2s ease-in-out;
    display: flex;
    align-items: center;
}

.list-group-item i {
    font-size: 1.25rem; /* Larger icons */
    margin-right: 0.75rem;
    transition: color 0.2s;
}

.list-group-item:hover {
    background-color: #f8fafc;
    color: #0f172a;
    transform: translateX(4px); /* Subtle hover movement */
}

.list-group-item.active {
    background-color: #000;
    color: #fff;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15); /* Soft shadow */
}

.list-group-item.active i {
    color: #fff;
}

.sidebar-heading {
    padding: 1.5rem 1.5rem;
    color: #000;
    font-size: 1.25rem;
    letter-spacing: -0.025em;
}

.navbar {
    height: 70px; /* Match sidebar header */
    z-index: 900;
}

.card {
    border: none;
    border-radius: 1rem;
    box-shadow: 0 4px 6px -1px rgb(0 0 0 / 0.05),
        0 2px 4px -2px rgb(0 0 0 / 0.05);
    transition: transform 0.2s;
}

/* Avatar */
.avatar-circle {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    font-size: 0.875rem;
    font-weight: 600;
}

/* Animations */
.fade-in {
    animation: fadeIn 0.3s ease-in;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}
