/* public/nav.css */

body {
    padding-bottom: 65px !important; /* Match nav height, use important to override inline styles */
}

:root {
    --nav-background: #1a1a1a;
    --nav-border: #2a2a2a;
    --nav-text: #999;
    --nav-text-active: #fff;
    --nav-indicator: #00aaff;
}

.bottom-nav {
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 65px; /* Tinggi navigasi */
    background-color: var(--nav-background);
    border-top: 1px solid var(--nav-border);
    display: flex;
    justify-content: space-around;
    align-items: center;
    z-index: 1000;
    padding: 0; /* Hapus padding horizontal */
    box-shadow: none; /* Hapus bayangan */
}

.nav-item {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    color: var(--nav-text);
    text-decoration: none;
    flex-grow: 1;
    height: 100%;
    z-index: 2;
    transition: color 0.4s ease;
    padding-top: 10px; /* Tambahkan padding atas untuk ikon */
}

.nav-item .nav-icon {
    margin-bottom: 0; /* Hapus margin bawah */
    transition: transform 0.3s ease;
}

.nav-item .nav-text {
    font-size: 0.75rem;
    font-weight: 500;
    opacity: 1; /* Selalu tampilkan teks */
    transform: translateY(0); /* Hapus transformasi */
    transition: opacity 0.3s ease, transform 0.3s ease;
}

/* Active and Hover states */
.nav-item.active {
    color: var(--nav-indicator); /* Warna teks aktif */
}

.nav-item.active .nav-icon {
    transform: translateY(-5px); /* Sedikit naik saat aktif */
}

.nav-indicator {
    position: absolute;
    top: 0; /* Pindah ke atas */
    height: 3px; /* Garis indikator */
    background-color: var(--nav-indicator);
    z-index: 1;
    transition: left 0.5s cubic-bezier(0.23, 1, 0.32, 1), width 0.5s cubic-bezier(0.23, 1, 0.32, 1); /* Animasi lebar dan posisi */
    border-radius: 0; /* Hapus border-radius */
}
