/* BODY FOR STICKY FOOTER */
body {
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

.bg-gray {
  --bs-bg-opacity: 1;
  background-color: #ccc !important;
}

.main-wrapper {
    flex: 1;
    display: flex;
}

/* HEADER */
#main-header {
    height: 56px;
    width: 100%;
    background: white;
    /* background: #212529; */
    border-bottom: 1px solid #ddd;
    position: fixed;
    top: 0;
    left: 0;
    z-index: 5000;

    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 15px;
}

/* LOGO */
.header-logo {
    height: 40px;
    cursor: pointer;
}

/* AVATAR */
.avatar {
    height: 32px;
    width: 32px;
    border-radius: 50%;
}

/* HAMBURGER */
.hamburger-btn {
    font-size: 24px;
    cursor: pointer;
    margin-right: 15px;
    display: none;
    user-select: none;
}

/* SIDEBAR */
#sidebar {
    width: 200px;
    max-width: 200px;
    height: calc(100vh - 249px);
    /* height: calc(100vh - 96px); */
    position: fixed;
    top: 56px;
    left: 0;
    background: #f8f9fa;
    border-right: 1px solid #ddd;
    overflow-y: auto;
    z-index: 2000;
    padding: 16px;
}

/* LINKS IN SIDEBAR */
.sidebar-link {
    display: block;
    padding: 12px 20px;
    color: #333;
    text-decoration: none;
}
.sidebar-link:hover {
    color: #0d6efd;
    font-weight: bold;
    background: #e9ecef;
}

/* CONTENT */
#content {
    margin-left: 200px;
    margin-top: 56px;
    padding: 20px;
    width: 100%;
}

.content-inner {
    max-width: 960px;
    margin: 0 auto;
}

footer {
    font-size: 0.9rem;
}

.footer-link {
    color: #ddd;
    text-decoration: none;
}

#footer-right {
    display:block;
}

/* ============ MOBILE STYLES ============== */
@media (max-width: 810px) {

    /* Always show hamburger on mobile */
    .hamburger-btn {
        display: block;
    }

    /* Hide right header items on mobile */
    #header-right {
        display: none !important;
    }

    /* Sidebar hidden initially */
    #sidebar {
        left: -260px;
        transition: 0.3s ease;
    }

    #sidebar.active {
        left: 0;
    }

    /* Content expands full width */
    #content {
        margin-left: 0;
    }
}

@media (max-width: 640px) {
    #footer-right {
        display:none !important;
    }
}
