/* Navigation Bar */
.nav-bar {
    position: fixed;
    bottom: 0;
    width: 100%;
    height: 80px;
    background: linear-gradient(to top, var(--app-bg-secondary, #1a1a2e) 0%, rgba(26, 26, 46, 0.95) 100%);
    display: flex;
    justify-content: space-around;
    align-items: center;
    border-top: 1px solid var(--card-border);
    backdrop-filter: blur(20px);
    padding-bottom: env(safe-area-inset-bottom, 0);
}

.nav-item {
    border: none;
    background: none;
    color: var(--text-muted);
    font-size: 22px;
    cursor: pointer;
    transition: all 0.3s ease;
    padding: 12px 16px;
    border-radius: 12px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
    position: relative;
}

.nav-item span {
    font-size: 10px;
    font-weight: 500;
}

.nav-item:hover {
    color: var(--primary-light);
    background: rgba(108, 92, 231, 0.1);
}

.nav-item.active {
    color: var(--primary-color);
    background: rgba(108, 92, 231, 0.15);
    transform: translateY(-2px);
}

.nav-item.has-notification::after {
    content: '';
    position: absolute;
    top: 6px;
    right: 18px;
    width: 8px;
    height: 8px;
    background: #ff4444;
    border-radius: 50%;
    border: 2px solid var(--bg-primary);
    /* Note: bg-primary isn't defined in root, should be --bg-color? or check if it was typo in original */
}

/* Nav Menu Popup */
.nav-menu-backdrop {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 99;
}

.nav-menu-backdrop.active {
    display: block;
}

.nav-menu-popup {
    position: fixed;
    bottom: 90px;
    left: 12px;
    background: var(--app-bg-secondary, #1a1a2e);
    border: 1px solid var(--card-border);
    border-radius: 16px;
    padding: 8px;
    display: flex;
    flex-direction: column;
    gap: 4px;
    z-index: 100;
    backdrop-filter: blur(20px);
    box-shadow: 0 -8px 32px rgba(0, 0, 0, 0.4);
    transform: scale(0.8) translateY(20px);
    opacity: 0;
    pointer-events: none;
    transition: transform 0.25s cubic-bezier(0.4, 0, 0.2, 1), opacity 0.25s cubic-bezier(0.4, 0, 0.2, 1);
    transform-origin: bottom left;
}

.nav-menu-popup.active {
    transform: scale(1) translateY(0);
    opacity: 1;
    pointer-events: auto;
}

.nav-menu-item {
    border: none;
    background: none;
    color: var(--text-muted);
    font-size: 15px;
    cursor: pointer;
    padding: 12px 24px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    gap: 12px;
    transition: all 0.2s ease;
    white-space: nowrap;
}

.nav-menu-item i {
    font-size: 18px;
    width: 24px;
    text-align: center;
}

.nav-menu-item span {
    font-size: 14px;
    font-weight: 500;
}

.nav-menu-item:hover,
.nav-menu-item:active {
    color: var(--primary-light);
    background: rgba(108, 92, 231, 0.15);
}

#nav-menu-btn.active {
    color: var(--primary-color);
    background: rgba(108, 92, 231, 0.15);
}

/* Tabs (Shared) */
.tabs {
    display: flex;
    background: rgba(0, 0, 0, 0.2);
    border-radius: 12px;
    padding: 4px;
    margin-bottom: 20px;
}

.tab-btn {
    flex: 1;
    padding: 10px;
    border: none;
    background: transparent;
    color: var(--text-muted);
    font-weight: 600;
    cursor: pointer;
    border-radius: 8px;
    transition: all 0.3s ease;
    position: relative;
}

.tab-btn.active {
    background: var(--card-bg);
    color: var(--primary-color);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.tab-btn.has-notification::after {
    content: '';
    position: absolute;
    top: 6px;
    right: 6px;
    width: 6px;
    height: 6px;
    background: #ff4444;
    border-radius: 50%;
}

.tab-content {
    display: none;
    animation: fadeIn 0.3s ease;
}

.tab-content.active {
    display: block;
}