/* Navigasi Desktop */
.nav-menu {
    display: flex;
    gap: 0.5rem;
}

.nav-link {
    text-decoration: none;
    color: var(--text-dark);
    font-weight: 500;
    transition: var(--transition);
    padding: 0.5rem 1rem;
    border-radius: var(--radius);
    display: flex;
    align-items: center;
    gap: 8px;
}

.nav-link-blue {
  background: var(--primary-color);
  color: white; /* pertahankan putih */
  font-weight: 500;
  transition: var(--transition);
  padding: 0.5rem 1rem;
  border-radius: var(--radius);
  display: flex;
  align-items: center;
  gap: 8px;
  text-decoration: none;
}

.nav-link-blue:hover {
  background: #0056b3; /* warna biru lebih gelap saat hover */
  color: #fff;
}


.nav-link:hover, .nav-link.active {
    background: var(--light-color);
    color: var(--primary-color);
}

/* Tombol Menu Mobile - Hidden di Desktop */
.menu-toggle {
    display: none;
    background: var(--primary-color);
    border: none;
    color: white;
    width: 44px;
    height: 44px;
    border-radius: 10px;
    font-size: 1.2rem;
    cursor: pointer;
    box-shadow: 0 4px 12px rgba(30, 64, 175, 0.3);
    transition: all 0.3s ease;
    z-index: 1001;
    align-items: center;
    justify-content: center;
}

.menu-toggle:hover {
    transform: scale(1.05);
    box-shadow: 0 6px 18px rgba(30, 64, 175, 0.4);
    background: var(--secondary-color);
}

/* Responsif untuk Tablet dan Mobile */
@media (max-width: 768px) {
    .header-content {
        flex-direction: row;
        justify-content: space-between;
        padding: 1rem 0;
    }

    /* Tombol Menu Mobile */
    .menu-toggle {
        display: flex;
    }

    /* Navigasi Mobile - Style 4 Compact Dropdown */
    .nav-menu {
        position: absolute;
        top: calc(100% + 10px);
        right: 0;
        width: 280px;
        background: var(--bg-white);
        border-radius: 15px;
        box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
        flex-direction: column;
        padding: 1rem 0;
        opacity: 0;
        visibility: hidden;
        transform: translateY(-15px) scale(0.95);
        transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
        z-index: 1000;
        border: 1px solid #f1f5f9;
    }

    .nav-menu.active {
        opacity: 1;
        visibility: visible;
        transform: translateY(0) scale(1);
    }

    .nav-link {
        display: flex;
        align-items: center;
        gap: 12px;
        padding: 1rem 1.5rem;
        border-radius: 0;
        color: var(--text-dark);
        font-weight: 500;
        transition: all 0.3s ease;
        position: relative;
        margin: 0;
        border-bottom: 1px solid #f8fafc;
    }

    .nav-link:last-child {
        border-bottom: none;
    }

    .nav-link i {
        font-size: 1.3rem;
        width: 24px;
        text-align: center;
        color: var(--primary-color);
    }

    .nav-link:hover, .nav-link.active {
        background: var(--light-color);
        color: var(--primary-color);
        transform: translateY(5px);
        border-left: 4px solid var(--primary-color);
    }

     .nav-link-blue {
    background: var(--primary-color);
    color: #fff !important;
    justify-content: center; /* teks & ikon di tengah */
    text-align: center;
  }

  .nav-link-blue i {
    color: #fff !important; /* ikon jadi putih */
  }

  .nav-link-blue:hover {
    background: #0056b3; /* opsional: biru lebih gelap saat hover */
  }

    /* Panah indicator untuk dropdown */
    .nav-menu::before {
        content: '';
        position: absolute;
        top: -8px;
        right: 20px;
        width: 16px;
        height: 16px;
        background: var(--bg-white);
        transform: rotate(45deg);
        border-top: 1px solid #f1f5f9;
        border-left: 1px solid #f1f5f9;
    }

    /* Overlay saat menu terbuka */
    .nav-overlay {
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        background: rgba(0, 0, 0, 0.3);
        backdrop-filter: blur(2px);
        opacity: 0;
        visibility: hidden;
        transition: var(--transition);
        z-index: 999;
    }

    .nav-overlay.active {
        opacity: 1;
        visibility: visible;
    }
}

@media (max-width: 480px) {
    .nav-menu {
        width: 260px;
        right: 10px;
    }

    .nav-menu::before {
        right: 15px;
    }
}

/* Animasi untuk icon toggle */
.menu-toggle i {
    transition: transform 0.3s ease;
}

.menu-toggle.active i {
    transform: rotate(180deg);
}






.nav-item {
  position: relative;
  display: inline-block;
}

.dropdown-menu {
  display: none;
  position: absolute;
  background: #ffffff;
  border-radius: 8px;
  box-shadow: 0 3px 10px rgba(0, 0, 0, 0.1);
  top: calc(100% + 8px); /* ⬅️ turun sedikit dari tombol (8px di bawah) */
  left: 25px;            /* ⬅️ geser sedikit ke kanan */
  min-width: 180px;
  z-index: 10;
}


.dropdown-menu a {
  display: block;
  padding: 10px 15px;
  color: #333;
  text-decoration: none;
}

.dropdown-menu a:hover {
  background: var(--light-color);
  border-radius: 8px;
}

/* Tampilkan dropdown saat hover */
.nav-item:active .dropdown-menu {
  display: block;
}

