/* Mobile Bottom Navigation */
.dp-mobile-bottom-nav {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: rgba(7, 19, 33, 0.95);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.3);
    z-index: 1002;
    padding: 8px 0;
    padding-bottom: max(8px, calc(8px + env(safe-area-inset-bottom)));
    display: flex;
    justify-content: space-around;
    align-items: center;
}

.dp-bottom-nav-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 4px;
    padding: 8px 12px;
    text-decoration: none;
    color: rgba(230, 244, 255, 0.6);
    font-size: 0.7rem;
    font-weight: 500;
    border: none;
    background: transparent;
    cursor: pointer;
    transition: all 0.2s ease;
    min-width: 60px;
    flex: 1;
    position: relative;
    -webkit-tap-highlight-color: transparent;
}

.dp-bottom-nav-item i {
    font-size: 1.3rem;
    transition: all 0.2s ease;
    color: inherit;
}

.dp-bottom-nav-item span {
    font-size: 0.65rem;
    line-height: 1.2;
    white-space: nowrap;
    font-weight: 500;
}

.dp-bottom-nav-item:hover,
.dp-bottom-nav-item:focus,
.dp-bottom-nav-item.active {
    color: #3b82f6;
    outline: none;
}

.dp-bottom-nav-item:hover i,
.dp-bottom-nav-item:focus i,
.dp-bottom-nav-item.active i {
    transform: scale(1.15);
    color: #3b82f6;
}

.dp-bottom-nav-item:active {
    transform: scale(0.95);
}

.dp-bottom-nav-item.active::before {
    content: '';
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 40px;
    height: 3px;
    background: #3b82f6;
    border-radius: 0 0 3px 3px;
}

.dp-bottom-nav-item[data-mobile-menu-toggle] {
    position: relative;
}

.dp-bottom-nav-item[data-mobile-menu-toggle].active {
    color: #3b82f6;
}

.dp-bottom-nav-item[data-mobile-menu-toggle].active i {
    color: #3b82f6;
    transform: rotate(180deg) scale(1.15);
}

/* Logout button styling - Red color */
.dp-bottom-nav-item--logout {
    color: #ef4444 !important;
}

.dp-bottom-nav-item--logout i {
    color: #ef4444 !important;
}

.dp-bottom-nav-item--logout:hover,
.dp-bottom-nav-item--logout:focus {
    color: #dc2626 !important;
}

.dp-bottom-nav-item--logout:hover i,
.dp-bottom-nav-item--logout:focus i {
    color: #dc2626 !important;
    transform: scale(1.15);
}

.dp-bottom-nav-item--logout:active {
    color: #b91c1c !important;
}

.dp-bottom-nav-item--logout:active i {
    color: #b91c1c !important;
}

/* Sembunyikan di desktop */
@media (min-width: 769px) {
    .dp-mobile-bottom-nav {
        display: none !important;
    }
    
    body {
        padding-bottom: 0 !important;
    }
}

/* Tampilkan di mobile dan tambahkan padding bottom pada body */
@media (max-width: 768px) {
    body {
        padding-bottom: 70px;
    }
    
    .dp-main {
        padding-bottom: 80px;
    }
    
    .saphira-footer {
        margin-bottom: 70px;
    }
    
    /* Pastikan menu mobile muncul di atas bottom nav */
    .dp-mobile-menu {
        max-height: calc(85vh - 70px);
        padding-bottom: max(90px, calc(90px + env(safe-area-inset-bottom)));
    }
    
    /* Prevent body scroll saat menu terbuka */
    body.nav-open {
        overflow: hidden;
        position: fixed;
        width: 100%;
        height: 100%;
    }
    
    /* Pastikan menu muncul dengan benar */
    .dp-mobile-menu.active {
        transform: translateY(0) !important;
        visibility: visible !important;
        opacity: 1 !important;
    }
}

