/* ========================================
   NAV.CSS - Shared Navigation Tabs
   ======================================== */

.nav-tabs {
    display: flex;
    gap: 0;
    padding: 0 30px;
    background: linear-gradient(135deg, rgba(12, 40, 74, 0.95) 0%, rgba(20, 20, 50, 0.95) 100%);
    border: 1px solid rgba(0, 212, 255, 0.2);
    border-bottom: none;
    border-radius: 16px 16px 0 0;
    backdrop-filter: blur(10px);
    position: relative;
    overflow: hidden;
}

.nav-tabs::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 2px;
    background: linear-gradient(90deg, #00d4ff, #8b5cf6, #00d4ff);
    background-size: 200% 100%;
    animation: navShimmer 4s linear infinite;
}

@keyframes navShimmer {
    0% { background-position: -200% 0; }
    100% { background-position: 200% 0; }
}

.nav-tab {
    position: relative;
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 14px 24px;
    color: #667;
    font-size: 13px;
    font-weight: 600;
    text-decoration: none;
    text-transform: uppercase;
    letter-spacing: 1px;
    cursor: pointer;
    transition: all 0.3s ease;
    border: none;
    background: none;
    border-bottom: 3px solid transparent;
    margin-bottom: -1px;
}

.nav-tab:hover {
    color: #aab;
    background: rgba(255, 255, 255, 0.03);
}

.nav-tab.active {
    color: #00d4ff;
    border-bottom-color: #00d4ff;
    background: rgba(0, 212, 255, 0.05);
    text-shadow: 0 0 20px rgba(0, 212, 255, 0.4);
}

.nav-tab svg {
    width: 16px;
    height: 16px;
    opacity: 0.6;
    transition: opacity 0.3s;
}

.nav-tab.active svg {
    opacity: 1;
    filter: drop-shadow(0 0 4px rgba(0, 212, 255, 0.5));
}

.nav-tab .tab-badge {
    background: rgba(0, 212, 255, 0.2);
    color: #00d4ff;
    font-size: 10px;
    padding: 1px 7px;
    border-radius: 10px;
    font-weight: 700;
    letter-spacing: 0;
}

.nav-tab.active .tab-badge {
    background: rgba(0, 212, 255, 0.3);
}

/* Theme toggle button in nav */
.nav-theme-btn {
    margin-left: 8px;
    border: none !important;
    background: transparent !important;
    padding: 6px 10px !important;
    cursor: pointer;
    opacity: 0.7;
    transition: opacity 0.2s;
}
.nav-theme-btn:hover { opacity: 1; }
.nav-theme-btn svg { width: 16px; height: 16px; }

/* ══════ Theme Toggle Button ══════ */
.nav-theme-btn {
    display: flex; align-items: center; justify-content: center;
    width: 36px; height: 36px; border-radius: 8px;
    background: transparent; border: 1px solid rgba(255,255,255,0.1);
    cursor: pointer; margin-left: 8px; padding: 0;
    transition: all 0.2s;
}
.nav-theme-btn svg { width: 18px; height: 18px; }
.nav-theme-btn .theme-icon-sun { display: block; color: #f59e0b; }
.nav-theme-btn .theme-icon-moon { display: none; color: #6366f1; }
.nav-theme-btn:hover { background: rgba(255,255,255,0.06); border-color: rgba(255,255,255,0.2); }

/* When light theme is active, show moon icon instead */
.nav-theme-btn.active .theme-icon-sun { display: none; }
.nav-theme-btn.active .theme-icon-moon { display: block; }

/* Light theme overrides for the button */
.light-theme .nav-theme-btn {
    border-color: #d1d5db;
}
.light-theme .nav-theme-btn:hover {
    background: #f1f5f9; border-color: #94a3b8;
}
.light-theme .nav-theme-btn .theme-icon-moon { color: #4f46e5; }
