/**
 * Lokasi File: public_html/manyar/css/
 * Nama File: sidebar.css
 * Nomor Revisi: 9
 * Keterangan: Memperbaiki masalah konten yang tertutup oleh header fixed.
 */

/* BAGIAN YANG DIPERBARUI: Menambahkan variabel tinggi header */
:root {
    --header-height: 65px; /* Tinggi header kita */
}

/* Penyesuaian untuk body agar konten tidak tertutup nav-bar & header */
body {
    padding-top: var(--header-height); /* Beri ruang setinggi header */
    padding-bottom: 70px; 
}

.main-content {
    width: 100%;
}

.main-header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 999;
    height: var(--header-height); /* Gunakan variabel tinggi header */
    
    background-color: var(--white);
    padding: 0.75rem 1rem;
    box-shadow: 0 2px 4px rgba(0,0,0,0.05);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.main-header .page-title {
    font-size: 1.1rem;
    font-weight: 600;
    margin: 0;
}

.content-body {
    background-color: var(--white);
    padding: 1rem;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.05);
    flex-grow: 1;
}

.bottom-nav {
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 60px;
    background-color: var(--white);
    display: flex;
    justify-content: space-around;
    align-items: center;
    box-shadow: 0 -2px 5px rgba(0,0,0,0.1);
    z-index: 1000;
}

.nav-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    color: var(--gray);
    flex-grow: 1;
}

.nav-item i {
    font-size: 1.2rem;
    margin-bottom: 2px;
}

.nav-item span {
    font-size: 0.7rem;
}

.nav-item.active, .nav-item:hover {
    color: var(--accent-blue);
}

.nav-item-main {
    transform: translateY(-20px);
}

.nav-item-main i {
    width: 50px;
    height: 50px;
    font-size: 1.5rem;
    background-color: var(--accent-blue);
    color: var(--white);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 2px 4px rgba(0,0,0,0.2);
}

.nav-item-main span {
    margin-top: 5px;
    font-weight: 600;
}

/* BAGIAN YANG DIPERBARUI: Kalkulasi padding untuk Safe Area */
@supports (padding: env(safe-area-inset-bottom)) {
    body {
        /* Padding atas = tinggi header + tinggi safe area */
        padding-top: calc(var(--header-height) + env(safe-area-inset-top));
        padding-bottom: calc(60px + env(safe-area-inset-bottom));
    }
   .main-header {
        /* Header dimulai dari bawah safe area atas */
        top: env(safe-area-inset-top);
    }
    .bottom-nav {
        height: calc(60px + env(safe-area-inset-bottom));
        padding-bottom: env(safe-area-inset-bottom);
    }
}