
/* MOKA Biodiversitas — shared sidebar design */

/* Header standar — mengikuti Fauna dan Flora */
.sidebar .logo,
.sidebar .brand {
    box-sizing: border-box;
    display: block;
    width: 100%;
    height: 190px;
    min-height: 190px;
    max-height: 190px;
    flex: 0 0 190px;
    padding: 24px 12px 10px !important;
    margin: 0;
    text-align: left;
    overflow: hidden;
    border-bottom: 1px solid rgba(255,255,255,.08);
}

.sidebar .logo-main {
    display: flex;
    align-items: center;
    gap: 10px;
    width: 100%;
    min-width: 0;
}

.sidebar .logo-tree {
    display: block;
    flex: 0 0 auto;
    width: auto;
    min-width: 0;
    font-size: 31px !important;
    line-height: 1;
}

.sidebar .logo-main > div:last-child {
    flex: 1 1 auto;
    min-width: 0;
}

.sidebar .logo-title,
.sidebar .brand-title {
    font-family: Arial, Helvetica, sans-serif;
    font-size: 26px !important;
    font-weight: 800;
    line-height: 1 !important;
    overflow-wrap: normal;
    word-break: normal;
}

.sidebar .logo-title + .logo-title,
.sidebar .brand-title span {
    display: block;
    color: #a9d3bf;
    font-size: clamp(14px, 1.1vw, 20px) !important;
    font-weight: 800;
    line-height: 1.2 !important;
    white-space: normal !important;
    overflow-wrap: normal;
    word-break: normal;
}

.sidebar .logo-sub,
.sidebar .brand-sub {
    display: block;
    margin-top: 7px !important;
    font-family: Arial, Helvetica, sans-serif;
    font-size: 12px !important;
    line-height: 1.5;
    color: #d2e7dc;
}

.sidebar .logo-tagline {
    display: block;
    margin-top: 0 !important;
    font-family: Arial, Helvetica, sans-serif;
    font-size: 12px !important;
    line-height: 1.5;
    color: #d2e7dc;
}

/* Judul kelompok navigasi */
.sidebar .menu-title,
.sidebar .section {
    font-family: Arial, Helvetica, sans-serif;
    font-size: 10px !important;
    font-weight: 700;
    letter-spacing: 1.2px;
    line-height: 1.4;
    text-transform: uppercase;
}

/* Semua format tautan menu */
.sidebar .menu a,
.sidebar a.menu {
    box-sizing: border-box;
    display: flex;
    align-items: center;
    gap: 10px;
    min-height: 40px;
    font-family: Arial, Helvetica, sans-serif;
    font-size: 13px !important;
    font-weight: 600;
    line-height: 1.4;
    text-decoration: none;
}

/* Ikon selalu memiliki kolom tetap */
.sidebar .menu-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex: 0 0 23px;
    width: 23px;
    min-width: 23px;
    text-align: center;
    line-height: 1;
}

/* Ukuran teks pada layar kecil */
@media (max-width: 600px) {
    .sidebar .logo-title:first-child,
    .sidebar .brand-title {
        font-size: 25px;
    }

    .sidebar .logo-title + .logo-title,
    .sidebar .brand-title span {
        font-size: 20px !important;
    }
}


/* FIXED HEADER + INDEPENDENT MENU SCROLL */
.sidebar.sidebar-fixed-layout {
    box-sizing: border-box;
    display: flex !important;
    flex-direction: column !important;
    height: 100vh !important;
    min-height: 100vh !important;
    max-height: 100vh !important;
    padding-top: 0 !important;
    padding-bottom: 0 !important;
    overflow: hidden !important;
}

.sidebar.sidebar-fixed-layout > .logo,
.sidebar.sidebar-fixed-layout > .brand {
    flex: 0 0 190px !important;
    min-height: 190px !important;
    max-height: 190px !important;
}

.sidebar.sidebar-fixed-layout > .sidebar-menu-scroll {
    flex: 1 1 auto;
    min-height: 0;
    overflow-y: auto;
    overflow-x: hidden;
    scrollbar-gutter: stable;
}

.sidebar.sidebar-fixed-layout > .sidebar-user {
    flex: 0 0 auto;
    margin-top: 0;
}

/* STANDARD SIDEBAR WIDTH — mengikuti Fauna dan Flora */
.sidebar.sidebar-fixed-layout {
    box-sizing: border-box !important;
    width: 245px !important;
    min-width: 245px !important;
    max-width: 245px !important;
    flex: 0 0 245px !important;
    left: 0 !important;
}

/* FIX: posisi horizontal sidebar dan header konsisten */
.sidebar.sidebar-fixed-layout {
    padding-left: 12px !important;
    padding-right: 12px !important;
    margin-left: 0 !important;
}

.sidebar.sidebar-fixed-layout > .logo,
.sidebar.sidebar-fixed-layout > .brand {
    box-sizing: border-box !important;
    width: 100% !important;
    margin-left: 0 !important;
    margin-right: 0 !important;
}

/* IDENTITAS PENGGUNA — KONSISTEN DI SELURUH HALAMAN MOKA */
.sidebar.sidebar-fixed-layout > .sidebar-user {
    box-sizing: border-box;
    width: 100%;
    padding: 12px 10px;
    border-top: 1px solid rgba(255,255,255,.12);
    display: flex;
    align-items: center;
    gap: 9px;
    color: #fff;
    flex-shrink: 0;
}

.sidebar-user .avatar {
    width: 32px;
    height: 32px;
    min-width: 32px;
    border-radius: 50%;
    background: #e8f1ed;
    color: #315b49;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.sidebar-user-info {
    min-width: 0;
    flex: 1;
}

.sidebar-user-info strong {
    display: block;
    font-size: 11px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.sidebar-user-info span {
    display: block;
    margin-top: 2px;
    font-size: 9px;
    color: #a9c8ba;
}

.sidebar-user > a {
    color: #a9d3bf;
    text-decoration: none;
    font-size: 10px;
    font-weight: 700;
    white-space: nowrap;
    flex-shrink: 0;
}

.sidebar-user > a:hover {
    color: #fff;
}

