/* =========================
   SIDEBAR BASE
========================= */
body, html {
    overflow-x: hidden; /* Prevent horizontal scroll */
    margin: 0;
    padding: 0;
}

.sidebar {
    background-color: #F0EEE8;
    width: 280px;
    height: 100vh;
    border-right: 1px solid #e9ecef;
    display: flex;
    flex-direction: column;
    position: fixed;
    top: 0;
    left: 0;
    z-index: 1035;
    transition: transform 0.3s ease;
}

/* =========================
   SIDEBAR LINKS
========================= */
.sidebar-nav {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px 16px;
    margin: 4px 0;
    font-size: 15px;
    font-weight: 500;
    color: #282828;
    text-decoration: none;
    border-radius: 8px;
    transition: all 0.2s ease;
    background: transparent;
}

.sidebar-nav:hover {
    background: rgba(239, 172, 47, 0.15);
    transform: translateX(2px);
}

.sidebar-nav.active {
    background-color: #EFAC2F;
    color: #000;
}

/* =========================
   USER PROFILE
========================= */
.sidebar-user {
    display: flex;
    align-items: center;
    padding: 12px 0;
    margin: 8px;
}

.sidebar-user img {
    width: 40px;
    height: 40px;
    border-radius: 50%;
}

.sidebar-user .user-name {
    font-size: 14px;
    font-weight: 600;
    color: #212529;
}

.sidebar-user .user-email {
    font-size: 12px;
    color: #6c757d;
}

.img-fluid {
    max-width: 20px;
}

/* =========================
   DROPDOWN
========================= */
.sidebar-dropdown {
    width: 100%;
}

.sidebar-dropdown .dropdown-toggle {
    display: flex;
    align-items: center;
    justify-content: space-between;
    cursor: pointer;
}

.sidebar-dropdown .arrow-icon {
    width: 14px;
    transition: transform 0.3s ease;
}

.sidebar-dropdown .sidebar-submenu {
    display: none;
    margin-top: 5px;
}

.sidebar-dropdown.open .sidebar-submenu {
    display: block;
}

.sidebar-dropdown.open .arrow-icon {
    transform: rotate(180deg);
}

.sidebar-submenu .sidebar-nav {
    padding-left: 42px;
    font-size: 14px;
}

/* =========================
   BOTTOM MENU
========================= */
/* .bottom-menu {
    padding-top: 24px;
    border-bottom: 1px solid #e9ecef;
    position: absolute;
    bottom: 0;
}

@media (max-width: 768px) {
    .bottom-menu {
        position: static;
    }
}
*/
/* =========================
   MOBILE BEHAVIOR
========================= */
@media (max-width: 992px) {
    .sidebar {
        transform: translateX(-100%);
        z-index: 1050;
    }

    .sidebar.show {
        transform: translateX(0);
    }

   /* .flex-grow-1 {
        margin-left: 0 !important;
    } */

    .sidebar-backdrop {
        position: fixed;
        inset: 0;
        background: rgba(0,0,0,0.45);
        z-index: 1040;
        display: none;
    }

    .sidebar-backdrop.show {
        display: block;
    }

    .sidebar-close {
        position: absolute;
        top: 18px;
        right: 18px;
        background: transparent;
        border: none;
        font-size: 20px;
        color: #333;
        cursor: pointer;
    }
}

/* =========================
   MOBILE HEADER
========================= */
.mobile-header {
    background-color: #F0EEE8;
    border-bottom: 1px solid #e2e2e2;
}

.mobile-logo {
    height: 50px;
    max-width: 100%;
    object-fit: contain;
}

.mobile-menu-btn {
    background: transparent;
    border: none;
    font-size: 22px;
    color: #111827;
    padding: 8px 12px;
    border-radius: 6px;
}

.mobile-menu-btn:active {
    background-color: rgba(0,0,0,0.05);
}

.main-content {
    width: 100%;
    max-width: 100%;
    overflow-x: hidden;
}

@media (min-width: 992px) {
    .main-content {
        margin-left: 280px;
    }
}

@media (max-width: 992px) {
    .main-content {
        margin-left: 0 !important;
    }
}

