/* ==========================================================================
   1. OVERLAY & CANVAS CONTAINER
   ========================================================================== */

   .side_bar_overlay {
    width: 100vw;
    height: 100vh;
    height: 100dvh;
    background-color: transparent;
    position: fixed;
    z-index: 101;
    top: 0;
    left: 0;
  }
  
  .side_bar_canvas {
    position: fixed;
    top: 0;
    left: 0;
    z-index: 102;
    width: 300px;
    
    /* Mencegah footer terdorong/hilang di browser mobile */
    height: 100vh;
    height: 100dvh;
    
    background-color: #fff;
    padding: 20px;
    box-shadow: 2px 0px 1px #00000036;
    
    /* Layout Flexbox Utama */
    display: flex;
    flex-direction: column;
    box-sizing: border-box;
  }
  
  .side_bar_canvas.dark {
    background-color: #000;
    color: #fff;
  }
  
  /* ==========================================================================
     2. HEADER SIDEBAR
     ========================================================================== */
  
  .header_side_bar {
    display: flex;
    margin-top: 5px;
    justify-content: space-between;
    flex-shrink: 0; /* Header tetap di posisi atas */
  }
  
  .close_icon.dark {
    color: #fff;
  }
  
  /* ==========================================================================
     3. MENU CONTENT (LIST MENU & SEARCH SECTION)
     ========================================================================== */
  
  .list_menu {
    flex: 1; /* Otomatis mengambil sisa ruang di tengah */
    width: 100%;
    overflow-x: hidden;
    overflow-y: auto;
    margin-top: 20px;
    margin-bottom: 10px;
  }
  
  .seacr_section,
  .search_result_items {
    flex: 1; /* Mengisi sisa ruang secara fleksibel saat search aktif */
    width: 100%;
    overflow-x: hidden;
    overflow-y: auto;
    margin-top: 10px;
  }
  
  /* Sembunyikan Scrollbar */
  .search_result_items::-webkit-scrollbar,
  .list_menu::-webkit-scrollbar {
    display: none;
  }
  
  .search_result_items,
  .list_menu {
    scrollbar-width: none;
    -ms-overflow-style: none;
  }
  
  /* Navigation Items */
  .nav_menu ul {
    list-style: none;
    width: 100%;
    padding: 0;
    margin: 0;
  }
  
  .nav_menu ul li {
    position: relative;
    width: 100%;
    font-size: 1.2rem;
    margin: 5px 0;
    cursor: pointer;
    font-family: var(--neue-reg-font);
  }
  
  ul.sub_nav_inner li {
    font-size: 1rem;
    font-family: var(--neuzeit-light-font);
    font-weight: 100;
  }
  
  .sub_title {
    margin-bottom: 5px;
  }
  
  .menu {
    font-family: var(--neuzeit-light-font);
    margin: 5px 0;
    display: inline-flex;
    align-items: center;
    gap: 4px;
    height: 20px;
  }
  
  .sub_menu div:has(.menu) {
    margin: 3px 0;
  }
  
  .new {
    font-size: 10px;
    margin-top: -10px;
    padding: 0px 4px;
    border-radius: 4px;
    animation: blink 2s ease-in-out infinite;
    font-weight: bold;
    white-space: nowrap;
  }
  
  /* ==========================================================================
     4. SEARCH SECTION STYLES
     ========================================================================== */
  
  .input_search_section {
    width: 100%;
    display: flex;
    align-items: flex-start;
    justify-content: center;
    position: relative;
  }
  
  .search_input {
    width: 100%;
  }
  
  .search_input input {
    width: 80%;
    font-size: 0.8rem;
  }
  
  .search_input.dark input {
    border-bottom: 1px solid #fff;
    color: #fff;
  }
  
  .search_input input::placeholder {
    opacity: 1;
  }
  
  .close_search {
    position: absolute;
  }
  
  .search_icon_input {
    position: absolute;
    right: 0;
    top: 0;
  }
  
  .search_section {
    margin: auto;
    width: 80%;
  }
  
  .search_trending,
  .top_search {
    font-size: 0.9rem;
    color: #3a3a3a;
  }
  
  .top_trending_category,
  .top_search_items {
    display: flex;
    justify-content: space-between;
  }
  
  .top_search_items {
    flex-wrap: wrap;
  }
  
  .top_search_items img {
    margin-top: 10px;
    cursor: pointer;
  }
  
  .trending_category {
    font-size: 0.9rem;
    margin-top: 10px;
  }
  
  .top_search {
    margin-top: 40px;
  }
  
  .search_result {
    background-color: #fff;
    width: 100%;
    margin-top: 30px;
  }
  
  .search_result.dark,
  .search_result_items.dark {
    background-color: #000;
  }
  
  .search_result_title {
    color: #3a3a3a;
    margin-bottom: 10px;
    text-transform: uppercase;
    font-size: 0.8rem;
  }
  
  .search_result_title.dark,
  .search_trending.dark,
  .top_search.dark {
    color: #fff;
  }
  
  /* ==========================================================================
     5. FOOTER SIDEBAR (TIAP KOMPONEN MENEMPEL DI BAWAH)
     ========================================================================== */
  
  .footer_side_bar {
    position: relative;
    flex-shrink: 0; /* Dikunci agar tidak pernah terdorong keluar layar */
    width: 100%;
    text-transform: uppercase;
    background-color: #ffffff;
    padding-top: 10px;
  }
  
  .footer_side_bar.dark {
    background-color: #000;
  }
  
  .join_affiliate {
    font-size: 1.2rem;
    font-family: var(--neue-reg-font);
    background-color: #e8ddec;
    width: 100%;
    height: 35px;
    display: flex;
    justify-content: center;
    align-items: center;
    border-radius: 5px;
    z-index: 9999;
  }
  
  .account {
    font-size: 1.2rem;
    padding: 20px 0 10px 0;
  }
  
  .badge {
    position: absolute;
    top: -6px;
    right: -30px;
    font-size: 10px;
    padding: 2px 6px;
    border-radius: 4px;
    font-weight: bold;
    animation: blink 2s ease-in-out infinite;
  }
  
  .separator {
    display: flex;
    justify-content: center;
    align-items: center;
    height: 20px;
  }
  
  /* ==========================================================================
     6. ANIMATIONS
     ========================================================================== */
  
  @keyframes blink {
    50% {
      opacity: 0;
    }
  }