
/* LAYOUT */
.admin-layout {
    display: flex;
    align-items: flex-start;
    min-height: 100vh;
}

/* SIDEBAR */
.admin-sidebar {
    width: 260px;
    background: #04147f;
    color: #fff;

    position: sticky; /* KUNCI */
    top: 75px;        /* tinggi header */

    align-self: flex-start;
}

/* FLEX ISI SIDEBAR */
.sidebar-inner {
    display: flex;
    flex-direction: column;
    max-height: calc(100vh - 75px);
}

/* HEADER */
.sidebar-logo {
    padding: 20px;
    font-size: 18px;
    flex-shrink: 0;
}

/* MENU SCROLL */
.sidebar-menu {
    flex: 1;
    overflow-y: auto;
    padding: 10px 20px;
}

/* FOOTER SIDEBAR */
.sidebar-footer {
    padding: 15px 20px;
    border-top: 1px solid rgba(255,255,255,0.3);
    flex-shrink: 0;
}

/* CONTENT */
.admin-main {
    flex: 1;
    padding: 20px;
    background: #f8fafc;
    margin-top:75px;
}

/* FOOTER HALAMAN */
.admin-footer {
    background: #0f172a;
    color: #fff;
    padding: 20px;
    margin-left: 260px;
}

/* LINK MENU */
.admin-sidebar .nav-link {
    color: #e5e7eb;
    padding: 12px;
    border-radius: 10px;
    display: flex;
    align-items: center;
}

.admin-sidebar .nav-link i {
    margin-right: 10px;
}

.admin-sidebar .nav-link:hover,
.admin-sidebar .nav-link.active {
    background: #1e293b;
    color: #38bdf8;
}

/* SCROLLBAR KHUSUS DESKTOP */
@media (min-width: 768px) {
    .sidebar-menu::-webkit-scrollbar {
        width: 6px;
    }
    .sidebar-menu::-webkit-scrollbar-thumb {
        background: rgba(255,255,255,0.3);
        border-radius: 10px;
    }
}
/* MAIN CONTENT */
.admin-main {
    margin-left: 260px;
    padding: 20px;
    width: 100%;
    background: #f8fafc;
}

/* MOBILE BOTTOM NAV */
.admin-bottom-nav {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    height: 65px;
    background: #ffffff;
    display: flex;
    justify-content: space-around;
    align-items: center;
    border-top: 1px solid #e5e7eb;
    z-index: 999;
}

.admin-bottom-nav .nav-item {
    text-align: center;
    color: #64748b;
    font-size: 12px;
}

.admin-bottom-nav i {
    font-size: 22px;
    display: block;
}

/* TIKTOK ADD BUTTON */
.nav-add {
    background: #000;
    color: #fff !important;
    width: 48px;
    height: 48px;
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-top: -25px;
}

.nav-add i {
    font-size: 26px;
}

/* MOBILE CONTENT PADDING */
@media (max-width: 768px) {
    .admin-main {
        margin-left: 0;
        padding-bottom: 90px;
    }
}

