/* 하단 네비게이션 */
.icon {
    position: relative;
    background-size: contain;
    background-position: center;
    background-repeat: no-repeat;
    width: 20px;
    height: 20px;
}

.icon.home {
    background-image: url('/assets/images/icons/home.svg');
}

.icon.class {
    background-image: url('/assets/images/icons/class.svg');
}

.icon.event {
    background-image: url('/assets/images/icons/event.svg');
}

.icon.community {
    background-image: url('/assets/images/icons/community.svg');
}

.icon.mypage {
    background-image: url('/assets/images/icons/user.svg');
}

.bottom-nav {
    position: fixed;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 100%;
    min-width: 320px;
    background: #fff;
    /* border-top: 1px solid #eee; */
    box-shadow: 0 -2px 10px rgba(0, 0, 0, 0.06);
    display: flex;
    z-index: 100;
}

.nav-item {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 5px;
    flex: 1;
    padding: 12px;
    text-align: center;
    border-right: 1px solid #eee;
    font-size: 12px;
}

.nav-item:last-child {
    border-right: none;
}

.nav-item.active {
    background: var(--color-primary);
    color: var(--color-secondary);
}

.nav-item.active .icon {
    filter: brightness(0) invert(1);
}

.nav-badge {
    position: absolute;
    top: -5px;
    right: -15px;
    background: #ff4444;
    color: white;
    border-radius: 50%;
    width: 18px;
    height: 18px;
    font-size: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
}
