/* Custom Navbar Styles */
.custom-navbar {
    background-color: #5ec688 !important;
    padding: 1rem 0;
    display: flex;
    width: 100%;
    justify-content: space-between;
    align-items: center;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1030;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.navbar-container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.custom-navbar-brand {
    color: white !important;
    font-weight: 600;
    font-size: 1.5rem;
    text-decoration: none;
}

.custom-navbar-menu {
    display: flex;
    align-items: center;
    list-style: none;
    margin: 0;
    padding: 0;
}

.custom-nav-item {
    margin-left: 1.5rem;
    position: relative;
}

.custom-nav-link {
    color: rgba(255, 255, 255, 0.8) !important;
    font-weight: 500;
    text-decoration: none;
    transition: color 0.3s ease;
    font-size: 0.95rem;
    display: block;
    padding: 0.5rem 0;
}

.custom-nav-link:hover {
    color: white !important;
}

.custom-dropdown {
    position: relative;
    cursor: pointer;
}

.custom-dropdown-content {
    display: none;
    position: absolute;
    right: 0;
    top: 100%;
    background-color: #ffffff;
    min-width: 160px;
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.2);
    z-index: 1031;
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 0.25rem;
    margin-top: 5px;
}

/* Menghapus tampilan dropdown saat hover */
.custom-dropdown:hover .custom-dropdown-content {
    display: none;
}

/* Menambahkan class baru untuk menampilkan dropdown saat aktif */
.custom-dropdown.show .custom-dropdown-content {
    display: block;
}

.custom-dropdown-link {
    color: rgba(0, 0, 0, 0.8);
    padding: 8px 16px;
    text-decoration: none;
    display: block;
    font-size: 0.9rem;
}

.custom-dropdown-link:hover {
    background-color: rgba(181, 181, 181, 0.1);
    color: rgb(57, 57, 57);
}


.custom-navbar-toggle {
    display: none;
    color: white;
    background: transparent;
    border: none;
    font-size: 1.25rem;
    cursor: pointer;
}

.navbar-spacer {
    height: 60px; /* Sesuaikan dengan tinggi navbar */
}

/* Mobile responsive */
@media (max-width: 768px) {
    .custom-navbar-toggle {
        display: block;
    }
    
    .custom-navbar-menu {
        position: fixed;
        top: 60px;
        left: 0;
        right: 0;
        background-color: #5ec688;
        flex-direction: column;
        align-items: flex-start;
        padding: 1rem;
        display: none;
    }
    
    .custom-navbar-menu.show {
        display: flex;
    }
    
    .custom-nav-item {
        margin: 0.5rem 0;
        width: 100%;
    }
    
    .custom-dropdown-content {
        position: static;
        background-color: #4ca573;
        box-shadow: none;
        border: none;
        width: 100%;
        padding-left: 1rem;
        margin-top: 0.5rem;
    }
    
    /* Menghapus tampilan dropdown saat hover di mobile */
    .custom-dropdown:hover .custom-dropdown-content {
        display: none;
    }
    
    /* Menampilkan dropdown saat aktif di mobile */
    .custom-dropdown.active .custom-dropdown-content,
    .custom-dropdown.show .custom-dropdown-content {
        display: block;
    }
} 