:root { 
    --dark: #09090b; 
    --dark-lite: #18181b; 
    --green: #22c55e; 
    --grey: #3f3f46; 
    --grey-lite: #d8dee4; 
    --grey-muted: #a1a1aa; 
    --red: #ef4444; 
    --grey-dark: #71717a; 
    --white: #ffffff; 
    --blue: #3b82f6; 
}    

html { 
    background: var(--dark); 
}       

body { 
    background: var(--dark); 
    color: var(--grey-lite); 
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Helvetica, Arial, sans-serif, "Apple Color Emoji", "Segoe UI Emoji"; 
    margin: 0; 
    min-height: 100vh; 
    font-size: 13px;
}    

.logo { 
    font-weight: 700; 
    font-size: 15px; 
    letter-spacing: -0.02em; 
}

.logo span { 
    color: var(--green); 
}

.body-scroll-lock { 
    overflow: hidden; 
    height: 100vh; 
    -webkit-overflow-scrolling: auto; 
}

/* =========================================================================
   STRUKTUR TATA LETAK UTAMA (HIGH DENSITY)
   ========================================================================= */
.dashboard-navbar { 
    background: var(--dark); 
    display: grid; 
    grid-template-columns: 1fr auto 1fr; 
    align-items: center; 
    width: calc(100% - 260px); 
    margin-left: 260px; 
    padding: 0 24px; 
    border-bottom: 1px solid var(--grey); 
    box-sizing: border-box; 
    position: sticky; 
    top: 0; 
    z-index: 990; 
    height: 50px; /* Kerapatan navbar konstan */
    gap: 16px;
}

/* Memastikan elemen Global Search selalu terkunci di kolom tengah (Kolom 2) */
.dashboard-navbar > global-search {
    grid-column: 2;
    justify-self: center;
    width: 100%;
}

/* Container Pembungkus Aksi Kanan (Notification + Profile Dropdown) */
.navbar-right-actions {
    grid-column: 3;
    justify-self: end;
    display: flex;
    align-items: center;
    gap: 8px;           /* Jarak konstan antara notifikasi dan user dropdown */
    flex-shrink: 0;      /* Mencegah dropdown hancur/tergencet di layar mobile */
}

.dashboard { 
    width: calc(100% - 260px); 
    margin-left: 260px; 
    padding: 24px; 
    box-sizing: border-box; 
}

/* =========================================================================
   KOMPONEN NAVIGASI & AKSI
   ========================================================================= */
.burger-menu-btn { 
    grid-column: 1; 
    justify-self: start; 
    display: none; 
    width: 34px; 
    height: 34px; 
    background: var(--dark-lite); 
    border: 1px solid var(--grey); 
    border-radius: 6px; 
    cursor: pointer; 
    align-items: center; 
    justify-content: center; 
    padding: 0; 
    z-index: 990; 
    color: var(--grey-muted); 
    transition: border-color 0.15s, background 0.15s, color 0.15s; 
}

.burger-menu-btn:hover { 
    border-color: var(--grey-muted); 
    background: rgba(255, 255, 255, 0.03); 
    color: var(--green); 
}

.burger-icon-svg { 
    width: 16px; 
    height: 16px; 
    display: block; 
    pointer-events: none; 
}

.user-profile-dropdown { 
    position: relative; 
    cursor: pointer; 
}

.profile-trigger { 
    width: 34px; 
    height: 34px; 
    border-radius: 6px; /* Konsistensi kotak arsitektur komponen picker */
    background: var(--dark-lite); 
    border: 1px solid var(--grey); 
    display: flex; 
    align-items: center; 
    justify-content: center; 
    transition: border-color 0.15s, background 0.15s; 
}

.profile-trigger:hover { 
    border-color: var(--grey-muted); 
    background: rgba(255, 255, 255, 0.03); 
}

.icon-user-svg { 
    width: 16px; 
    height: 16px; 
    color: var(--grey-muted); 
}

/* Dropdown Menu Konten */
.dropdown-menu-content { 
    display: none; 
    position: absolute; 
    top: 40px; 
    right: 0; 
    width: 220px; 
    background: var(--dark-lite); 
    border: 1px solid var(--grey); 
    border-radius: 6px; 
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.6); 
    z-index: 1002; 
    animation: fadeInDropdown 0.15s cubic-bezier(0.1, 0.76, 0.55, 0.94); 
}

.dropdown-menu-content.show { 
    display: block; 
}

.dropdown-user-info { 
    padding: 10px 14px; 
    display: flex; 
    flex-direction: column; 
    gap: 2px; 
}

.info-label { 
    font-size: 11px; 
    color: var(--grey-dark); 
    font-weight: 600; 
    text-transform: uppercase; 
    letter-spacing: 0.05em; 
}

.owner-email-display { 
    color: var(--grey-muted); 
    font-size: 12px; 
    font-weight: 500; 
    word-break: break-all; 
}

.dropdown-divider { 
    height: 1px; 
    background: var(--grey); 
    margin: 2px 0; 
}

.btn-dropdown-logout { 
    display: flex; 
    align-items: center; 
    gap: 8px; 
    width: 100%; 
    padding: 10px 14px; 
    background: transparent; 
    border: none; 
    color: var(--red); 
    font-size: 12px; 
    font-weight: 500; 
    text-align: left; 
    cursor: pointer; 
    border-radius: 0 0 4px 4px; /* Elemen internal */
    transition: background 0.15s; 
}

.btn-dropdown-logout:hover { 
    background: rgba(239, 68, 68, 0.08); 
}

.icon-logout-svg { 
    width: 14px; 
    height: 14px; 
}

/* =========================================================================
   SIDEBAR (STRUKTUR TEGAP & KOMPAK)
   ========================================================================= */
.left-sidebar { 
    position: fixed; 
    top: 0; 
    left: 0; 
    width: 260px; 
    height: 100vh; 
    background: var(--dark); 
    border-radius: 0; /* Menempel rata pada batas layar luar */
    border-right: 1px solid var(--grey); 
    transition: left 0.25s cubic-bezier(0.1, 0.76, 0.55, 0.94); 
    z-index: 999; 
    padding-top: 0; 
    overflow-y: auto; 
    box-shadow: none; 
}

/* Pembatas Khusus Grup Menu di Left Sidebar */
.sidebar-divider { 
    height: 1px; 
    background: var(--grey); 
    margin: 12px 12px; 
    list-style: none;
}

.left-sidebar.open { 
    left: 0; 
}

.sidebar-header { 
    padding: 0 20px; 
    display: flex; 
    justify-content: space-between; 
    align-items: center; 
    box-sizing: border-box; 
    height: 50px; /* Presisi sejajar tinggi navbar */
    border-bottom: 1px solid var(--grey);
    margin-bottom: 8px;
}

.sidebar-header h3 { 
    margin: 0; 
    font-size: 14px; 
    font-weight: 700; 
    color: var(--white); 
    display: flex; 
    align-items: center; 
    line-height: normal; 
}

.sidebar-header h3 span { 
    color: var(--green); 
}

.sidebar-close-btn { 
    background: transparent; 
    border: none; 
    color: var(--grey-muted); 
    cursor: pointer; 
    padding: 0; 
    display: none; 
    align-items: center; 
    justify-content: center; 
    height: 15px; 
    width: 34px; 
    transition: color 0.15s ease; 
}

.sidebar-close-btn:hover { 
    color: var(--red); 
}

.sidebar-menu { 
    list-style: none; 
    padding: 0 8px; 
    margin: 0; 
}

.menu-item { 
    padding: 8px 12px; 
    font-size: 13px; 
    font-weight: 500; 
    color: var(--grey-lite); 
    cursor: pointer; 
    display: flex; 
    align-items: center; 
    gap: 10px; 
    transition: all 0.15s ease; 
    box-sizing: border-box; 
    border-radius: 4px; /* Elemen item internal */
    margin-bottom: 2px;
}

.menu-item:hover { 
    background: #18181b; 
    color: var(--green); 
}

.menu-item.active { 
    background: rgba(34, 197, 94, 0.1); 
    color: var(--green); 
    font-weight: 600;
}

.menu-icon-svg { 
    width: 16px; 
    height: 16px; 
    flex-shrink: 0; 
    display: block; 
    transition: stroke 0.15s ease; 
}

.menu-item:hover .menu-icon-svg,
.menu-item.active .menu-icon-svg { 
    stroke: var(--green); 
}

.dashboard-footer { 
    margin-top: 20px; 
    padding: 24px 0 12px 0; 
    text-align: center; color: var(--grey-muted); 
    font-size: 11px; 
    border-top: 1px solid var(--grey); 
    opacity: 0.65; letter-spacing: 0.03em; 
}

/* =========================================================================
   SISTEM PREVIEW KONTEN & ANIMASI
   ========================================================================= */
.dashboard-view { 
    display: none; 
}

.dashboard-view.active { 
    display: block; 
}

@keyframes fadeInDropdown {
    from { opacity: 0; transform: translateY(-4px); }
    to { opacity: 1; transform: translateY(0); }
}

/* =========================================================================
   RESPONSIVE BREAKPOINTS (MEDIA QUERIES)
   ========================================================================= */
@media (max-width: 768px) { 
    .dashboard-navbar { 
        width: 100%; 
        margin-left: 0; 
        padding: 0 16px;
        /* Mengubah struktur grid di mobile: burger(auto), search(1fr), aksi-kanan(auto) */
        grid-template-columns: auto 1fr auto; 
        gap: 10px;
    }
    
    .dashboard { 
        width: 100%; 
        margin-left: 0; 
        padding: 16px; 
    }
    
    /* Memaksa elemen penelusuran mengalah dan fleksibel mengambil sisa ruang */
    .dashboard-navbar > global-search {
        grid-column: 2;
        flex: 1;
        min-width: 0; 
    }

    .navbar-right-actions {
        grid-column: 3;
        gap: 6px; /* Sedikit mempersempit jarak antar ikon dropdown di mobile */
    }
    
    .burger-menu-btn { 
        display: flex; 
    }
    
    .left-sidebar { 
        left: -265px; 
        box-shadow: 10px 0 30px rgba(0, 0, 0, 0.7); 
    }
    
    .left-sidebar.open { 
        left: 0; 
    }
    
    .sidebar-close-btn { 
        display: flex; 
    }
}
