body {
    background: #f4f6f9;
    overflow-x: hidden;
}

/* =========================
   TOPBAR
========================= */
.topbar {
    height: 56px;
    background: #fff;
    border-bottom: 1px solid #dee2e6;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1030;
}

/* =========================
   TOP MENU
========================= */
.top-menu {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
}

.top-link {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 6px 12px;
    border-radius: 6px;
    text-decoration: none;
    color: #333;
    font-size: 14px;
    transition: 0.2s;
}

.top-link:hover {
    background: #f1f1f1;
}

.top-link.active {
    background: #0d6efd;
    color: #fff;
}

/* =========================
   SIDEBAR
========================= */
.sidebar {
    width: 200px;
    background: #343a40;
    position: fixed;
    top: 56px;
    left: 0;
    bottom: 0;
    overflow-y: auto;
    padding-top: 10px;
    transition: all 0.3s ease;
}

.sidebar a {
    display: flex;
    align-items: center;
    padding: 10px 15px;
    margin: 2px 10px;
    color: #c2c7d0;
    text-decoration: none;
    border-radius: 5px;
    transition: 0.2s;
}

.sidebar a i {
    width: 22px;
}

.sidebar a:hover {
    background: #495057;
    color: #fff;
}

.sidebar a.active {
    background: #0d6efd;
    color: #fff;
}

/* =========================
   CONTENT WRAPPER
========================= */
.content-wrapper {
    padding-top: 56px;
    margin-left: 200px;
    transition: all 0.3s ease;
    width: calc(100% - 200px);
}

/* =========================
   COLLAPSED SIDEBAR
========================= */
body.sidebar-collapsed .sidebar {
    width: 70px;
}

body.sidebar-collapsed .sidebar a span {
    display: none;
}

body.sidebar-collapsed .sidebar a {
    justify-content: center;
}

body.sidebar-collapsed .content-wrapper {
    margin-left: 70px;
    width: calc(100% - 70px);
}

/* =========================
   NO SIDEBAR
========================= */
body.no-sidebar .sidebar {
    display: none;
}

body.no-sidebar .content-wrapper {
    margin-left: 0;
    width: 100%;
}

/* =========================
   USER PROFILE
========================= */
.user-profile {
    padding: 6px 12px;
    border-radius: 50px;
    transition: all .3s ease;
    color: #212529;
    display: flex;
    align-items: center;
    gap: 8px;
}

.user-profile:hover {
    background: #f8f9fa;
    transform: translateY(-1px);
    box-shadow: 0 3px 10px rgba(0,0,0,.08);
}

.user-profile img {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid #e9ecef;
}

/* =========================
   MOBILE RESPONSIVE FIX
========================= */
