/* Common Nav Bar */
#navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    background: linear-gradient(135deg, #0f3460, #1a1040);
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 24px;
    height: 50px;
    box-shadow: 0 2px 16px rgba(0, 0, 0, 0.4);
    border-bottom: 1px solid rgba(124, 58, 237, 0.2);
    font-family: Arial, sans-serif;
}

#navbar .nav-brand {
    color: #00ffff;
    font-size: 16px;
    font-weight: bold;
    text-decoration: none;
    letter-spacing: 0.5px;
}

#navbar .nav-links {
    display: flex;
    gap: 4px;
    list-style: none;
    margin: 0;
    padding: 0;
}

#navbar .nav-links a {
    color: #aaa;
    text-decoration: none;
    font-size: 13px;
    padding: 8px 14px;
    border-radius: 8px;
    transition: color 0.2s, background 0.2s;
}

#navbar .nav-links a:hover {
    color: #eee;
    background: rgba(124, 58, 237, 0.15);
}

#navbar .nav-links a.active {
    color: #00ffff;
    background: rgba(124, 58, 237, 0.12);
}

/* Navbar User Display */
#navbar .nav-user {
    display: flex;
    align-items: center;
    gap: 6px;
    color: #a78bfa;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    padding: 6px 12px;
    border-radius: 8px;
    transition: background 0.2s;
}

#navbar .nav-user:hover {
    background: rgba(124, 58, 237, 0.15);
}

/* Push page content below fixed nav */
body {
    padding-top: 60px !important;
}

/* Mobile nav */
@media (max-width: 768px) {
    #navbar {
        padding: 0 10px;
        height: auto;
        flex-wrap: wrap;
        gap: 4px;
        padding-top: 8px;
        padding-bottom: 8px;
    }

    #navbar .nav-brand {
        font-size: 14px;
    }

    #navbar .nav-links {
        order: 3;
        width: 100%;
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
        gap: 2px;
        padding-bottom: 2px;
    }

    #navbar .nav-links::-webkit-scrollbar {
        display: none;
    }

    #navbar .nav-links a {
        font-size: 11px;
        padding: 5px 8px;
        white-space: nowrap;
        flex-shrink: 0;
    }

    #navbar .nav-user {
        font-size: 11px;
        padding: 4px 8px;
    }

    body {
        padding-top: 80px !important;
    }
}
